PowerEdge: Windows Server 2022 Cannot create a Virtual switch with LBFO or Set team

Summary: Windows 2022 has not removed any features from Hyper-V or networking. However, they have forced LBFO Virtual switches to the Command line for creation. While nothing has changed, the Vmswitch fails to create, as normal. The Error is Failed while adding Virtual Ethernet Switch Connections. Attaching a virtual switch to an LBFO team is Deprecated. The only way around this error is to add "-AllowNetLbfoTeams $true" this will require PowerShell and may be a call generator. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Windows 2022 has not removedThis hyperlink is taking you to a website outside of Dell Technologies. any features from Hyper-V or networking. However, they have forced LBFO Virtual switches to the Command line for creation.
 
While nothing has changed, the Vmswitch fails to create, as normal. The Error is Failed while adding Virtual Ethernet Switch Connections. Attaching a virtual switch to an LBFO team is Deprecated.
 
The only way around this error is to add "-AllowNetLbfoTeams $true"  
 This requires PowerShell and may be a call generator.

virtual switch error 

  If you want to use the Hyper-V Multiplexor VswitchsThis hyperlink is taking you to a website outside of Dell Technologies., you now have to use PowerShell. The steps are now as follows:
 
 Create LBFO Virtual Switch. 
 

  1. Advise the customer to reconsider using a Set Team instead. Those steps at the end of the article
    1. Generally with a (set switch) new-vmswitch command, you can go into Hyper-v and the Virtual Switch will be there.
    2. Which Is to say, you do not create a team when you create a set switch. 
    3. With an LBFO Vmswitch, you must create a team with Server manager and then Create VMSwitch command.
    4. The set is simpler and more flexible.

 
If the customer still wants to create the LBFO VM Switch:
 

  1. You can use Windows Server managerThis hyperlink is taking you to a website outside of Dell Technologies. to create an LBFO team as normal.
  2. Once Created, You cannot create a VMSwitch with Hyper-v. You must use the command line
    Get-Netadapter
    Verify the creation of Teams
    $Team1 = Get-NetAdapter -Name Team1
    $Team2= Get-NetAdapter -Name Team2
    New-VmSwitch -Name External1 -NetAdapterName $Team1.Name -AllowManagementOS $true -Notes 'External Network 1' -AllowNetLbfoTeams $true
    New-VmSwitch -Name External2 -NetAdapterName $Team2.Name -AllowManagementOS $true -Notes 'External Network 2' -AllowNetLbfoTeams $true


     
     
     
    To create a Set Team Instead:

    Server 2022 Has Deprecated the Get-Netadapter Command. This means the commands below will work for earlier versions, but may or may not work, depending on the OS and Patch Version. 



    Primary Set Team Example on 22H2 Server 2022 and new OS versions. 


    Simple

    New-VMSwitch -Name "SETswitch" -NetAdapterName "Ethernet 1", "Ethernet 2" -EnableEmbeddedTeaming $true
    
    New-VMSwitch -Name "SetSwitch" -NetAdapterName "Ethernet1", "Ethernet2" -EnableEmbeddedTeaming:$True -AllowManagementOS:$True -MinimumBandwidthMode "Weight"




     
    It is presumed you could add the word "name" to Get-NetAdapter to form Get-NetAdapterName in the commands below, but you may test in lab, or check ChatGPt for confirmation. 

    More complex

     $S2DSwitchName = "Mgmt_Vswitch"
    New-VMSwitch -Name $S2DSwitchName -AllowManagementOS 0 -NetAdapterName $S2DpNIC1, $S2DpNIC2 -MinimumBandwidthMode Weight -Verbose
     
    Add-VMNetworkAdapter -ManagementOS -Name $ManagementvNICName -SwitchName $S2DSwitchName -Passthru | Set-VMNetworkAdapterVlan -Access -VlanId $ManagementvNICVLAN –Verbose
     
    Add-VMNetworkAdapter -ManagementOS -Name $S2DvNIC1Name -SwitchName $S2DSwitchName -Passthru | SetVMNetworkAdapterVlan -Access -VlanId $S2DvNIC1VLAN -Verbose
    Add-VMNetworkAdapter -ManagementOS -Name $S2DvNIC2Name -SwitchName $S2DSwitchName -Passthru | SetVMNetworkAdapterVlan -Access -VlanId $S2DvNIC2VLAN –Verbose 


    Other Examples
     

    New-VMSwitch -Name SETswitch -NetAdapterName "SLOT 2","SLOT 3" -EnableEmbeddedTeaming $true 
    # 
    # Add host vNICs and make them RDMA capable 
    # 
    Add-VMNetworkAdapter -SwitchName SETswitch -Name SMB_1 -managementOS 
    Add-VMNetworkAdapter -SwitchName SETswitch -Name SMB_2 -managementOS 
    Enable-NetAdapterRDMA "vEthernet (SMB_1)","vEthernet (SMB_2)" 

     
     
    I hope this helps if anyone gets a Call. 

    Affected Products

    Microsoft Windows Server 2022, PowerEdge FC640, PowerEdge M640, PowerEdge M640 (for PE VRTX), PowerEdge M7701, PowerEdge M7725, PowerEdge MX5016s, PowerEdge MX740C, PowerEdge MX840C, PowerEdge R450, PowerEdge R470, PowerEdge R540, PowerEdge R550 , PowerEdge R570, PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R670, PowerEdge R6715, PowerEdge R6725, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R770, PowerEdge R7715, PowerEdge R7725, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge T340, PowerEdge T350, PowerEdge T360, PowerEdge T440, PowerEdge T550, PowerEdge T560, PowerEdge T640 ...
    Article Properties
    Article Number: 000193974
    Article Type: How To
    Last Modified: 26 May 2025
    Version:  5
    Find answers to your questions from other Dell users
    Support Services
    Check if your device is covered by Support Services.