Hyper-V Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3342
Answer
Hyper-V troubleshooting identifies whether a problem sits in the guest, the VM configuration, the virtual switch, storage or the host, by starting from the last layer that is known to work and testing the next one.
Remember
- Start by scoping one VM versus many VMs; that sharply changes the likely failure boundary.
- A Running VM is host-side state only.
- Management connectivity and Hyper-V Manager visibility do not prove VM data paths.
- Always preserve the source/destination host, VM identity and timestamp when correlating migration, storage and network evidence.
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
Commands
Get-VM- List Hyper-V VMs and state.
Get-VHD -Path <path>- Display VHD/VHDX metadata.
Get-VM -Name <vm> | Format-List Name,State,Status,OperationalStatus- Operational command for Inspect Hyper-V VM state and status. Focus fields: VM name, state, status and operational statu…
Get-VMNetworkAdapter- Read-only observation for VM NIC, switch attachment, MAC and connectivity state.
Verify in this order
host → VM config → devices → guest
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 → Hyper-V Troubleshooting reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Host scope | One host or all VMs affected | Does not identify exact subsystem |
| VM scope | One VM/config/runtime differs | Does not prove guest cause |
| Device path | Storage/network backing path verified | Does not prove guest/app |
| Workload | Guest/application outcome validated | Completes end-to-end diagnosis |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3342