grub-cc: GRUB EFI for Confidential Computing
| |
|---|---|
| Date | 2026-10-19 to 2026-10-25 |
| Time | all day |
| Website | QA/Test Days |
| Matrix | #test-day:fedoraproject.org(other clients|?) |
| Mailing list | test |
What to test?[edit]
There is a need for a smaller, lighter version of the GRUB bootloader on UEFI to support booting sealed bootable container images, such as for Confidential Computing.
Since confidential VMs rely on remote attestation, TPM String PCR values need to be stable and predictable over long periods of time. Updating the bootloader results in changes to PCRs, and should therefore be avoided if possible.
Additionally, Unified Kernel Images (UKIs) have become the preferred choice over the regular signed kernel because the whole payload is bundled and signed for Secure Boot, thus removing the vulnerability of the unsigned initramfs. They are used often in virtual environments, for confidential computing, and by CoreOS.
Taken together, the ideal bootloader for these types of environments should be small, light, and not get updated too often. The fewer modules are built-in, the smaller the attack surface, and the less frequent updates need to be.
The resulting idea has ended up in a new package called grub-cc which in practical terms, it is smaller version of GRUB, the supported bootloader in most Linux environments, for UEFI,
built as a separate package from the main GRUB build, contaiing only the modules absolutely necessary for booting, and natively supporting UKI loading.
As any bootloader, this is an important piece of software in the boot process and we need your help to validate this new package.
Note that this new package is not meant to be a replacement for GRUB for general use; rather it's an additional package for specific applications, in particular Confidential Computing workloads.
Who's available[edit]
The following cast of characters will be available testing, workarounds, bug fixes, and general discussion:
- Development - Leo Sandoval (@lsandova:matrix.org), Marta Lewandowska (@marta-lewandowska:matrix.org)
- Quality - Lukáš Růžička (lruzicka), Kamil Paral (kparal), Adam Williamson (adamw), Petr Sklenář (psklenar), Jaroslav Groman (jgroman)
You can chat with us on Matrix. See the infobox on top of the page to learn where to join.
Prerequisite for Test Day[edit]
- A virtual machine or a bare metal machine
- An installation of Fedora 45 (any Edition or Spin). Make sure to fully update your system.
- If installing a fresh system, it's recommended to use the latest nightly image (alternative download locations: local mirror, master mirror).
- Make sure you have no important data on that system. Things might go wrong -- don't do this on your production machine!
How to test?[edit]
The main idea is to boot a UKI using grub-cc which implies creating a UKI and a BLS entry files (and placing in the right folder), then installing a grub-cc and boot.
Sounds simple but requires multiple steps as indicated below.
Create and Enroll Signing Keys[edit]
- Install sign-related packages
dnf install -y pesign mokutil keyutils
- Create the asymetric key pair
efikeygen -d /etc/pki/pesign -S -k -c 'CN=Your Name Key' -n 'Custom Secureboot' certutil -d /etc/pki/pesign -L certutil -d /etc/pki/pesign -n 'Custom Secureboot' -Lr > sb_cert.cer
- Import it into
mok
mokutil --import sb_cert.cer
- Enroll it into the system
reboot # and enroll key
Create a UKI and BLS entry[edit]
- Install the
systemd-ukifypackage which contains theukifycommand.
In case you have an UKI file you would like test/boot it, just omit the ukify step below but follow the rest of the steps. In theory,
a good formatted UKI should be able to boot.
dnf install -y systemd-ukify
- Create the (unsigned)
kernel-*-UKI.efibinary file
ukify build \ --linux /usr/lib/modules/$(uname -r)/vmlinuz \ --initrd /boot/initramfs-$(uname -r).img \ --uname $(uname -r) \ --cmdline "@/proc/cmdline" \ --output kernel-$(uname -r)-UKI.unsigned.efi \ --profile "kernel $(uname -r) UKI (Fedora $(cat /etc/os-release | grep VERSION_ID | sed -e 's/VERSION_ID=//g'))"
ls -l kernel-$(uname -r)-UKI.unsigned.efi ukify inspect kernel-$(uname -r)-UKI.unsigned.efi
- Sign the new
UKI
pesign -s -c 'Custom Secureboot' -i kernel-$(uname -r)-UKI.unsigned.efi -o kernel-$(uname -r)-UKI.signed.efi
pesign -S -i kernel-$(uname -r)-UKI.signed.efi
- Place the
UKIinto the correspondingESPfolder
mkdir -p /boot/efi/EFI/Linux/ cp kernel-$(uname -r)-UKI.signed.efi /boot/efi/EFI/Linux/kernel-$(uname -r)-UKI.efi ll /boot/efi/EFI/Linux/
- Create the a new
BLSentry
mkdir -p /boot/efi/loader/entries echo "title Fedora ukify UKI" > /boot/efi/loader/entries/kernel-ukify.conf echo "efi /EFI/Linux/kernel-$(uname -r)-UKI.efi" >> /boot/efi/loader/entries/kernel-ukify.conf cat /boot/efi/loader/entries/kernel-ukify.conf
Now you are all set to test grub-cc
Test grub-cc and reboot[edit]
- Install the
grub-ccpackage
dnf install -y grub-cc rpm -ql grub-cc
grub-cc is not signed so lets' sign it with the new created keys
- Sign the
grub-ccpackage
pesign -s -c 'Custom Secureboot' -i $(rpm -ql grub-cc | grep grubx64.efi) -o grubx64.signed.efi
- Copy the signed
grubx64.signed.efiimage into theESPfolder
cp grubx64.signed.efi /boot/efi/EFI/fedora/grubx64.efi
- Reboot
You should see the GRUB menu with entries for each of the UKIs that you installed. If you press 'e' to edit an entry, you should see something like chainloader /path/to/UKI and when you execute any of the entries, they should successfully boot.
Use the tpm2_pcrread command between reboots of different UKIs to see that the value of PCR8 does not change. Note that TPM PCR measurements are only available when SB is on.
Visit the results page and click on the column title links to see the tests that need to be run: most column titles are links to a specific test case. Follow the instructions there, then enter your results by clicking the ➕ (plus) button for that test case.
Please also try to experiment and explore and perform tasks not mentioned in any of the pre-defined test cases.
Reporting bugs[edit]
Perhaps you've found an already-reported bug. Please look at:
All new bugs should be reported into the FIXME upstream bug tracker. A less-preferred alternative is to file them into Red Hat Bugzilla, in most cases against the FIXME component.
When filing the bug, it's very helpful to include:
- exact steps you've performed (and whether you can reproduce it again)
- screenshots or videos, if applicable
- system journal (log), which you can retrieve by
journalctl -b > journal.txt - all output in a terminal, if started from a terminal
- your system description
If you are unsure about exactly how to file the report or what other information to include, just ask us.
Please make sure to link to the bug when submitting your test result, thanks!
Test cases[edit]
| User | Short system description, e.g. a desktop motherboard name, or laptop manufacturer + model name | Fresh boot | References |
|---|---|---|---|
| Jaroslav Groman | Gigabyte J3455N-D3H, Celeron J34455, 16 GB RAM, Fedora 45 20261023.n.0 |
| |
| Josue Hernandez | KVM/QEMU VM, Fedora 45, UEFI + Secure Boot + TPM 2.0, 2 vCPU, 2 GB RAM 20 GB DISK |
| |
| Leandro Abdallah | KVM/QEMU VM, Fedora 45, UEFI + Secure Boot + TPM 2.0, 2 vCPU, 4 GB RAM 20 GB DISK |
| |
| Nicolas Frayer | F45 VM 2CPUs/4GB RAM/50GB HD |
| |
| Rénich Bon Ćirić (renich) | QEMU 10.2.2 Q35 VM on Hetzner Cloud cpx42 (AMD EPYC-Genoa, 8 vCPU, 4 GB RAM, 20 GB Disk), Fedora 45 Cloud 20261023.n.0, UEFI (EDK II OVMF) + Secure Boot + TPM 2.0 (swtpm) |
| |
| Rénich Bon Ćirić (renich) | Cherry Servers Bare-Metal Supermicro AS-2115GT-HNTR (AMD EPYC 9255 24C/48T Zen 5 Turin, SME/SEV-SNP/CCP 1022:156e, 192 GB DDR5, Dual 960 GB NVMe), Native Fedora 45 Cloud 20261023.n.0 (UEFI 2.90) + KVM/OVMF SecBoot + TPM 2.0 |
| |
| WQYeo | KVM/QEMU Q35 VM, Fedora 45 KDE, UEFI + Secure Boot + TPM 2.0, 4 vCPU, 4 GB RAM, 40 GB disk; |
|
