hyper-v - error in creating external virtual switch

windstory

Member
Member
Messages
37
hyper-v - error in creating external virtual switch


I got an error in creating external virtual switch at hyper-v on windows 8 pro x64.

I have one xp vm and tried to make an network connection, but I coul not success.

Please let me know how to make creating external virtual switch at hyper-v.

Thanks in advance.
 
Kari/

Event Viewer shows this:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Microsoft-Windows-Hyper-V-VMMS" Guid="{6066F867-7CA1-4418-85FD-36E3F9C0600C}" />

<EventID>26138</EventID>

<Version>0</Version>

<Level>2</Level>

<Task>0</Task>

<Opcode>0</Opcode>

<Keywords>0x2000000000000000</Keywords>

<TimeCreated SystemTime="2013-02-15T11:56:20.315506700Z" />

<EventRecordID>79</EventRecordID>

<Correlation />

<Execution ProcessID="3084" ThreadID="5600" />

<Channel>Microsoft-Windows-Hyper-V-VMMS-Networking</Channel>

<Computer>tester</Computer>

<Security UserID="S-1-5-18" />

</System>


- <UserData>
<VmlEventLog xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://www.microsoft.com/Windows/Virtualization/Events" />

</UserData>


</Event>


 
OK, that error message normally means one of two things:
  • Problems with Microsoft NDIS Packet Capture Filter Driver
    - OR -
  • A switch is already tied to NIC you are using when creating a new switch
Let's try first to create the switch manually:

  1. Run Hyper-V manager, it needs to be running to do the next steps
  2. Run PowerShell as administrator by right clicking the PowerShell shortcut in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools and selecting Run as administrator
  3. First to be sure we use correct NIC name, type Get-NetAdapter in PowerShell and press Enter
  4. Check the correct name and spelling of a NIC which is free (not already tied to a switch). In my example I use the wireless NIC with the name Wi-Fi
  5. Type New-VMSwitch -Name “NewSwitch” -NetAdapterName “Wi-Fi” -AllowManagementOS $True and press Enter:
    .
    2013-02-15_180506.png

  • NewSwitch = name of your switch, whatever you want to
  • Wi-Fi = change here the name of your NIC
  • The parameter -AllowManagementOS should have value $False​ if you want to deny your host using this connection

A new switch will now be created and can be seen in Virtual Switch Manager:
.
2013-02-15_180607.png
.

If you get an error message instead, please copy the full text of that message and post here!

Kari

 
The error message is this:
Code:
PS C:\Users\Administrator> New-VMSwitch -Name “hyperv_vlan” -NetAdapterName “이더넷 3” -AllowManagementOS $True
New-VMSwitch : 가상 이더넷 스위치를 만드는 동안 오류가 발생했습니다.
위치 줄:1 문자:1
+ New-VMSwitch -Name “hyperv_vlan” -NetAdapterName “이더넷 3” -AllowManagementOS $Tru ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [New-VMSwitch], Virtualization
   OperationFailedException
    + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.NewVMSwitchCommand

And photo's here:

20130216__2_hyperv_error.jpg
 
Could you please tell me
- Which switches you already have and to which NIC (if any) they are connected to
- How many NICs you have
- The English names of your NICs as PowerShell Get-NetAdapter tells them

You could also make helping you a bit easier by creating a local account on your Windows 8 Pro, logging in to that new account and changing it to English Display Language. This would make your whole account totally in English and we could really understand your error messages and screenshots.

When we are ready, you can then simply delete the English local user account.

Here's a tutorial to show how to create a user account: http://www.eightforums.com/tutorials/5536-user-account-add-new-user-windows-8-a.html

And here how to change Display Language: http://www.eightforums.com/tutorials/5853-display-language-change-windows-8-a.html

Kari
 
I made an local account, and changed English locale, and open Hyper-V manager as Administrator, then Hyper-V manager shows Korean Mode.

lang.jpg

And the error messages also shows in English.
 
I added local account and changed in English, but I should open Hyper-v Manager as Administrator and hyper-v manager shows in Korean and the error message also. So I chnanged Administrator's account in English mode, and got this message.

PS C:\Users\Administrator> Get-NetAdapter

Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
---- -------------------- ------- ------ ---------- ---------
Bluetooth 네트워크 연결 Bluetooth 장치(개인 영역 네트워크) 660 Disconnected 00-19-86-00-2D-CE 3 Mbps
Ethernet_3 Marvell Yukon 88E8056 PCI-E Gigabit ... 673 Up E0-CB-4E-92-77-21 100 Mbps
VirtualBox Host-Only N... VirtualBox Host-Only Ethernet Adapter 672 Up 08-00-27-00-2C-D2 100 Mbps
Ethernet 2_Disabled Marvell Yukon 88E8056 PCI-E Gigabit ... 668 Not Present E0-CB-4E-92-7D-B1 0 bps


PS C:\Users\Administrator> New-VMSwitch -Name “NewSwitch” -NetAdapterName “Ethernet_3” -AllowManagementOS $True and
press Enter
New-VMSwitch : A positional parameter cannot be found that accepts argument 'and'.
At line:1 char:1
+ New-VMSwitch -Name “NewSwitch” -NetAdapterName “Ethernet_3” -AllowManagementOS $ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-VMSwitch], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.HyperV.PowerShell.Commands.NewVMSwitchCommand


20130216__1_vs1.jpg
 
Back
Top