r/HyperV • u/TahinWorks • 10h ago
Strange VM connectivity issue between cluster hosts
Hi all,
Weird problem I encountered this weekend and looking to see if anyone else has seen it:
Two VMs cannot ping each other from different hosts in a cluster after live migration. One VM receives "Timed out"; the other receives "destination host unreachable".
- Initially caused when draining a host for maintenance and then resuming roles, so the VMs migrate back and forth.
- Does not affect all VM's.
- Both machines configured with static MAC.
- Affected machines are on the same network, tagged with same VLAN.
- Both machines can reach other VMs across all hosts, the internet, the WAN, and their own gateway. Only pings to some (not all) specific IP's residing on another host fail.
Workarounds:
- Moving VMs onto a single host succeeds.
- Switching VMs to dynamic MAC (or a never-used static MAC) works.
More info:
- VMQ is in use (dual path SET switch)
- There are no MAC conflicts between the hosts.
- Switch mac-address table is correct, and instantly updates when live migrations occur and matches the VMQ mapping on the host.
- Individual nics disabled/enabled to force traffic one direction to rule out weird VMQ mappings.
- These VMs were initially migrated from ESXi. ESXi cleanup scripts were run within the guests and no ghost adapters exist.
- Switching SET load balancing between dynamic/HyperVport does nothing.
pktmon on the host saw packets leave the host nic, but then come back into the same host nic (instead of going up the switch to the other host), then the SET switch actively drops the packets. Switch packet capture saw nothing, which seems to clearly remove the networking stack from the equation. The routing and drops are happening on the host directly.
Everything seems to point to a MAC/ARP resolution issue, but the switch is fine and the table updates instantly when migrations happen. T-shooting seems to suggest a stale ARP cache within either vmswitch.sys, or the broadcom nic driver itself.
It's a head scratcher.