Error creating VM: error creating VM upload 'Content-Type 'multipart/form-data
Overview of the Issue
I am trying to build a Fedora CoreOS template with Packer, and later use the template with Terraform.
I am getting stuck, however at the VM creation step.
Reproduction Steps
Create a build file similar to the one supplied.
Run:
packer build --on-error=ask .
Plugin and Packer version
Packer v1.8.6 packer-plugin-proxmox_v1.1.2_x5.0_linux_amd64
Simplified Packer Buildfile
The relevant part of the Buildfile:
additional_iso_files {
cd_files = ["./config/template.ign"]
iso_storage_pool = "ISOs"
unmount = true
}
# CoreOS does not support CloudInit
cloud_init = false
qemu_agent = true
scsi_controller = "virtio-scsi-pci"
cpu_type = "host"
cores = "2"
memory = "2048"
os = "l26"
vga {
type = "qxl"
memory = "16"
}
network_adapters {
model = "virtio"
bridge = "vmbr0"
}
disks {
disk_size = "45G"
format = "qcow2"
storage_pool = "datastore"
storage_pool_type = "nfs"
type = "virtio"
}
Operating system and Environment details
Running from Fedora37 Proxmox is v7.3-3 pve user has full privileges ( I kept adding in case )
datastore is a nfs datastore for images and snippets ISOs is an nfs datastore for ISO files
Log Fragments and crash.log files
==> proxmox.coreos: Creating VM
==> proxmox.coreos: No VM ID given, getting next free from Proxmox
==> proxmox.coreos: Error creating VM: error creating VM: 506 upload 'Content-Type 'multipart/form-data; boundary=1f455f00f9ce54265b7bbcbe11aff1522dfc642d1351b7b05d9c6a29b788' not implemented, error status: (params: map[agent:1 args: boot: cores:2 cpu:host description:Packer ephemeral build VM hotplug: ide2:ISOs:/fedora-coreos-37.20230205.3.0-live.x86_64.iso,media=cdrom kvm:true machine: memory:2048 name:packer-64035fbd-ce6f-e06e-9dc0-e52081f399e9 net0:virtio=DA:D9:06:59:52:DB,bridge=vmbr0,firewall=false onboot:false ostype:l26 scsihw:virtio-scsi-pci sockets:1 startup: tags: vga:type=qxl,memory=16 virtio0:datastore:45,format=qcow2,iothread=false vmid:121])
Same error here, as a workaround I downgraded packer to v1.8.5-1 and it worked
I think this is duplicate of #154
@nbensa yes, very much likely.
@guillemlc I can't see from your example which Proxmox builder you use, but it looks like proxmox. Can you test if the error also occurs when you use proxmox-iso?
For details see this issue: https://github.com/hashicorp/packer/issues/12309
I'm also using proxmox. I was not aware of proxmox-iso. I just built an image using proxmox-iso. Thank you!
Similar error here:
==> proxmox-iso.template: Error creating VM: error creating VM: 506 upload 'Content-Type 'multipart/form-data; boundary=7e1fccbe89cbdf673339a9b2822585d3096ef84dba62f4fbd39bcbca1cdd' not implemented, error status: (params: map[agent:1 args: boot: cores:2 cpu:kvm64 description:Packer ephemeral build VM hotplug: ide2:nfs:iso/debian-11.6.0-amd64-netinst.iso,media=cdrom kvm:true machine: memory:2048 name:runner net0:virtio=E6:44:6A:DB:DA:33,bridge=vmbr0,firewall=false onboot:true ostype:l26 scsi0:zfs:30,iothread=false,format=raw scsihw:virtio-scsi-pci sockets:1 startup: tags: vmid:113])
Build 'proxmox-iso.template' errored after 57 seconds 693 milliseconds: Error creating VM: error creating VM: 506 upload 'Content-Type 'multipart/form-data; boundary=7e1fccbe89cbdf673339a9b2822585d3096ef84dba62f4fbd39bcbca1cdd' not implemented, error status: (params: map[agent:1 args: boot: cores:2 cpu:kvm64 description:Packer ephemeral build VM hotplug: ide2:nfs:iso/debian-11.6.0-amd64-netinst.iso,media=cdrom kvm:true machine: memory:2048 name:runner net0:virtio=E6:44:6A:DB:DA:33,bridge=vmbr0,firewall=false onboot:true ostype:l26 scsi0:zfs:30,iothread=false,format=raw scsihw:virtio-scsi-pci sockets:1 startup: tags: vmid:113])
Running:
- Packer v1.8.6
- Proxmox 6.1-8