Pcornel
Windows · Hyper-V

Generation 2

Cheat sheet · https://pcornel.dk/topic.php?topic=3334

Back to the Topic

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 state
  • Get-VMHost — host settings
  • Get-VMSwitch — virtual switches
  • Get-VMNetworkAdapter -VMName <vm> — vNICs, switch, VLAN
  • Get-VMHardDiskDrive -VMName <vm> — attached disks
  • Get-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

BoundaryMeaningEvidence limit
FirmwareUEFI virtual firmwareDoes not by itself prove Secure Boot policy correct
Secure BootBoot-chain signature policy can be enforcedDoes not prove guest/application uncompromised
Boot storageSupports SCSI VHDX bootDisk must still contain compatible boot layout
Generation choiceModern default where supportedCannot 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

Confirmation

Confirm action

Continue?