Use Generation 2 as the default choice for modern supported guests unless the operating system, boot method or existing virtual disk requires Generation 1.
Generation 2
Generation 2 removes much of the legacy emulated hardware model and uses UEFI with features such as Secure Boot, SCSI boot and modern virtual devices.
1. UEFI, Secure Boot (template per guest OS), SCSI boot, vTPM.
2. Linux guests: Secure Boot template "Microsoft UEFI Certificate Authority".
3. Boot failure → firmware boot order / Secure Boot template.
4. Get-VMFirmware <vm>.
5. Default for modern guests.
Gen 2 VM → UEFI → Secure Boot → SCSI boot
Validate guest services, integration components and application behavior after boot.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show workload health or all security controls are effective.
Next check: Validate guest services, integration components and application behavior after boot.
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 Verification path Verify boundary
Guest support → Generation 2 choice → UEFI/Secure Boot policy → synthetic devices/SCSI boot → guest boot → workload
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.
- Generation 2 is recommended for supported modern guests.
- Secure Boot is available and enabled by default for many Generation 2 scenarios, but guest-specific templates/settings matter.
- VM generation cannot be changed after creation through ordinary configuration.
- Generation 2 compatibility must be checked for the exact guest OS and boot method.
Get-VM— VMs and stateGet-VMHost— host settingsGet-VMSwitch— virtual switchesGet-VMNetworkAdapter -VMName <vm>— vNICs, switch, VLANGet-VMHardDiskDrive -VMName <vm>— attached disksGet-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin -MaxEvents 30— VMMS events
ReferenceWhat it is1 section · depth on demand
Generation 2 features
- UEFI with Secure Boot (Microsoft UEFI CA template for Linux).
- vTPM (needed for Windows 11, BitLocker in the VM).
- Boot from SCSI disks and synthetic NICs (PXE).
- Online resize and hot-add of SCSI disks and memory.
- VHDX required (no VHD boot).
New-VM -Name w11 -Generation 2 -MemoryStartupBytes 4GB
Set-VMFirmware -VMName w11 -SecureBootTemplate MicrosoftWindows
Enable-VMTPM -VMName w11
ReferenceImportant terms & boundaries2 sections · depth on demand
What the evidence shows
Secure Boot enabled or Generation 2 selected shows firmware policy/configuration, not that the guest OS or workload is trustworthy or healthy.
Current Microsoft guidance recommends Generation 2 where supported; feature compatibility still depends on guest OS and host capabilities.
In depth
Generation 2 VMs: UEFI, Secure Boot, vTPM, SCSI boot, hot-add disks and NICs, larger boot disks, faster boot.
New-VM -Name w11 -Generation 2 -MemoryStartupBytes 8GB
Set-VMFirmware w11 -EnableSecureBoot On -SecureBootTemplate MicrosoftWindows
Set-VMKeyProtector -VMName w11 -NewLocalKeyProtector; Enable-VMTPM -VMName w11
Set-VMFirmware lnx01 -SecureBootTemplate MicrosoftUEFICertificateAuthority # Linux guests
Windows 11 guests require Gen 2 with vTPM and Secure Boot.
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 Hyper-V → Generation 2. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Hyper-V → Generation 2 reference map
Fast lookup boundaries for Hyper-V → Generation 2.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Firmware | UEFI virtual firmware | Does not by itself prove Secure Boot policy correct |
| Secure Boot | Boot-chain signature policy can be enforced | Does not prove guest/application uncompromised |
| Boot storage | Supports SCSI VHDX boot | Disk must still contain compatible boot layout |
| Generation choice | Modern default where supported | Cannot be switched in-place later |