r/HyperV • • 11d ago

Strange VM connectivity issue between cluster hosts

FIX: The fix was setting "Default EVB Mode" to none on the Broadcom firmware in BIOS. This Broadcom card feature maintains its own MAC/VLAN forwarding table beneath Hyper-V SET, and was stuck with stale MAC entries that could not be cleared. Useful feature when SR-IOV is used, but problematic when it's not.

In case this helps someone in the future.
https://knowledge.broadcom.com/external/article/458767/loss-connectivity-between-vms-on-differe.html

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.

3 Upvotes

12 comments sorted by

2

u/pdpelsem 11d ago

Aruba switches? 

2

u/Swimmerdude_03 11d ago

Is there some kind of port security enabled on the Cisco? Are you running the latest version of the driver and firmware on your nic?

2

u/TahinWorks 11d ago

All firmware matches and is the latest. The packets don't even make it to the switch; the frame makes it to the physical nic, then immediately returns it back into the same nic, and Hyper-v drops it: "I own this MAC, so I shouldn't be getting any packets sourced from this MAC from an external NIC".

Pretty sure the broadcom driver is to blame.

1

u/techbloggingfool_com 11d ago

Back in the 2012 days, a Broadcom driver issue really did cause almost this exact problem. There's still a MS doc about it out there lol. Have you tried turning off VMQ?

Virtual machines lose network connectivity - Windows Server | Microsoft Learn

1

u/TahinWorks 11d ago

Yep, and back in 2012 it was RSS that caused it, we followed that religiously for few years even after they patched it.

This is now resolved. Ended up being caused by a different Broadcom driver issue: EVB mode.

2

u/MagicHair2 11d ago

Have you got the correct vlans configured to pass through any switch stack ? (Assuming these hosts plug into 2 x switches)

1

u/TahinWorks 11d ago

Switch trunks are correct and allowed vlan lists are consistent, and traffic to other resources (including non-clustered endpoints on the same vlan) is not impacted. Also wouldn't explain why changing the MAC would fix it.

1

u/BlackV 11d ago

Follow on question could be, do have a real requirement for a static mac address of that fixes the issue (not that it answers your question of course)

But means you can test on another VM with effecting prod vm

1

u/TahinWorks 11d ago

The fix was setting "Default EVB Mode" to none on the Broadcom firmware in BIOS. This Broadcom card feature maintains its own MAC/VLAN forwarding table beneath Hyper-V SET, and was stuck with stale MAC entries that could not be cleared. Useful feature when SR-IOV is used, but problematic when it's not.

1

u/danrhodes1987 11d ago

Tracert output and network configs? Happy to take a look.

1

u/Southern-Werewolf-41 11d ago

Which manufacturer are the physical servers?