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


  1. Posts : 3
    windows 10
       #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.
    No internet when Hyper-V running, need help configuring external switc-networks.jpgNo internet when Hyper-V running, need help configuring external switc-vethernet-properties-1.jpgNo internet when Hyper-V running, need help configuring external switc-vethernet-properties-2.jpgNo internet when Hyper-V running, need help configuring external switc-wifi-properties-1.jpgNo internet when Hyper-V running, need help configuring external switc-wifi-properties-2.jpgNo internet when Hyper-V running, need help configuring external switc-vethernet-properties-3.jpgNo internet when Hyper-V running, need help configuring external switc-wifi-properties-3.jpg
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #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:

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

    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:

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

    Kari
      My Computer


  3. Posts : 3
    windows 10
    Thread Starter
       #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.
    No internet when Hyper-V running, need help configuring external switc-get-vmswitch.jpgNo internet when Hyper-V running, need help configuring external switc-switchname.jpgNo internet when Hyper-V running, need help configuring external switc-device-manager.jpgNo internet when Hyper-V running, need help configuring external switc-networks.jpg
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
       #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:

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

    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 Computer


  5. Posts : 3
    windows 10
    Thread Starter
       #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 Computer


  6. Posts : 17,661
    Windows 10 Pro
       #6

    You are welcome :)
      My Computer


 

  Related Discussions
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 06:13.
Find Us




Windows 10 Forums