-
Notifications
You must be signed in to change notification settings - Fork 65
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
test: Check creating and booting an EFI guest #1619
base: main
Are you sure you want to change the base?
Conversation
cockpit-project/cockpit-machines#1619 introduces a new test which is also broken by this SELinux TPM denial.
cockpit-project/cockpit-machines#1619 introduces a new test which is also broken by this SELinux TPM denial.
Why am I not surprised.. It doesn't boot: Booting with
somewhat works -- it gets past EFI and grub, and now just hangs on an empty screen -- mostly because it's so achingly slow due to emulated QEMU. I'm afraid Alpine is too complex/big to be able to sensibly boot there. But at least this gets way further than c-machines. So now to find out where the difference is.. One major one is |
Use our new "alpine-efi" bots image as guest. This isn't very comprehensive yet, mostly to validate that the alpine-efi image works, and that c-machines/libvirt can *actually* boot an EFI guest. We may want to extend this to more tests in the future, so that we'll get better ARM coverage. But that at least sets a baseline.
The alpine-efi image is not a ISO and can't be put into a cdrom, I think, but that's what the test seems to do. However, I have found no other way to boot the alpine-efi image with c-machines... "Cloud base image" with UEFI has the same behavior, and with BIOS it ends up in a 100% CPU loop. |
Alright, using a i440fx machine and using "alpine-efi" as a "Cloud base image" works. I couldn't get to boot the official Alpine ISO with UEFI on neither q35 nor i440fx.. If that's what progress looks like, I don't want to be part of it... |
I have pushed a commit that implements this in the test. The hardest part was to get the dialog to give us a i440fx machine... |
That is probably because the console is not on VNC but on ttyS0. |
@mvollmer Thanks for your investigations! TBH I'm not really that much interested in continuing to work on this -- it was a half-hearted attempt towards https://issues.redhat.com/browse/COCKPIT-970 , but this needs a lot more libvirt/qemu/images understanding and work than I currently have.. |
Use our new "alpine-efi" bots image as guest.
This isn't very comprehensive yet, mostly to validate that the alpine-efi image works, and that c-machines/libvirt can actually boot an EFI guest. We may want to extend this to more tests in the future, so that we'll get better ARM coverage. But that at least sets a baseline.
Requires cockpit-project/bots#6351 . Also, the first image I tried this on was fedora-40, and it failed right away. Turns out it's drumroll SELinux, so this will need a naughty. That's added to the bots PR now.