Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Secure Boot

Direct answer

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.

When to use this

Use this when VMs or hosts must boot only signed code.

First 30 seconds

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.

Operational verification

UEFI keys → signed boot loader → signed kernel

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization
Scope / prerequisiteUse this when VMs or hosts must boot only signed code.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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-SecureBootUEFI or mokutil --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 references

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.

observation · 1
Key points
  • Secure Boot requires UEFI firmware.
  • Linux guests need a signed shim bootloader.
Key checks
  • mokutil --sb-state — guest Secure Boot state (Linux)
  • Get-VMFirmware <vm> | fl SecureBoot,SecureBootTemplate — Hyper-V
  • qm 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.

PlatformSetting
VMwareVM Options > Boot > Secure Boot (EFI firmware)
Hyper-VGen 2 VM, template "Microsoft Windows" or "Microsoft UEFI Certificate Authority" for Linux
ProxmoxOVMF 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

PlatformHow
vSphereVM Options → Boot Options → EFI + Secure Boot
Hyper-VSet-VMFirmware vm01 -EnableSecureBoot On -SecureBootTemplate MicrosoftUEFICertificateAuthority (Linux)
ProxmoxOVMF BIOS + EFI disk with pre-enrolled keys
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization current

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%
Confirmation

Confirm action

Continue?