-
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
cpu_type broken since 1.2.2 #307
Comments
The same for me, |
The is also occurring for me. Explicitly setting the type does nothing. This is critical for RHEL and RHEL-based builds, which will kernel panic when not set to host: https://forum.proxmox.com/threads/kernel-panic-installing-rocky-or-almalinux.114885/ |
Can confirm this bug is still present. Any machine that is created by packer is using the default kvm64 cpu_type. |
Hello, Thank you for your work on this project. I believe I have identified a potential source of the issue. After reviewing the code, I think the problem might come from the file builder/proxmox/common/step_start_vm.go, in version 1.2.1, there was a QemuCpu field that allowed setting the CPUType. However, it seems that this field was omitted in version 1.2.2. v1.2.1...v1.2.2#diff-c79872c7c5b2f4706f264eb794de52cb28c29107b0f9aeba147a5c6e3f1ea433L128 Was this omission intentional, or could it be an oversight? Thank you for your feedback and for all the work you’ve done! |
Same here, can also confirm that the issue (still) exists. Downgrading to v1.2.1 does the trick for me. Thanks for pointing out, @nicocau. |
Hey, @mpywell it appears that commit authored by you might have introduced a regression. Would you like to address it? Committer: @lbajolet-hashicorp, it appears we have a PR if you'd like to review it. |
Overview of the Issue
When provisioning the VM from packer cpu_type is not being passed to proxmox resulting in all hosts taking the default value regardless of cpu_type setting. This works in 1.2.1
Suspected Cause
proxmox-api-go defines QemuCPU as
In change 75dded5, in step_start_vm.go CpuType is not passed through in the config.
While I can spot the issue, my skills at committing are lacking. Don't blame me, I'm just a sysadmin. :)
Reproduction Steps
Set cpu_type = "x86-64-v3" within proxmox-iso source section. The resulting VM will have type kvm64
Plugin and Packer version
Packer v1.11.2
packer-plugin-proxmox_v1.2.2
Simplified Packer Buildfile
Very simple testing
Operating system and Environment details
Running packer on M1 silicon, MacOS 15.1.1
Log Fragments and crash.log files
No relevant logs
The text was updated successfully, but these errors were encountered: