Hyper-V Virtual Switch (Windows 8)
-
Sunday, June 17, 2012 10:15 PMI have installed Hyper-V on Windows 8 (Release Preview) to setup test labs, but when I install a External Switch (From Switch Manager)and it replaces my Physical network adapter with a virtual one but my Guest OS still can not connect to the internet but my Host OS can!
Am I missing some thing?Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
All Replies
-
Monday, June 18, 2012 10:55 AMAny help apriciated, would like to test Server 2012 but can't without a Guest network connection...
Also my PC only has one Physical Network Adapter?Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Monday, June 18, 2012 1:28 PM
Hi,
If you want to let the guest virtual machines connect to internet, you need to connect them to the External Virtual Switch which you created. Then these virtual machines will get IP address from your LAN.
When you said the virtual machines couldn’t connect to the internet, please check whether these virtual machines have proper IP addresses and related settings configured properly.
You can also check the following Hyper-V networking guides.
How does basic networking work in Hyper-V?
http://blogs.technet.com/jhoward/archive/2008/06/16/how-does-basic-networking-work-in-hyper-v.aspxHyper-V: What are the uses for different types of virtual networks?
http://blogs.technet.com/jhoward/archive/2008/06/17/hyper-v-what-are-the-uses-for-different-types-of-virtual-networks.aspx- Proposed As Answer by Murat Demirkiran Monday, June 18, 2012 8:57 PM
- Marked As Answer by o0MattE0o Monday, June 18, 2012 9:08 PM
- Unmarked As Answer by o0MattE0o Monday, June 18, 2012 9:26 PM
- Unproposed As Answer by o0MattE0o Thursday, June 21, 2012 10:04 PM
-
Monday, June 18, 2012 9:09 PM
Its working ok now but I did create a Internal switch first then an external and attaché the two too the Virtual Server.
But I only have external now and all is ok ...
OK I just added a second Virtual NIC (Internal) and I loss internet connection on the VM? going to try Private!
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Tuesday, June 19, 2012 5:48 AM
Hi,
If you want to let the virtual machines connect to internet, the easiest way should be connect them to the External Virtual Network. The virtual machines connect to the Internal Virtual Network can only communicate with each other and the Hyper-V host machine they are running on.
For more information, please check the guides in my last reply.
-
Thursday, June 21, 2012 10:03 PM
Got it working, but I had to do the follow which is a little long winded compared to VMWare: -- Create a Private Virtual Switch (this will not do any thing to your physical network card)
- Create a External Virtual Switch (this will take over your physical network card)
- Add two network cards to your VM
a. 1st Network card as Private
b. 2nd Network card as External - Start VM
- Allow to install
- Change Private Network card to disconnect
- Rename network cards (helps in future)
a. Allow External to Connect to the internet
b. I also disabled IPv6, - Re-Connect Private Network
P.S.
I don't know why it would not allow me to just add two virtual switches in any order and just run as I was expecting but I posted this just so any one else with some issues can try this as well?Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
- Proposed As Answer by Leonid GanelineMVP Wednesday, November 28, 2012 10:06 PM
-
Thursday, June 21, 2012 10:05 PMJust say thanks for you help but have corrected the issue!
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Friday, June 22, 2012 8:48 PM
Not working again :( strange ?????
Virtual Switch's: -
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
- Edited by o0MattE0o Friday, June 22, 2012 9:04 PM
-
Friday, June 22, 2012 9:06 PM
Virtual Server: -
Host Computer: -
and yes I can get to the internet on the host running hyper-v as I'm using it to post this?
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
- Edited by o0MattE0o Friday, June 22, 2012 9:07 PM
-
Saturday, June 23, 2012 6:19 PM
My Virtual Server has the following network cards
External Connection
192.168.0.3
Private Connection
10.10.10.1Now according to Hyper-V a : -
External Switch
Creates a virtual switch that binds to the physical network adapter so that virtual machines can access a physical network
Private Switch
Creates a virtual switch that can be used only by the virtual machines that run on this physical computer?I still do not have any network connection but can some one please explain this?
Image is of my router displaying an ip address of 10.10.10.3 which is the IP Address of the Private network switch?
And it is also showing the IP Address of the Server but still not getting any internet connection?
I would class this as a show stopper bug? (can some one please help)
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Saturday, June 23, 2012 6:59 PMYour router shouldn't be able to see the private network ip address atall, so that 10.10.10.3 shouldn't be there so it looks like aconfiguration error of some kind, maybe somehow you have the privateswitch and external switch connections in the VM switched, though Ican't tell, not enough info.You wouldn't expect to get any internet connectivity on the privateswitch, nor the 10.10.10.3 IP address, it's not in the same subnet asyour router.
Bob Comer - Microsoft MVP Virtual Machine -
Saturday, June 23, 2012 8:31 PM
All I have done is the following: -
Server
- Open Hyper-V Manager
- Click "Virtual Switch Manager..."
- Select "External"
- Click "Create Virtual Switch"
- Rename switch to "External Virtual Switch"
- Choose default settings for External Network
- Click "Apply"
Wait for host to regain internet connection, and test that internet is still working on host - Click "New virtual network switch"
- Select "Private"
- Click "Create Virtual Switch"
- Rename switch to "Private Virtual Switch"
- Choose default settings for Private Network
- Click "Apply"
- Click "OK"
Virtual Machine (repeated for all)
- select a chosen "Virtual Machine"
- Click "Settings..."
- select "Network Adapter"
- Under "Virtual switch choose"
"External Virtual Switch" - Select "Add Hardware"
- Select "Network Adapter"
- Click "Add"
- Under "Virtual switch choose"
"Private Virtual Switch" - Click "Apply"
- Click "OK"
Start the virtual machine and I just don't get any internet connection?
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Saturday, June 23, 2012 9:27 PM
-
Saturday, June 23, 2012 9:40 PM
Thanks I give that a try and give my External card a static gateway address...
My VM Setup
Network Card 1
External
Obtain an IP Address automatically
192.168.0.*
Obtain DNS sever Address automatically
-
Network Card 2
Private
IP Address
10.0.0.1
Subnet mask
255.255.255.0
Default gateway
Empty
Preferred DNS Server
10.0.0.1 / 127.0.0.1
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Saturday, June 23, 2012 10:02 PM
-
Saturday, June 23, 2012 10:56 PM
Ok worked out what the issue is :(
If the host goes to sleep you will no longer be able to use the network card? even If you try and restart the computer host or VM even swapping the network cards around or adding new ones dose not help?
Also the network card dose not want to keep the default physical gateway, I'm going to try and recreate the virtual switch and see if turning the host off will create the same issue?
*I know in live environment's your servers don't go to sleep but hopefully the turning the host of dose not have the same affect?Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Saturday, June 23, 2012 11:33 PM"If the host goes to sleep you will no longer be able to use thenetwork card? even If you try and restart the computer host or VM evenswapping the network cards around or adding new ones dose not help?"Normally that wouldn't happen, but some drivers have a problem wakingback up after sleep."Also the network card dose not want to keep the default physicalgateway, I'm going to try and recreate the virtual switch and see ifturning the host off will create the same issue?"It shouldn't, I do that all the time.
Bob Comer - Microsoft MVP Virtual Machine -
Sunday, June 24, 2012 8:34 AMI have a look and see if there is some updated drives the only thing is when my PC dose wake up the host is ok with internet?
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
-
Sunday, June 24, 2012 11:23 AM
I don't know, but it usually is a driver problem.I rarely use sleep though, so maybe someone else has more experiencewith it.You might try asking about it in the W8itprovirt forum as that'sdedicated to Hyper-V...
Bob Comer - Microsoft MVP Virtual Machine- Marked As Answer by o0MattE0o Friday, June 29, 2012 9:19 PM
-
Friday, June 29, 2012 9:21 PMI'm still testing, because I have not had much time between work
But looks like downgrading to Windows 7 drivers and not the ones windows 8 installed is working, I have not lost connection yet...
Thanks for you help Bob Comer
Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk
- Edited by o0MattE0o Friday, June 29, 2012 9:22 PM
-
Friday, November 16, 2012 8:31 PM
Just after add the External Virtual Switch on the Network Connections Disable and Enable it again and configure if you use a manual config or just leave bye DHCP.
-
Sunday, December 09, 2012 5:45 AM
I confirm that, in my case, it was a network driver issue.
I rolled back the driver (marvell NIC) provided by the publisher to the drivers included in Windows 8 DVD ... and it has solved the issue.
Luc
-
Tuesday, April 30, 2013 10:14 AM
after reading all these forums, this worked! FFS! (the disable and re-enable after creating)
Thanks though. stupid windows 8

