Skip to content
Search Oracle Linux

    Browse this documentation

    UEFI install walkthrough: installing under OVMF, the ESP layout and an unexpected Secure Boot finding

    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.

    Terminal window
    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=vmbr0

    Key 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.

    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 Boot
    sda2 2G /boot sda2 2G /boot
    sda3 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:

    Terminal window
    mokutil --sb-state
    # SecureBoot disabled

    Despite pre-enrolled-keys=1 on the efidisk. Likely causes (open question):

    1. 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;
    2. The OVMF firmware setting for the SB master switch defaults to off (enter firmware Setup with ESC to enable);
    3. The newer ms-cert=2023k option 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).

    DimensionUEFI (OVMF)BIOS (SeaBIOS)
    Boot chainESP → shim → grubMBR → grub
    Partition tableGPT requiredGPT (1M BIOS Boot shim)
    Secure Bootoptional (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.