I have a hyper-v host with 2 existing VMs (windows and Ubuntu). Both of those already existing VMs connect to the internet without any issues. I just added a new VM and started installing Ubuntu, and noticed it wasn’t connecting to the internet.

As far as I can tell it has been properly configured exactly the same as the other two, with the default virtual switch. It’s odd. Why would the 2 I have work, but the new one wouldn’t? All of the help I’ve found online didn’t directly address the possibility that other VMs were getting online. So I don’t know if that’s at all important. But I did check all of the items I was told to verify:
The Adapter is set to Default Switch-01
The Hyper_V Switch Manager shows only 1 virtual switch Switch-01.
The Virtual Switch is set to be external
The Vritual Switch points to a specific adapter
The specific adapter is active and plugged in
And again the other two VMs with this same setup work just fine.

Everything looks okay. Still won’t connect.

Not sure what to look at from here.

6 Spice ups

Sounds like you’ve checked all the VM related stuff, but I don’t see anything about the VM itself.

Maybe try troubleshooting just like you would anything else that can’t connect to the internet?

Is it getting an IP?
What is its gateway?
Can it ping the gateway?

That sort of thing…

Is it possible, the VM is not set use DHCP? Or, that a static IP config of the VM is incorrectly set?

4 Spice ups

Well…huh…
So…that’s weird. I have verified the setup of the IP (static, correct ip, correct subnet mask, correct gateway, correct nameservers) on the new ubuntu server. I cannot ping any server from the new server including the gateway. It cannot ping out at all.

However, servers on the same VLAN and subnet can ping the new server. So I can get in, I just can’t get out. This is definitely a new one for me.

2 Spice ups

Try setting the IP statically. Port security on the switch could limit the number of MACs it allows. Check if it still happen reconnect to network with those VM shutdown and then boot in different order.

6 Spice ups

It is set statically, though you did give me an idea. Apparently when installing our new switches the management company made a small oversight. It limited the maximum IPs on the port to just 3. Upping it to 5 fixed the issue.

Now I’m even more angry about a separate issue from October. But this issue is solved. Thank you.

4 Spice ups