Bug 2222137

Summary: supermin images with zboot (and systemd-boot?)
Product: [Fedora] Fedora Reporter: Jeremy Linton <jeremy.linton>
Component: superminAssignee: Richard W.M. Jones <rjones>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: rjones
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Linton 2023-07-11 23:51:54 UTC
Testing supermin, it looks to be doing the right thing WRT to picking up the host kernel/initrd when running on a systemd-boot machine when those items are found in /boot/efi/$MACHINEID/$KERNELVER/kernel.

That appears to be because its actually symlinking the kernel from /lib/modules/$KERNELVER.

That said, at least on aarch64 machines, it seems the resulting example images won't boot, and it appears the problem is because qemu doesn't yet understand the ZBOOT (PE wrapped compressed kernel image) format being used in fedora when passed as a -kernel, because there isn't a direct entry point unless something decompresses the image (AKA a UEFI compliant firmware running in the guest as well).

So, this might just be a qemu bug, but per the fedora-dev mailing list, i'm going to open it here as a placeholder since I can't seem to validate a full supermin sequence at the moment.




Reproducible: Always

Steps to Reproduce:
1. Install a systemd-boot machine with inst.sdboot/etc.
2. Install supermin
3. Follow the examples frp, https://libguestfs.org/supermin.1.html to create an image
4. Attempt to boot image, tweaking parms for aarch64
Actual Results:  
No response from qemu when passed the supermin kernel with -kernel, which looks like it could be a problem with the -serial device, but it behaves the same when -kernel is just garbage too.


Expected Results:  
The image boots per the instructions.

Comment 1 Fedora Release Engineering 2023-08-16 08:12:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.