1. Joined : Nov 2016
    Posts : 3
    windows 10
       3 Weeks Ago #1

    No internet when Hyper-V running, need help configuring external switc


    Hello,
    I was trying to use prior thread, but it was too old and suggested to create new thread, also I am total NOOB, COULDN'T figure out myself so asking for help here.
    So i finally managed to do P2V and create .VHDX image, successfully created virtual machine using that disk and booted windows 7. My Host OS is W10 pro. On first boot without changing anything of course it didn't have internet as I hadn't created any switch. I have been googling how to make it work but couldn't figure out anything. Anyways I ran into guide to create NAT connection but even then no help getting internet working in Host pc. instead I keep losing internet connection in Host OS. (Only external internet connection to my PC is WIFI).
    Here are screenshots of all my networks and wifi connection properties
    Can someone please help me?
    Thank you.
    Click image for larger version. 

Name:	NETWORKS.jpg 
Views:	7 
Size:	205.6 KB 
ID:	109731Click image for larger version. 

Name:	VETHERNET PROPERTIES 1.jpg 
Views:	29 
Size:	63.9 KB 
ID:	109732Click image for larger version. 

Name:	VETHERNET PROPERTIES 2.jpg 
Views:	29 
Size:	66.3 KB 
ID:	109733Click image for larger version. 

Name:	WIFI PROPERTIES 1.jpg 
Views:	29 
Size:	61.7 KB 
ID:	109734Click image for larger version. 

Name:	WIFI PROPERTIES 2.jpg 
Views:	29 
Size:	64.7 KB 
ID:	109735Click image for larger version. 

Name:	VETHERNET PROPERTIES 3.jpg 
Views:	29 
Size:	41.1 KB 
ID:	109736Click image for larger version. 

Name:	WIFI PROPERTIES 3.jpg 
Views:	29 
Size:	39.5 KB 
ID:	109737
      My System SpecsSystem Spec


  2. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,070
    Windows 10 Pro
       3 Weeks Ago #2

    What a mess you have created! I think I've never seen such an amount of unusable network connections on single Windows PC.

    Anyway, please post following two screenshots:

    1.) On host, open an elevated (= Run as administrator) PowerShell or PowerShell ISE, type command Get-VMSwitch, press Enter. Take a screenshot of output and post here, example below:

    Click image for larger version. 

Name:	image.png 
Views:	1 
Size:	54.9 KB 
ID:	109742

    Your first screenshot in original post might already answer this question but to be sure I want to see this from PowerShell

    2.) Open Device Manager on host, expand Network adapters. Take a screenshot, post here, example below:

    Click image for larger version. 

Name:	image.png 
Views:	1 
Size:	42.9 KB 
ID:	109743

    Kari
      My System SpecsSystem Spec


  3. Joined : Nov 2016
    Posts : 3
    windows 10
       3 Weeks Ago #3

    Hi Kari,
    I know, i thought it would be simple straight forward process to create external switch like it was in VMWare, but things didnt work, i kept googling and trying any solution that might work. I was afraid problem was stemming from P2V, but figured later on it was me not knowing how to make external switch work in Hyper-V. LOL Ended up making noob mess, but i cleaned it all up, please take a look at how things look like after clean up.
    checked if anything would work after clean up but still all the same. no luck still.
    Click image for larger version. 

Name:	Get-VMSwitch.jpg 
Views:	2 
Size:	62.6 KB 
ID:	109752Click image for larger version. 

Name:	SWITCHNAME.jpg 
Views:	1 
Size:	101.0 KB 
ID:	109753Click image for larger version. 

Name:	Device Manager.jpg 
Views:	2 
Size:	92.5 KB 
ID:	109754Click image for larger version. 

Name:	NETWORKS.jpg 
Views:	25 
Size:	57.0 KB 
ID:	109755
      My System SpecsSystem Spec


  4. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,070
    Windows 10 Pro
       3 Weeks Ago #4

    OK, after cleanup it looks quite good except that you have no external switches created.

    Extract from a tutorial at our sister site Eight Forums:

    A Virtual Switch can be external, internal or private.
    • External Virtual Switch: will connect a vm to host NIC. If host NIC is connected to Internet through router, the vm is also connected to Internet. If host NIC (LAN) is not connected to router or if the router has no Internet access, the internal network will still work allowing computers (physical and vm) belonging to the same subnet and workgroup or domain to communicate with each other (file and media sharing etc.). When connecting external switch to host WLAN NIC, the vm loses all connectivity when WLAN is disabled or not connected on host.
    • Internal Virtual Switch: When a virtual NIC is connected to Internal VS it can communicate with other computers and vms on the same subnet but has no Internet access.
    • Private Virtual Switch: When a virtual NIC is connected to Private VS it can communicate with other vms on same Hyper-V server but cannot communicate with host PC nor has it Internet access. A Private vs is often needed when installing a legacy Linux or pre-XP Windows vm. After installation you need then to disable Private Switch and use Internal or External to connect to the network.
    (From Hyper-V Virtual Switch Manager)

    You have managed to create an internal switch, now it's time to create an external one.

    See Part Three: Create a virtual switch in this tutorial Hyper-V virtualization - Setup and Use in Windows 10 - Windows 10 Forums. Notice that as you mentioned you only have WLAN connection on your PC, you need to select the WLAN NIC in Step 3.4 in the tutorial.

    Do not change any default settings in network adapter properties manually! Windows and Hyper-V do all that automatically. In your case as you will create an external switch using a WLAN NIC a so called Bridge will also be created. That, too should be left alone, do not change its properties manually!
    The bridge is required because a Hyper-V vm sees all network connections as wired connections; a host WLAN NIC takes care of all communications, the Bridge presents it as a wired NIC to vm:

    Click image for larger version. 

Name:	image.png 
Views:	1 
Size:	132.1 KB 
ID:	109774

    An important detail to notice is that after you create an external switch to allow network and Internet on your virtual machines, your host PC will also switch to it, starts using it as network adapter. In other words when you will see in host Network and Sharing Centre that host is using the Hyper-V external switch, leave it there, do not try manually to switch back to your WLAN NIC.

    Create an external virtual switch using your WLAN NIC, come back to tell how it went.

    Kari
      My System SpecsSystem Spec


  5. Joined : Nov 2016
    Posts : 3
    windows 10
       3 Weeks Ago #5

    YOU ARE AWESOME BUDDY, ok so first thing I got everything to work. For some weird reason when I tried to create external switch it threw bunch of errors, I just fired up turn on/off features and removed Hyper V, restart, re enable Hyper V and restart and created external Switch according to step 3.4. That alone didn't resolve the issue, Host PC maintained internet but guest OS wouldn't. It was step 5.4_& 5.5 that made everything work flawlessly. What an excellent GUIDE you have created. So easy to follow and works 100% in first attempt. I wish I had ran into this guide first, for whatever reason in my google search it didn't come up on top.
    I just wrote up what made my setup work for other noobs who might run into same issues as me, as I have seen many other forums in which people mentioned same issue but found no resolution.
    Anyways THANK YOU SO MUCH AGAIN. You rock.
      My System SpecsSystem Spec


  6. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,070
    Windows 10 Pro
       3 Weeks Ago #6

    You are welcome
      My System SpecsSystem Spec


 


Similar Threads
Thread Forum
Strange Error mounting an iso on an external drive in Hyper-V
I got this rather odd error message when trying to mount an iso from an external drive using Hyper-V. The external drive is formatted as NTFS, so the second part does not apply. The iso does mount if I copy it to an "internal" drive in...
Virtualization
KVM Host --W10 VM with HYPER -V running another VM (Nesting)
Hi there. It seems some CPU's will handle HYPER-V in a VM running on a Host where a HYPERVISOR (KVM in this case) is already running. One needs to make a few mods otherwise booting up the VM running UNDER the HYPER-V (the 2nd level VM) will...
Virtualization
Configuring sound with Windows 98 and XP on Hyper-V.
I have them both set up, but I don't seem to have any options to enable any sound in the hardware section of Hyper-V. Is it not possible to use these operating systems with sound? I used to use Windows Virtual PC 2007 and sound worked perfectly on...
Virtualization
Hyper-V Hypervisor not running - can't remove Hyper-V feature
I am using Windows 10 Insider Preview 11082 (upgraded from Windows 1151 fully updated. I had installed the Hyper-V feature in the latest Windows 1151 but had not used it before I received and installer the Insider Preview edition. The...
Virtualization
Solved Running Hyper-V and VMware on the same machine?
As the title indicated, anybody tried running both successfully on Win 10? I've seen people doing that on Win 8 forum( Solved Hyper V and VMWare on the same machine - Page 2 ), so I'm wondering if this method would work on Win 10... Any...
Virtualization
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:10.
Find Us
Twitter Facebook Google+



Windows 10 Forums