Hyper-V - Unable to Create External Virtual Switch

Page 1 of 2 12 LastLast

  1. Posts : 4
    Windows 10
       #1

    Hyper-V - Unable to Create External Virtual Switch


    I get the error "bind failed: General access denied error" when I try to create an external virtual switch.

    Hyper-V - Unable to Create External Virtual Switch-2016-03-06_0-23-27.png

    I tried running Hyper-V with as admin without success.

    Kevin
      My Computer

  2. Kari's Avatar
    Posts : 17,113
    Windows 10 Pro
       #2

    Please run PowerShell, type Get-VMSwitch and hit Enter. Take a screenshot of results and post here, see below for an example:



    In case you need help with posting screenshots:

      My Computer


  3. Posts : 4
    Windows 10
    Thread Starter
       #3

    Nothing is listed:

    Hyper-V - Unable to Create External Virtual Switch-2016-03-06_3-26-57.png

    Kevin
      My Computer

  4. Kari's Avatar
    Posts : 17,113
    Windows 10 Pro
       #4

    OK.

    Which Windows 10 build you are using? Are you signed in with an admin account? Are you trying to create an external switch using Ethernet adapter or the wireless adapter?
      My Computer


  5. Posts : 4
    Windows 10
    Thread Starter
       #5

    Windows 10 Enterprise, Version 1511, OS Build 10586.122.

    I am signed in as myself, an admin.

    I'm trying to connect to a wireless adapter.

    Kevin
      My Computer

  6. Kari's Avatar
    Posts : 17,113
    Windows 10 Pro
       #6

    Two suggestions. First a safe workaround, then a bit more risky solution which might or might not work.

    A safe workaround:
    1.) Create an Internal virtual switch

    2.) Change your virtual machine Network Adapter to your new Internal switch

    Hyper-V - Unable to Create External Virtual Switch-2016_03_06_11_50_481.png

    3.) Before starting the vm, make sure your host physical wireless adapter is connected, then open its Properties and under the Sharing tab, enable sharing the connection with your new Internal switch:



    That's it. Your vm is now using an Internal switch which then gets a shared connection from the wireless adapter on host.


    A not so safe but more permanent solution:
    1.) Open an elevated admin Command Prompt

    2.) Enter command netcfg -d, hit Enter. All your host network connections will be reset, all possible virtual switches removed, even those "half there" not shown but yet making it impossible to create new switches as in your case

    3.)
    Restart, reconnect the wireless adapter (notice that it's reset, you need to enter the network security key again)

    4.) Create the external switch

    5.)
    If you can now create the external switch, everything is OK. If not, you can still use the above workaround

    warning   Warning
    Please notice: The netcfg -d command when it works can show a few errors, followed by a few "Success" messages. It's totally normal.

    Hyper-V - Unable to Create External Virtual Switch-2016_03_06_12_16_381.png

    The command might crash the PC causing a BSOD, for instance when I tested this just now, the first netcfg -d gave a BSOD, the second one after the restart worked.

    I will take no responsibility, if you decide to test this scenario you do it at your own risk!


    Kari
    Last edited by Kari; 06 Mar 2016 at 06:38. Reason: Typos
      My Computer



  7. Posts : 4
    Windows 10
    Thread Starter
       #7

    Before I try these solutions, what about using RDP? I was reading about that was a good way to get the screen resolution to match my host system. Would that somehow change how the networking works or would I still have the same problem?

    Kevin
      My Computer

  8. Kari's Avatar
    Posts : 17,113
    Windows 10 Pro
       #8

    zorvek said:
    Before I try these solutions, what about using RDP? I was reading about that was a good way to get the screen resolution to match my host system. Would that somehow change how the networking works or would I still have the same problem?
    The vm needs to be connected to the network before you can remotely connect to it. To connect, a vm needs a virtual switch. To use Remote Desktop, you first need to create a working virtual switch and set the vm to use it.
      My Computer


  9. Posts : 45
    Windows 10 Pro / Windows Server 2012 (VM)
       #9

    zorvek said:
    Nothing is listed:

    Hyper-V - Unable to Create External Virtual Switch-2016-03-06_3-26-57.png

    Kevin
    I see Windows PowerShell Listed at top left corner --- It Does Not Say "Administrator" Maybe problem
      My Computer

  10. Kari's Avatar
    Posts : 17,113
    Windows 10 Pro
       #10

    Dadicator said:
    I see Windows PowerShell Listed at top left corner --- It Does Not Say "Administrator" Maybe problem
    No, that's not an issue. Get-VMSwitch does not need elevated PowerShell. See my screenshot in post #2.
      My Computer


 

Related Threads
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 07:37.
Find Us




Windows 10 Forums