Hyper-V Networking
Cheat sheet · https://pcornel.dk/topic.php?topic=3337
Answer
VM packets traverse a virtual NIC, a Hyper-V virtual switch and possibly a host physical adapter or internal/private path before reaching external networks; VLAN and policy settings can alter behavior at multiple layers.
Remember
- VM vNIC Connected ≠ external network reachable.
- A vSwitch can be healthy while the wrong physical adapter, VLAN or upstream network is used.
- External, internal and private switches expose different connectivity scopes.
- Guest IP configuration remains a guest/Windows networking boundary, not a vSwitch property.
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
Verify in this order
vNIC → virtual switch → physical NIC/team → network
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 Networking reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| VM vNIC | Virtual adapter is attached/configured | Does not prove guest IP stack works |
| vSwitch | Correct virtual switch and type selected | Does not prove external uplink works |
| Physical uplink | Host NIC/link/VLAN path available | Does not prove remote service/return path |
| Guest flow | Guest can complete intended flow | Strong end-to-end network evidence |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3337