openEuler UEFI and Secure Boot — installer UEFI boot verified on a VM, SB state check methods, and the PVE key-enrollment troubleshooting chain (the 2026 certificate expiry, documented)
Verification scope
Section titled “Verification scope”Evidence on this page is the hardware track (E3) — an OVMF VM on PVE 9.2.2 (--bios ovmf --efidisk0 pre-enrolled-keys=1) booting the openEuler 24.03 LTS SP4 installation media and experimenting with SB state (2026-11-05, fully logged: evidence/logs/openeuler-p2-secureboot-vm.log; screenshots evidence/screenshots/euler-sb-*.png): UEFI boot straight to the installer (multiple rounds) + SB state checks + two rounds of key-tool troubleshooting.
An honest conclusion up front: this experiment environment (PVE OVMF) could not flip Secure Boot to enforced at the time of the experiment — openEuler’s shim chain passing verification under enforced SB is official statements, and this page obtained no direct evidence. But the UEFI boot path, the SB state-check method, and the PVE key-tool troubleshooting chain are all measured results, directly useful to readers hitting the “MS 2011 certificates expired” wall in 2026.
Measured 1: the UEFI boot path works end to end
Section titled “Measured 1: the UEFI boot path works end to end”The OVMF VM (no SeaBIOS fallback) booted the openEuler 24.03 LTS SP4 DVD directly: every boot round passed firmware → shim/grub → kernel → dracut → the Anaconda WELCOME screen (screenshot euler-sb-boot2.png), with no MokManager popups and no SB violation interrupts. Conclusion: the boot chain of openEuler installation media under UEFI firmware is complete — with SB disabled, the UEFI install path can be used directly (no direct evidence under enforced; see the end of the page; the install method matches BIOS, and the ks/PXE differences live in their own chapters).

Measured 2: check SB state from two sources — a successful boot proves nothing
Section titled “Measured 2: check SB state from two sources — a successful boot proves nothing”To tell whether a machine’s SB is really enforced, use two independent sources inside the guest (TTY2 or the installed system both work):
$ dmesg | grep -i "secure boot"[ 0.0032631] Secure boot disabled # kernel's view$ mokutil --sb-stateSecureBoot disabledPlatform is in Setup Mode # firmware's view + key state
The key lesson of this experiment: “the installer boots fine” does not mean SB is in effect. In the first round everything looked normal until a TTY2 check revealed the firmware-side SB was disabled and the platform was in Setup Mode (keys wiped) — declaring “SB verification passed” based only on “it boots” would have produced false evidence.
Measured 3: PVE’s key chain hits a 2026 wall (the full troubleshooting record)
Section titled “Measured 3: PVE’s key chain hits a 2026 wall (the full troubleshooting record)”Timeline (every step has screenshots and tool output):
qm create --efidisk0 pre-enrolled-keys=1: PVE presets the MS 2011 certificates and warns —The UEFI 2011 certificates expire in June 2026!(current date 2026-11, already expired). After boot the guest reportsSecureBoot disabled / Setup Mode(screenshoteuler-sb-state.png);qm enroll-efi-keys <vmid>: PVE’s built-in 2023-certificate update tool; it reportsadd KEK cert … MicrosoftCorporationKEK2KCA2023.pem+successfully updated efidisk; after reboot the guest still reports disabled/Setup Mode (screenshotseuler-sb-state2/3.png);- virt-fw-vars writes the varstore directly:
python3 -m virt.firmware.vars --inplace /dev/pve/vm-384-disk-0 --sb --microsoft-kek all; the tool confirmsset variable SecureBootEnable: True; after reboot the guest still reports disabled/Setup Mode (screenshoteuler-sb-state5.png).


All three key/variable writes “succeeded on the tool side” while the guest-visible state never changed — the problem sits somewhere in PVE 9.2.2’s OVMF build and varstore layout (expired 2011 certificates + the Setup Mode state machine). The OVMF Setup UI path (ESC→Device Manager→Secure Boot Configuration) was also attempted; navigation was complex enough that after a time-box it was abandoned (menu screenshot euler-sb-ovmf-menu.png).

The reusable takeaway for readers: before doing openEuler SB verification on PVE, first confirm that mokutil --sb-state in the guest shows SecureBoot enabled and no Setup Mode; only then talk about shim verification. If you’re stuck in Setup Mode like this experiment was, switching to a physical machine or another virtualization platform with working SB is the faster path — don’t treat “it boots” as evidence.
Installation media and SB: official statements and retest items
Section titled “Installation media and SB: official statements and retest items”openEuler obtains Microsoft signatures through the shim-review process (official statements); the installation media (shim → grub → kernel) is designed to boot on machines with enforced SB. Status within this page’s measured scope: no installer differences were observed in this SB-disabled sample (multiple rounds booted fine under disabled); verification under enforced, and MokManager enrollment of self-signed modules (third-party driver scenarios), need a machine with working SB — listed as retest items (this section gets backfilled once hardware arrives).
Unverified
Section titled “Unverified”- Shim verification and the MokManager flow under enforced SB not tested in this environment (this environment cannot reach enforced; see above);
- MOK signing and enrollment for custom kernel modules not tested in this environment;
- Manually enabling SB through the OVMF Setup UI did not complete (navigation stalled at the Device Manager layer; OVMF’s
SecureBootSetupModevariable tools can continue this later); - UEFI network boot (the grubnet chain): see the untested statements in the PXE chapter.