-
Notifications
You must be signed in to change notification settings - Fork 75
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
Builder Proxmox-iso error 506 #154
Comments
All vars specified elsewhere in the file and via github actions secrets |
Hi @ntatschner, Regarding the error you're getting on the machine type, according to the code for the plugin, only the following values are supported: Regarding the 506 error you're receiving, it's not clear which step fails, would you be able to produce more verbose logs? You can enable those by setting the Thanks for reporting this, we'll take a closer look at this once you provide more context to the error. |
Hey @ntatschner , the 506 error is the same as #146 which is caused by wrong HTTP headers after uploading the ISO file. This should be fixed with #152 |
Hm, thanks for the update on this @sebastian-de! According to one of the linked issues, this can be fixed temporarily by pinning the plugin version to 1.1.0, could you try this @ntatschner? Since there's a fix in the pipes, this will be fixed once we release 1.1.2, we'll keep you posted as to when this happens, and you can then try on that version. |
Hey both, @sebastian-de @lbajolet-hashicorp
|
Hi @ntatschner, That's good to know, I imagine the machine type is unsupported by Proxmox then, which contradicts with what the code accepts. According to the docs for the Go proxmox API, it looks like the values I provided earlier are the accepted ones, but maybe there's a mismatch between this config excerpt and what the actual supported values are? If you set the machine type to Looking at the Proxmox wiki (maybe not up-to-date so it might be worth taking this info with a grain of salt), the regex for accepting machine values is a bit more complex than what is in the API: |
@lbajolet-hashicorp the current documentation can be found here: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_configuration But the regex for The GUI offers the following options: Looking at the config files, after setting different options yields the following: Setting So the only allowed settings should indeed be |
here is the output of
|
That looks consistent with the regex provided in the Proxmox docs then, I presume the docs should be updated in the plugin to reflect this, and the API as well since from what I could see the only accepted values are Since this is the API code checking this, we can't update it directly from this plugin, in the meantime, I'll update the plugin docs to better reflect the accepted alternatives, we can do another pass later if/when the API replicates the values accepted by proxmox/qemu. I wonder what the version suffixes stand for however, are they related to proxmox versions? qemu versions maybe (probably)? Thanks for looking into this @sebastian-de. |
Yes, the versions stand for QEMU releases. Here are the relevant docs: https://www.qemu.org/docs/master/system/qemu-manpage.html#hxtool-0 |
still facing this issue
|
Hi @halradaideh, On |
Hello, I'm using 1.1.2 and I get 506. 2023/03/07 00:40:26 [TRACE] Found the following "github.com/hashicorp/proxmox" installations: [{/home/zoolook/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.1.2_x5.0_linux_amd64 v1.1.2}] 2023/03/07 00:41:11 machine readable: ubuntu-server-jammy.proxmox.ubuntu-server-jammy,error []string{"Error creating VM: error creating VM: 506 upload 'Content-Type 'multipart/form-data; boundary=00fa053d27fae8abff60214a5d6559cc0c1480b60acd6322cc0e0f6314d9' not implemented, error status: (params: map[agent:1 args: boot:c cores:1 cpu:kvm64 description:Packer ephemeral build VM hotplug: ide2:local:iso/ubuntu-22.04.2-live-server-amd64.iso,media=cdrom kvm:true machine:pc memory:1024 name:ubuntu-server-jammy net0:virtio=92:51:32:2E:64:9B,bridge=vmbr0,firewall=false onboot:false ostype:other scsihw:virtio-scsi-pci sockets:1 startup: tags: virtio0:local-lvm:8,format=raw,iothread=false vmid:992204])"} |
I had the same error with version 1.1.2, but it's fixed in 1.1.3. |
Seeing this with 1.1.5 and PVE 8.0.4 506 upload 'Content-Type 'multipart/form-data; boundary=c6549aba5dba692fe8bc6dd3a622b7f015aad75a653127e8e5f56db00e0d' not implemented **Update: It appears the 506 comes (in this instance) from the created iso being too small. I had been using some random, small text files just to test. Once I threw some larger files in the cd_files section I now get the following: 501 for data too large |
**Update Leaving the above as it helps detail some steps for the 506 error. Again, it appears the 506 comes if the iso is too small in some cases. |
Overview of the Issue
Building a proxmox template with ubuntu 22.04 sourced from URL I'm getting and error 506 when attempting the build, packer file validates fine.
Plugin and Packer version
From
proxmox 1.1.1
and packer latestSimplified Packer Buildfile
Operating system and Environment details
running on ubuntu 22.04, via github actions.
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: