-
Notifications
You must be signed in to change notification settings - Fork 43
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHEL 9 kernel panic on Packer launched qemu-kvm #76
Comments
Red Hat has closed the RHEL bug report, please see the following BZs for details: https://bugzilla.redhat.com/show_bug.cgi?id=2060839 Red Hat is suggesting that ideally Packer should use libvirt instead of qemu-kvm directly but since it might require quite some work initially avoiding issue by adding |
What is the status of this issue? My guess is that other distributions will start doing the same thing as Red Hat. What is the "best" workarund?
Compared with just |
Hi @joubbi, According to the qemu documentation, Regarding this issue, this is indeed a problem for users that are on a RHEL 9+ system (and if it generalises to other distributions this will become a bigger issue indeed), so this warrants some more thoughts on our part to make the experience smoother for them, but we also don't want to break existing workflows, as much as we can at least. I think we can probably introduce a As for the default value, I can imagine that either Regarding Redhat's suggestion to use libvirt rather than invoking I'll keep this issue updated, thanks for bringing this up again! |
Not sure if this is the same problem as you have, but we had to modify qemu args for RHEL9 as follows :
|
This issue was originally opened by @myllynen in hashicorp/packer#11839 and has been migrated to this repository. The original issue description is below.
Community Note
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Description of the Issue
When trying to create a RHEL 9 VM with Packer + Qemu builder running on RHEL 7.9, the installer fails due to kernel panic. See the screenshot at the below mentioned other report. The relevant part of qemu-kvm command line is:
/usr/libexec/qemu-kvm -m 4096M ... -machine type=pc,accel=kvm -smp cpus=2,sockets=2
If configuring Packer to add "-cpu host" to qemu-kvm command line then the installer starts normally. Another user reported the same issue elsewhere and fixed this slightly differently: https://discuss.hashicorp.com/t/packer-qemu-kvm-redhat-9-kernel-panic/39886.
I'm not sure what's the root cause for this so I'm filing the issue for both Red Hat and Packer, hopefully either or both sides can be tweaked to fix this issue. Thanks.
Version information:
RHEL 9.0 / Packer 1.8.1
The text was updated successfully, but these errors were encountered: