Using Telmate Terraform Provider
For those using Telemate as your terraform provider there is now a fix in place related to the Proxmox 9 permission issue in the release of 3.0.2-rc04. There are some changes you will need to be aware of with this release. 1 - A CPU block is now required. 2 - In the network block, it now require a network ID. The network ID needs to be in sequence. ie: 0, 1, 2, 3 etc. Here is a example of the terraform code with the changes I am currently using.. resource "proxmox_vm_qemu" "<TF Module Name>" { name = "<Server Name>>" target_node = var.pm_node clone = var.pm_template3 vmid = <VM ID> agent = 1 onboot = true os_type = var.os_type qemu_os = var.qemu_os ciuser = var.ciuser memory = <Memory Size> tags = var.tags_11 ######## New CPU Block ######### cpu { cores = 4 sockets = 2 type = "host" } #Display vga { type = "virtio" #Between 4 and 512, ignored if type is defined to serial memory = 512 } scsihw = "virtio-scsi-single" bootdisk = "scsi0" disks { ide { ide2 { cloudinit { storage = var.pm_storage } } } scsi { scsi0 { disk { storage = var.pm_storage size = 100 iothread = true cache = "writeback" emulatessd = true discard = true } } } } sshkeys = <<EOF <SSH Key Here> EOF lifecycle { ignore_changes = [network, sshkeys] } ######## Network ID ######### network { id = 0 model = "virtio" bridge = "vmbr1" } ipconfig0 = "ip=<Server IP/CIDR>,gw=<Router Gateway IP>" nameserver = "<DNS IP> } After updating the provider and running Terraform inti, you will see errors in your main.tf file. Also if you run a terraform plan, you will receive the following errors if you have already created previous VM's. Error: Unsupported argument │ │ on main.tf line 99, in resource "proxmox_vm_qemu" "Module Name": │ 99: cpu = "host" │ │ An argument named "cpu" is not expected here. Did you mean "vcpus"? ╵ ╷ │ Error: Missing required argument │ │ on main.tf line 143, in resource "proxmox_vm_qemu" "Module Name":