If I build a new virt guest based off of a f38 cloud image (I assume other ones as well, this just happens to be how I'm doing it) and I re-install the kernel I can no longer boot the guest, it simply hangs. There's no console information or anything. Reproducible: Always Steps to Reproduce: 1. Download a qcow2 image of fedora 38 2. Use virt-customize to inject your ssh key or set a root password. 3. Do an installer with virt-install --memory 4096 --vcpus 2 --name testvm \ --import --disk $VM_IMAGE,format=qcow2,bus=virtio \ --os-variant fedora38 \ --network bridge=virbr0,model=virtio \ --graphics none \ --noautoconsole 3. Log into the vm, run dnf reinstall kernel-core, reboot Actual Results: The vm no longer boots, it just hangs. Expected Results: I would like it to actually boot. I have this same workflow working on an older fedora machine and it's working fine.
You'll need to add a serial console to the guest, then interrupt grub and edit the kernel command line. Remove rhgb quiet. Add console=ttyS0. Hit Ctrl+x to boot and see where its hanging.
That makes it work, which is maddening. This has gotten a bit confusing, WORKING CASE 1: 1) create guest in the above described way. 2) grubby --remove-args="rhgb quiet" --args=console=ttyS0,115200 --update-kernel=DEFAULT 3) dnf reinstall -y kernel-core 4) reboot WORKING CASE 2: 1) add '--boot uefi' to the above virt-install command. 2) dnf reinstall -y kernel-core 3) reboot BROKEN CASE: 1) create guest in the above described way 2) dnf reinstall -y kernel-core (or even make install from a kernel source which is what I was trying to do originally) 3) reboot The image is setup to be UEFI booted, it's got a UEFI partition and everything. With the original virt-install command it gets booted in bios mode. If I mess with the grubby options then something changes with how we do the grub install to make it boot properly. In case #1 we're still booted with bios mode when I reboot. In the broken case it appears to break the bios booting, I'm not entirely sure how. With case #2 we're just always UEFI and everything is happy.
What's the full output from the kernel when it hangs?
There's no output, it just sits there and spins.
I don't think it's even getting to grub, the VM just spins on a cpu.
Could it be this one? https://bugzilla.redhat.com/show_bug.cgi?id=2213346 Fixed by: https://lore.kernel.org/all/bead7acb-ed71-4a14-0094-f8e39323a3b5@grsecurity.net/T/#m3ba5981ed4d5b534fa53589e226d832639584826
I have the corresponding fix in my devel tree that I was having the same issue with yesterday, it's how I noticed the problem, I did the dnf reinstall thing to make sure it wasn't an upstream bug.
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21. Fedora Linux 38 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.