Windows 8.1 Pro with the Hyper-V Role installed. One physical NIC with a static IP address.
Configure an External Virtual Switch bound to the physical adapter.
Virtual machines can get to the Internet just fine but the Hyper-V server cannot.
Hyper-V server can’t even ping Bing.
Hmmmm…can’t even resolve bing.com. Looking at the IPv4 properties of the vEthernet (External) NIC there is no DNS configured.
Add the IP of the router (or whatever DNS server you use) back in for the DNS server(s). Now the Hyper-V server can access the Internet.
When creating the External Virtual Switch a dialog box popped up that said, “Pending changes may disrupt network connectivity. This computer may loose blah, blah, blah”. But then it says, “These changes also may overwrite some static changes. If that happens, you must reapply the static changes to restore network connectivity.”
So there you go. When configuring Hyper-V to use a NIC that has a static IP configured you may loose some or all of it when it moves those settings to the vEthernet NIC.
After installing KB2521220 on a server I noticed that my NICs no longer had static IP addresses & were picking up IP addresses from DHCP. Digging a little deeper I noticed that the NICs were all identified as new devices. Kind of like if you were to move a NIC from one slot to the other. It’s the same NIC but the OS identified it as a new device.
I open Network Connections (ncpa.cpl) & see that the two NICs I had renamed are back to the default (Local Area Connection, Local Area Connection 2, etc.). I right click to rename the first one & get an error that says, “Cannot rename this connection. A connection with the name you specified already exists. Specify a different name.”
I do a little Binging (yeah, I said it) & come across KB269155. It basically talks about orphaned devices & how to remove them. Following Method 1 in the article I see the six orphaned NICs.
- From a command prompt type set devmgr_show_nonpresent_devices=1
- Open Device Manager (devmgmt.msc).
- Click View>Show hidden devices.