Unable to bind hyper-v virtual switch to ethernet adapter

Welcome Forums General PowerShell Q&A Unable to bind hyper-v virtual switch to ethernet adapter

Viewing 0 reply threads
  • Author
    Posts
    • #231316
      Participant
      Topics: 1
      Replies: 0
      Points: 14
      Rank: Member

      I’m having trouble creating a virtual switch for a virtual machine I have in hyper-v. I had a virtual ethernet switch set up and connected to the machine before, after deleting this at some point, I now cannot create one again.

      Within hyper-v the error is:

      Error applying Virtual Switch Properties changes Failed while creating virtual Ethernet switch. Switch create failed, name = 19706944-1 E6A—4E05—8758—88881 B92D71 C‘, friendly name = ‘Internet’: Not found (0x80041002).

       

      Within powershell when using get-netadapter and trying to create the switch with this command:

      PS C:\Windows\System32\WindowsPowerShell\v1.0> Set-VMSwitch -Name “Internet” -NetAdapterName “Ethernet” -SwitchType “External”

      …the error is:

      Set-VMSwitch : Parameter set cannot be resolved using the specified named parameters.
      At line:1 char:1
      + Set-VMSwitch -Name “Internet” -NetAdapterName “Ethernet” -SwitchType …
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Set-VMSwitch], ParameterBindingException
      + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.HyperV.PowerShell.Commands.SetVMSwitch

      Also tried without the ‘Switchtype’ switch:

      Set-VMSwitch -Name “My New vSwitch” -NetAdapterName “Ethernet”

      …which leads to:

      Set-VMSwitch : Hyper-V was unable to find a virtual switch with name “My New vSwitch”.
      At line:1 char:1
      + Set-VMSwitch -Name “My New vSwitch” -NetAdapterName “Ethernet”
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : ObjectNotFound: (:) [Set-VMSwitch], VirtualizationException
      + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMSwitch

      After researching the problem, this appears to possibly be related to the ‘Hyper-V Virtual Extensible Switch’ protocol not being binded to the adapter.  However, trying to bind using powershell isn’t working.  The Enable-NetAdapterBinding command executes without any error returned, but the binding remains false:

      PS C:\Windows\System32\WindowsPowerShell\v1.0> Enable-NetAdapterBinding -Name “Ethernet” -DisplayName “Hyper-V Extensible Virtual Switch”
      PS C:\Windows\System32\WindowsPowerShell\v1.0> get-netadapterbinding

      Name DisplayName ComponentID Enabled
      —- ———– ———– ——-
      Bluetooth Network Connection Internet Protocol Version 4 (TCP/IPv4) ms_tcpip True
      Bluetooth Network Connection Link-Layer Topology Discovery Responder ms_rspndr True
      Bluetooth Network Connection Microsoft Network Adapter Multiplexor Protocol ms_implat False
      Bluetooth Network Connection Microsoft LLDP Protocol Driver ms_lldp True
      Bluetooth Network Connection Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
      Bluetooth Network Connection Hyper-V Extensible Virtual Switch vms_pp False
      Bluetooth Network Connection Link-Layer Topology Discovery Mapper I/O Driver ms_lltdio True
      Bluetooth Network Connection File and Printer Sharing for Microsoft Networks ms_server True
      Bluetooth Network Connection Client for Microsoft Networks ms_msclient True
      Bluetooth Network Connection COMODO Internet Security Firewall Driver inspect True
      Ethernet Microsoft LLDP Protocol Driver ms_lldp True
      Ethernet QoS Packet Scheduler ms_pacer True
      Ethernet Internet Protocol Version 4 (TCP/IPv4) ms_tcpip True
      Ethernet Microsoft Network Adapter Multiplexor Protocol ms_implat False
      Ethernet File and Printer Sharing for Microsoft Networks ms_server True
      Ethernet Client for Microsoft Networks ms_msclient True
      Ethernet Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
      Ethernet Link-Layer Topology Discovery Responder ms_rspndr True
      Ethernet Hyper-V Extensible Virtual Switch vms_pp False
      Ethernet Link-Layer Topology Discovery Mapper I/O Driver ms_lltdio True
      Ethernet COMODO Internet Security Firewall Driver inspect True
      Ethernet Bridge Driver ms_l2bridge True
      Wi-Fi File and Printer Sharing for Microsoft Networks ms_server True
      Wi-Fi Client for Microsoft Networks ms_msclient True
      Wi-Fi Microsoft LLDP Protocol Driver ms_lldp True
      Wi-Fi Microsoft Network Adapter Multiplexor Protocol ms_implat False
      Wi-Fi Internet Protocol Version 4 (TCP/IPv4) ms_tcpip True
      Wi-Fi Hyper-V Extensible Virtual Switch vms_pp False
      Wi-Fi Link-Layer Topology Discovery Mapper I/O Driver ms_lltdio True
      Wi-Fi Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
      Wi-Fi Link-Layer Topology Discovery Responder ms_rspndr True
      Wi-Fi Bridge Driver ms_l2bridge True
      Wi-Fi COMODO Internet Security Firewall Driver inspect True
      Wi-Fi QoS Packet Scheduler ms_pacer True

      PS C:\Windows\System32\WindowsPowerShell\v1.0>

       

       

      • This topic was modified 1 month, 2 weeks ago by Califauna96.
      • This topic was modified 1 month, 2 weeks ago by Califauna96.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.