Use this when VMs or hosts must boot only signed code.
Secure Boot
Secure Boot for VMs uses UEFI firmware to verify that the bootloader and kernel are signed by trusted keys, blocking boot-level malware. It requires UEFI VMs and signed drivers, and also protects hypervisor hosts that support it.
1. Secure Boot verifies boot loaders and kernels in the guest.
2. Needs UEFI firmware.
3. Hyper-V Linux guests need the UEFI CA template.
4. Custom kernels/drivers must be signed.
5. Check state in guest.
UEFI keys → signed boot loader → signed kernel
Context & applicabilityCommon mistakes · platform/version boundaries
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.
- Secure Boot enabled in VM settings (Hyper-V template: Microsoft Windows or Microsoft UEFI CA for Linux).
- Guest:
Confirm-SecureBootUEFIormokutil --sb-state.
Step 2 Common mistakes Narrow the fault
- BIOS VMs cannot simply enable Secure Boot (disk must be GPT).
- Unsigned Linux kernel modules failing to load.
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 firmware.
- Linux guests need a signed shim bootloader.
mokutil --sb-state— guest Secure Boot state (Linux)Get-VMFirmware <vm> | fl SecureBoot,SecureBootTemplate— Hyper-Vqm config <vmid> | grep efidisk— Proxmox OVMF with pre-enrolled keys
ReferenceWhy it matters1 section · depth on demand
Why it matters
Secure Boot stops unsigned boot loaders and kernel-mode rootkits from loading in the VM. Combined with a vTPM it also enables measured boot and BitLocker/Windows 11 requirements.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
UEFI Secure Boot in a VM verifies that the boot loader and kernel are signed by trusted keys, blocking boot-level malware.
| Platform | Setting |
|---|---|
| VMware | VM Options > Boot > Secure Boot (EFI firmware) |
| Hyper-V | Gen 2 VM, template "Microsoft Windows" or "Microsoft UEFI Certificate Authority" for Linux |
| Proxmox | OVMF with pre-enrolled-keys=1 on the EFI disk |
Set-VMFirmware vm1 -EnableSecureBoot On -SecureBootTemplate MicrosoftUEFICertificateAuthority
qm set 120 --bios ovmf --efidisk0 local-zfs:1,efitype=4m,pre-enrolled-keys=1
mokutil --sb-state # inside Linux guest
Enabling per platform
| Platform | How |
|---|---|
| vSphere | VM Options → Boot Options → EFI + Secure Boot |
| Hyper-V | Set-VMFirmware vm01 -EnableSecureBoot On -SecureBootTemplate MicrosoftUEFICertificateAuthority (Linux) |
| Proxmox | OVMF BIOS + EFI disk with pre-enrolled keys |
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 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%