0

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:

enter image description here

After researching the problem, this appears to be related to the 'Hyper-V Virtual Extensible Switch' item not being checked in the ethernet adapters properties.

enter image description here

Trying to enable this in the GUI isn't possible, as after checking the item then clicking on OK the message is "Your current selection will also disable the following features: Hyper-V Extensible Virtual Switch", like here: https://www.tenforums.com/virtualization/31369-cant-enable-hyper-v-extensible-virtual-switch-networking.html

Within powershell when trying to enable this the error is

PS C:\Windows\System32\WindowsPowerShell\v1.0> Set-VMSwitch Internet -NetAdapterName "Ethernet"
Set-VMSwitch : Hyper-V was unable to find a virtual switch with name "Internet". At line:1 char:1

Set-VMSwitch Internet -NetAdapterName "Ethernet" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMSwitch], VirtualizationException + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMSwitch

Using the following command with a microsft uitilty called nvspbind:

nvspbind.exe" /b "Realtek PCIe GbE Family Controller"

the result is:

applying changes... cleaning up...releasing write lock...success finished (0)

But inspection afterwards using the properties GUI, powershell and nsvpbind reveals that the virtual switch is in not binded (all list as not binded).

Any ideas?

Specs: Windows 10 64 bit.

3
  • Tries: (1) Uninstall the Hyper-V feature in Windows, reboot, re-install, reboot, re-create the switch and try again. (2) Disable temporarily the anti-virus. (3) Try all the answers in this post.
    – harrymc
    Commented May 29, 2020 at 19:39
  • Yes I saw that other question too. All tried. Commented May 30, 2020 at 22:34
  • Anyone know why this might have been downvoted? Commented Jun 24, 2020 at 10:23

3 Answers 3

1

If by a small chance you arrive here because you turned off Hyper-V Services on a windows OS for some reason, and then got this error when you tried to turn Hyper-V services back on, then the below should fix it:

Go to the Network Adapters and find the adapter for your physical network card. In properties, unselect the flag 'Hyper-V Extensible Virtual Switch', restart.

1
0

With Get-NetAdapter you can get a list of your physically network adapters.

Here the documentation of Set-VMSwitch.

Call this as admin in a Powershell Window:

Set-VMSwitch -Name "My New vSwitch" -NetAdapterName "Ethernet" -SwitchType "External"

My New vSwitch --> Name of new virtual Switch
Ethernet --> Name of Adapter (LAN, WLAN) from the output of Get-NetAdapter
External --> Switch Type, could be internal, external or private

0

You have tried everything, including re-installing the Hyper-V feature in Windows, but it didn't work out.

The explanation might be some over-active security application or a corruption in Windows.

I suggest the following measures:

1
  • All tried, except repair install. Commented Jun 5, 2020 at 20:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .