Generation 2
Cheat sheet · https://pcornel.dk/topic.php?topic=3699
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 settingsSet-VMFirmware <vm> -SecureBootTemplate MicrosoftUEFICertificateAuthority— Linux guestsGet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Firmware | UEFI | Different from Gen 1 BIOS |
| Secure Boot | Optional policy for supported guests | Enabled ≠ OS healthy |
| Devices | Primarily synthetic hardware | Attached ≠ driver/OS ready |
| Boot | UEFI boot manager path | Entry 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