Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating VM: error creating VM upload 'Content-Type 'multipart/form-data #171

Open
guillemlc opened this issue Mar 4, 2023 · 5 comments
Labels

Comments

@guillemlc
Copy link

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])
@guillemlc guillemlc added the bug label Mar 4, 2023
@elg0ch0
Copy link

elg0ch0 commented Mar 8, 2023

Same error here, as a workaround I downgraded packer to v1.8.5-1 and it worked

@nbensa
Copy link

nbensa commented Mar 10, 2023

I think this is duplicate of #154

@sebastian-de
Copy link
Contributor

sebastian-de commented Mar 10, 2023

@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: hashicorp/packer#12309

@nbensa
Copy link

nbensa commented Mar 11, 2023

I'm also using proxmox. I was not aware of proxmox-iso. I just built an image using proxmox-iso. Thank you!

@prologic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants