Generation 2
Cheat sheet · https://pcornel.dk/topic.php?topic=3334
Answer
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.
Remember
- 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.
First checks
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
Verify in this order
Gen 2 VM → UEFI → Secure Boot → SCSI boot
Where it usually breaks
First mismatch in host/cluster identity → management configuration → quorum/resource ownership → network/storage dependencies → VM/service runtime → guest/application verification; preserve identity/native error/pre-state before mutation.
Hyper-V → Generation 2 reference map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3334