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.<\/p>\n
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:
\nThe Adapter is set to Default Switch-01
\nThe Hyper_V Switch Manager shows only 1 virtual switch Switch-01.
\nThe Virtual Switch is set to be external
\nThe Vritual Switch points to a specific adapter
\nThe specific adapter is active and plugged in
\nAnd again the other two VMs with this same setup work just fine.<\/p>\n
Everything looks okay. Still won’t connect.<\/p>\n
Not sure what to look at from here.<\/p>","upvoteCount":6,"answerCount":5,"datePublished":"2025-04-29T15:30:57.708Z","author":{"@type":"Person","name":"matthewjohnson3","url":"https://community.spiceworks.com/u/matthewjohnson3"},"acceptedAnswer":{"@type":"Answer","text":"
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.<\/p>","upvoteCount":6,"datePublished":"2025-04-29T16:38:39.134Z","url":"https://community.spiceworks.com/t/ubuntu-on-hyper-v-not-connecting-to-internet/1200981/4","author":{"@type":"Person","name":"matthew-martin","url":"https://community.spiceworks.com/u/matthew-martin"}},"suggestedAnswer":[{"@type":"Answer","text":"
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.<\/p>\n
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:
\nThe Adapter is set to Default Switch-01
\nThe Hyper_V Switch Manager shows only 1 virtual switch Switch-01.
\nThe Virtual Switch is set to be external
\nThe Vritual Switch points to a specific adapter
\nThe specific adapter is active and plugged in
\nAnd again the other two VMs with this same setup work just fine.<\/p>\n
Everything looks okay. Still won’t connect.<\/p>\n
Not sure what to look at from here.<\/p>","upvoteCount":6,"datePublished":"2025-04-29T15:30:57.771Z","url":"https://community.spiceworks.com/t/ubuntu-on-hyper-v-not-connecting-to-internet/1200981/1","author":{"@type":"Person","name":"matthewjohnson3","url":"https://community.spiceworks.com/u/matthewjohnson3"}},{"@type":"Answer","text":"
Sounds like you’ve checked all the VM related stuff, but I don’t see anything about the VM itself.<\/p>\n
Maybe try troubleshooting just like you would anything else that can’t connect to the internet?<\/p>\n
Is it getting an IP?
\nWhat is its gateway?
\nCan it ping the gateway?<\/p>\n
That sort of thing…<\/p>\n
Is it possible, the VM is not set use DHCP? Or, that a static IP config of the VM is incorrectly set?<\/p>","upvoteCount":4,"datePublished":"2025-04-29T15:45:13.711Z","url":"https://community.spiceworks.com/t/ubuntu-on-hyper-v-not-connecting-to-internet/1200981/2","author":{"@type":"Person","name":"ich-ni-san","url":"https://community.spiceworks.com/u/ich-ni-san"}},{"@type":"Answer","text":"
Well…huh…
\nSo…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.<\/p>\n
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.<\/p>","upvoteCount":2,"datePublished":"2025-04-29T16:25:31.354Z","url":"https://community.spiceworks.com/t/ubuntu-on-hyper-v-not-connecting-to-internet/1200981/3","author":{"@type":"Person","name":"matthewjohnson3","url":"https://community.spiceworks.com/u/matthewjohnson3"}},{"@type":"Answer","text":"
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.<\/p>\n
Now I’m even more angry about a separate issue from October. But this issue is solved. Thank you.<\/p>","upvoteCount":4,"datePublished":"2025-04-29T16:56:00.466Z","url":"https://community.spiceworks.com/t/ubuntu-on-hyper-v-not-connecting-to-internet/1200981/5","author":{"@type":"Person","name":"matthewjohnson3","url":"https://community.spiceworks.com/u/matthewjohnson3"}}]}}