Use this when hosts and VMs must boot only signed code.
Secure Boot
Secure Boot in virtualization security ensures hosts and UEFI VMs boot only signed bootloaders and kernels, blocking bootkits and rootkits that load before the operating system.
1. Secure Boot for hosts and guests blocks bootkits.
2. UEFI guests (Gen2/OVMF).
3. Correct templates for Linux on Hyper-V.
4. Keep DBX updated.
5. Verify after upgrades.
UEFI → signed boot chain → OS
Context & applicabilityCommon mistakes · platform/version boundaries
- Unsigned or custom kernel modules failing to load on Linux guests — sign them or enrol a MOK key.
- Old installation media without Secure Boot support.
- Converting BIOS VMs to UEFI without converting the disk to GPT.
- Wrong Secure Boot template on Hyper-V for Linux guests.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- VM firmware set to UEFI (not BIOS).
- Guest:
Confirm-SecureBootUEFI(Windows) returns True;mokutil --sb-state(Linux) shows enabled. - Hyper-V Linux guests use the *Microsoft UEFI Certificate Authority* template.
- Converting BIOS VMs to UEFI requires changing the disk to GPT first.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Secure Boot requires UEFI.
- It blocks bootkits and unsigned bootloaders.
- Unsigned drivers will fail to load.
mokutil --sb-state— guest Secure BootGet-VMFirmware <vm> | fl SecureBoot— Hyper-V- Host UEFI Secure Boot — hypervisor host
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Secure Boot ensures that only trusted, signed boot loaders and kernels run when a system starts, preventing bootkits and rootkits from loading before the OS. For VMs, the hypervisor provides UEFI firmware with Secure Boot; for hosts, the physical firmware does.
| Platform | Setting |
|---|---|
| VMware | VM option: EFI firmware + Secure Boot |
| Hyper-V | Generation 2 VM, Secure Boot template (Microsoft Windows / UEFI CA for Linux) |
| Proxmox/KVM | OVMF firmware with pre-enrolled keys |
Linux VMs need the correct template (Microsoft UEFI CA) because their shim is signed by it. Combine Secure Boot with a vTPM to support measured boot, BitLocker and attestation.
ReferenceConfiguration & state1 section · depth on demand
Enabling for VMs
| Platform | Setting |
|---|---|
| vSphere | VM firmware EFI + "Secure Boot" checkbox |
| Hyper-V | Generation 2 VM, Secure Boot template (Windows or Microsoft UEFI CA for Linux) |
| Proxmox/KVM | OVMF with pre-enrolled keys (efidisk0 with pre-enrolled-keys=1) |
Check inside the guest with Confirm-SecureBootUEFI or mokutil --sb-state.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization Security → Secure Boot. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/125/final · confidence 94%