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

Proxmox ISO build fails with packer panic #311

Open
weavel opened this issue Jan 26, 2025 · 0 comments
Open

Proxmox ISO build fails with packer panic #311

weavel opened this issue Jan 26, 2025 · 0 comments
Labels

Comments

@weavel
Copy link

weavel commented Jan 26, 2025

When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

Overview of the Issue

So I've been following the tutorials by ChristianLempa, using his boilerplate templates for Packer on his Github. I've corrected some deprecated values pointed out by packer validate and the template passes validation.

When running an build it fails instantly with the following error:

...
Build 'ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy' errored after 9 milliseconds 581 microseconds: unexpected EOF

==> Wait completed after 9 milliseconds 581 microseconds

==> Some builds didn't complete successfully and had errors:
--> ubuntu-server-jammy.proxmox-iso.ubuntu-server-jammy: unexpected EOF

==> Builds finished but no artifacts were created.
panic: runtime error: index out of range [1] with length 1
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin:
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: goroutine 9 [running]:
2025/01/26 14:44:24 packer-plugin-proxmox_v1.2.2_x5.0_windows_amd64.exe plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.generateProxmoxDisks({0x209ea00, 0x0, 0x0?}, {0xc000132000, 0x1, 0x1?}, {0x0?, 0x0, 0x0?})
...

Other things I've checked

  • Nothing is done on the proxmox side as far as I can see.
  • I've verified my Proxmox API-token to be working.
  • I've tried plugin version 1.2.1 also to no avail.
  • I've run this on my Mac as well as on my W11 machine without any difference.
  • I've searched the issue list for similar cases.

Reproduction Steps

Simply run packer build with the correct var file.

Plugin and Packer version

PS C:\Users\rikvt> packer version Packer v1.12.0

Simplified Packer Buildfile

See https://gist.github.com/weavel/28c1b130d96cd3294911047403acd821

Operating system and Environment details

  • Proxmox v8.3.3
  • Windows 11 24H2 with VScode 1.96.4 and Posh5 but also MacOs 15.2 on arm.

Log Fragments and crash.log files

These are all in the above mentioned gist.

@weavel weavel added the bug label Jan 26, 2025
@weavel weavel changed the title Proxmox ISO build fails with packer panis Proxmox ISO build fails with packer panic Jan 26, 2025
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

1 participant