Pcornel
Virtualization · Hyper-V

Generation 2

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

Back to the Topic

Answer

Generation 2 removes much legacy emulation and expects a UEFI-compatible boot path. Secure Boot template and guest support can materially affect whether installation media or an existing OS boots.

Remember

  • Generation 2 uses UEFI rather than legacy BIOS.
  • Secure Boot configuration must match the guest OS.
  • UEFI visibility of a disk ≠ valid bootloader on that disk.
  • Generation selection is architectural and not a routine power-state setting.

First checks

  • Get-VMFirmware <vm> | fl SecureBoot,SecureBootTemplate,BootOrder — UEFI settings
  • Set-VMFirmware <vm> -SecureBootTemplate MicrosoftUEFICertificateAuthority — Linux guests
  • Get-VMSecurity <vm> — vTPM

Verify in this order

UEFI → Secure Boot → SCSI boot disk → OS

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Hyper-V → Generation 2 reference map

BoundaryMeaningEvidence limit
FirmwareUEFIDifferent from Gen 1 BIOS
Secure BootOptional policy for supported guestsEnabled ≠ OS healthy
DevicesPrimarily synthetic hardwareAttached ≠ driver/OS ready
BootUEFI boot manager pathEntry exists ≠ successful boot

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3699

Confirmation

Confirm action

Continue?