Virtual Machines
Cheat sheet · https://pcornel.dk/topic.php?topic=3697
Answer
A Hyper-V VM has multiple independent states: configuration validity, registration, power/runtime state, guest OS state and application state. Troubleshooting must keep those layers separate.
Remember
- Registered ≠ running.
- Running ≠ guest booted.
- Guest booted ≠ application healthy.
- A VM configuration can be valid yet incompatible with destination CPU, storage or networking.
First checks
Get-VM | ft Name,State,Generation,Version,Status— VM inventoryGet-VM <vm> | Get-VMHardDiskDrive,Get-VMNetworkAdapter— devicesUpdate-VMVersion <vm>— upgrade config version (one-way)
Verify in this order
VM config → worker process → VHDX/vNIC
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 → Virtual Machines reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Configuration | Persistent VM definition | Not runtime allocation |
| Runtime | Off/Starting/Running/etc. | Running ≠ guest healthy |
| Guest | OS responds | Not application proof |
| Application | Original service test succeeds | End-to-end acceptance |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3697