UEFI install walkthrough: installing under OVMF, the ESP layout and an unexpected Secure Boot finding
What you will learn
Section titled “What you will learn”What actually differs when installing OL under UEFI firmware: what the ESP layout looks like, how to verify the secure-boot chain — and a PVE-specific finding: keys pre-enrolled, yet Secure Boot off.
PVE side: OVMF + efidisk
Section titled “PVE side: OVMF + efidisk”qm create 970 --bios ovmf --machine q35 \ --efidisk0 local-lvm:1,pre-enrolled-keys=1 \ # EFI vars disk with MS keys pre-loaded --cpu host --cores 2 --memory 2048 --net0 virtio,bridge=vmbr0Key points: --efidisk0 is required (without it efivars do not persist and SB configuration is lost on reboot); pre-enrolled-keys=1 loads the Microsoft certificates into db/dbx. PVE 9.2 warns at boot (measured verbatim): “UEFI 2011 certificates expire in June 2026” — an aging certificate set, directly relevant to the SB state below.
Measured result: GRUB loads
Section titled “Measured result: GRUB loads”The install ISO boots under OVMF and the GRUB 2.12 menu appears normally (screenshot 31-uefi-grub-menu.png, GOP 1280×800) — Oracle’s shim → grubx64 signature chain verified against this OVMF. Choosing Install starts Anaconda normally (resolution follows GOP under UEFI).
Post-install layout: the ESP is the difference
Section titled “Post-install layout: the ESP is the difference”Measured lsblk /dev/sda after install (contrasted with the BIOS layout):
UEFI: BIOS:sda1 600M /boot/efi (ESP) sda1 1M BIOS Bootsda2 2G /boot sda2 2G /bootsda3 17.4G LVM / sda3 18G LVM /The ESP (EFI System Partition) is the heart of UEFI boot: the firmware reads \EFI\oracle\shimx64.efi straight off the FAT partition. The installer creates it automatically — the operational takeaways: never delete /boot/efi, and it does not participate in grow scenarios (fixed at 600M).
Secure Boot: measured disabled (the unexpected finding)
Section titled “Secure Boot: measured disabled (the unexpected finding)”Inside the guest after install:
mokutil --sb-state# SecureBoot disabledDespite pre-enrolled-keys=1 on the efidisk. Likely causes (open question):
- PVE 9.2’s pre-loaded certificate set is the 2011 vintage (the boot warning says it expires 2026-06) and does not match the db entries the OL shim requires → OVMF falls back to disabled silently;
- The OVMF firmware setting for the SB master switch defaults to off (enter firmware Setup with ESC to enable);
- The newer
ms-cert=2023koption was not used (PVE recommends setting it explicitly).
Troubleshooting: confirm SB state in OVMF Setup → compare db certificate fingerprints against the OL shim signing chain → rebuild the efidisk with ms-cert=2023k if needed. For environments that do not mandate SB: installation and operation are fully normal in the disabled state (this page’s install completed exactly that way).
UEFI vs BIOS installs
Section titled “UEFI vs BIOS installs”| Dimension | UEFI (OVMF) | BIOS (SeaBIOS) |
|---|---|---|
| Boot chain | ESP → shim → grub | MBR → grub |
| Partition table | GPT required | GPT (1M BIOS Boot shim) |
| Secure Boot | optional (needs full db) | not applicable |
| New-hardware compatibility | ✅ (some platforms UEFI-only) | fading |
New environments should default to UEFI + Secure Boot compliance; the SB key-chain issues above are the troubleshooting path when it does not come up enabled.
Evidence and limits on this page
Section titled “Evidence and limits on this page”- Measured: OVMF boot, GRUB chain-load, ESP layout, mokutil state and its correlation with the PVE warning (E3);
- Not measured: the SB-enabled path (ms-cert=2023k efidisk rebuild + manual OVMF Setup enable), MOK self-signing enrollment;
- Sources: PVE admin guide: Qemu/KVM virtual machines (OVMF/efidisk0), OL10 installation guide,
mokutil(1).