No network on VM

Don
Joined
23 Oct 2005
Posts
44,240
Location
North Yorkshire
Hi guys,

I have an intermittent issue with my VM (hyper-vm) - standard windows 10 build, for some reason I often have to reboot the vm several times for the network to start working. Any ideas? I created a new external switch using the network adapter through the PC. Not sure why it's always struggling to find the gateway? I have tried manually inputting the IP details and still nothing works.

Any ideas? Screenshot 2022-09-13 233326.png
 
There's not enough information here to help you.
The Host is what? Windows 10? If so, what was wrong with the "default" switch that was mandated in Win10 1809 onwards?
What type of networking are you trying to achieve? VM out to the internet? VM to other VM? VM to Host?
If external (VM to internet and possibly other devices on your network), have you then altered any of the bridge adapter / WiFi / LAN settings since? Is the v-switch configured on WiFi or Physical LAN?
 
There's not enough information here to help you.
The Host is what? Windows 10? If so, what was wrong with the "default" switch that was mandated in Win10 1809 onwards?
What type of networking are you trying to achieve? VM out to the internet? VM to other VM? VM to Host?
If external (VM to internet and possibly other devices on your network), have you then altered any of the bridge adapter / WiFi / LAN settings since? Is the v-switch configured on WiFi or Physical LAN?

Cheers for the response. Hopefully the below helps more.

The host is on Windows 11. The VM on Windows 10 Home.

All I am trying to achieve is a internet connection on the VM, using default achieves no internet, after research that is where I read I should create a new virtual externals witch, making sure the external network is my Realtek network card and that should fix things but it doesn't. The VM is just getting not retrieving any IP details, just a default IP address.

Nothing has changed on the adapter or the router, my PC never has an issue. Strangely though, often a reboot an fix the problem, but its completely random with how many reboots are needed, the majority of the time there just won't be any internet.
 
Andy, you say configured the IP settings on the VM to use a static IP, but the screenshot still shows DHCP.

Setting the IP, subnet, gateway and DNS manually should get you your VM internet access.
 
Andy, you say configured the IP settings on the VM to use a static IP, but the screenshot still shows DHCP.

Setting the IP, subnet, gateway and DNS manually should get you your VM internet access.

Hi mate, sorry didn't mean to say I gave it a static address, it's just getting details via DHCP. I can try to give it a static IP and I'll report back
 
Andy, you say configured the IP settings on the VM to use a static IP, but the screenshot still shows DHCP.

Setting the IP, subnet, gateway and DNS manually should get you your VM internet access.

I gave it a static and its just classed as 'unidentified network', no change, still can't ping the gateway
 
Pretty sure you're just missing a step somewhere.

Create External switch in Hyper-V Manager which is tied to your network adapter > add network adapter to VM and make sure it's using the external switch > set IP address in the VM, the gateway will be your router and the DNS will be your router but you can add something like Google DNS (8.8.8.8). Should be that simple. You don't need to touch any settings on the host, just in Hyper-V Manager and on the VM.

Is that what you've tried?

If so, do you have any restrictions on your router or is the IP address clashing with another device on your network perhaps?
 
Last edited:
Critically, whatever network adapter you use must be the one that actually gets physical internet on the host. Is your host using WiFi or LAN?

Here's my config, none of my VMs that I want to have Internet use have static IPs (all DHCP from the v-switch). If I change SSID on my host WiFi, the address on the VM will change too.

SIXN8Ku.png
 
Exactly what I have done @Pigeon_Killer and mine looks the same as your pic @Django x2

I appear to have found a workaround, ipconfig /release and renew when I log in and it gets the IP info. No idea why this forces the VM to get the details and it's not just collected on startup...any ideas?
 
Last edited:
Back
Top Bottom