Hello.
I get this error after terraform apply:
Error: error creating VM: 500 unable to parse directory volume name 'ubuntu-20.04.5-live-server-amd64.iso', error status: {"data":null} (params: map[agent:0 args: bios:seabios boot:c bootdisk:scsi0 cores:2 cpu:host description: hotplug:network,disk,usb ide2:local:ubuntu-20.04.5-live-server-amd64.iso,media=cdrom kvm:true machine: memory:2048 name:test-vm-1 net0:virtio=E62:4B:72:97:CA,bridge=vmbr0 numa:false onboot:false ostype:l26 scsi0:local-lvm:10,iothread=1 scsihw:virtio-scsi-pci sockets:1 startup: tablet:true tags: vmid:102])
main.tf is:
I've tried to putt full path to iso file, but error was the same.
I get this error after terraform apply:
Error: error creating VM: 500 unable to parse directory volume name 'ubuntu-20.04.5-live-server-amd64.iso', error status: {"data":null} (params: map[agent:0 args: bios:seabios boot:c bootdisk:scsi0 cores:2 cpu:host description: hotplug:network,disk,usb ide2:local:ubuntu-20.04.5-live-server-amd64.iso,media=cdrom kvm:true machine: memory:2048 name:test-vm-1 net0:virtio=E62:4B:72:97:CA,bridge=vmbr0 numa:false onboot:false ostype:l26 scsi0:local-lvm:10,iothread=1 scsihw:virtio-scsi-pci sockets:1 startup: tablet:true tags: vmid:102])
main.tf is:
Code:
terraform {
required_providers {
proxmox = {
source = "telmate/proxmox"
version = "2.9.11"
}
}
}
provider "proxmox" {
pm_api_url = "https://myProxIP:8006/api2/json"
pm_api_token_id = "tokenID"
pm_api_token_secret = "tokenSecret"
pm_tls_insecure = true
}
resource "proxmox_vm_qemu" "test_server" {
count = 1
name = "test-vm-${count.index + 1}"
target_node = "myProx"
iso = "local:ubuntu-20.04.5-live-server-amd64.iso"
cores = 2
sockets = 1
cpu = "host"
memory = 2048
scsihw = "virtio-scsi-pci"
bootdisk = "scsi0"
disk {
slot = 0
size = "10G"
type = "scsi"
storage = "local-lvm"
iothread = 1
}
network {
model = "virtio"
bridge = "vmbr0"
}
lifecycle {
ignore_changes = [
network,
]
}
}
I've tried to putt full path to iso file, but error was the same.