Score:1

VM cannot access network on new Hyper-V Host

uy flag

I re-built an existing Hyper-V host server on Windows Server 2016 to move to a larger SSD RAID for storage (required OS re-install). The host itself is on the domain and accessible via RDP all looks well. I then copied a test VM to the host and it starts up, but has no network connectivity. I tried deleting and re-creating the virtual switch, but still no luck. The virtual switch is on NIC3, external network, and "allow management operating system to share this adapter" is unchecked. These settings are exactly how it was configured before and I am using the same NIC as before. I cannot ping the VM from the host, nor can the VM ping the gateway or any other IP on my network. Any ideas on what to look at?

joeqwerty avatar
cv flag
Dumb question: Does the VM have a virtual NIC and is it connected to the virtual switch?
Score:0
ng flag

How is the (real) switch port connected to NIC3 configured? Is it in trunk or access mode? Did you maybe miss a VLAN setting somewhere?


Edit:

How many NICs do you have? Make sure you selected the right one in the virtual switch configuration.
The names can be misleading, because Hyper-V uses the device names instead of the friendly names; what you call "NIC3" might not actually be the third NIC in the device list.

uy flag
I am using a Meraki router and no VLan settings. I have never configured any of the ports on the router so are at defaults. I used the same procedures I did for my other Host. On my other host, after configuring the Virtual Switch, the only protocols checked on the NIC are "Microsoft LLDP Protocol Driver" and "Hyper-V Extensible Virtual Switch". On this host, the NIC protocols remain unchanged and I cannot select "Hyper-V Extensible Virtual Switch" even manually.
Massimo avatar
ng flag
You can't enable "Hyper-V Extensible Virtual Switch" manually; the physical NIC is configured by Hyper-V when you bind it to a virtual switch. If the NIC still has the default protocols enabled and no "Hyper-V Extensible Virtual Switch", then Hyper-V didn't claim it.
Massimo avatar
ng flag
See my edit about selecting the correct NIC.
uy flag
Wow, I can't believe the problem was confusion created by the "(un)friendly names" displayed in the Virtual Switch Manager . I have Dell R620 servers with 4 NICs. For some bizarre reason NIC1 = "Broadcom NetXtreme Gigabit Ethernet #2", NIC2 = "Broadcom NetXtreme Gigabit Ethernet #3", NIC3 = "Broadcom NetXtreme Gigabit", and NIC4 = "Broadcom NetXtreme Gigabit Ethernet #4". The adapter I thought was NIC3 was actually NIC2 and wasn't even plugged into the switch. Thanks for the tip!
Massimo avatar
ng flag
Been there, done that...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.