Set-VMNetworkAdapter issue

Petr Wight 0 Reputation points
2023-03-03T07:58:57.9833333+00:00

Hello.

I have following error:

Set-VMNetworkAdapter -ManagementOS -Name Management -MinimumBandwidthWeight 10

Set-VMNetworkAdapter : Failed while modifying virtual Ethernet switch connection settings.
At line:1 char:1
+ Set-VMNetworkAdapter -ManagementOS -Name Management -MinimumBandwidth ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VMNetworkAdapter], VirtualizationException
    + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.SetVMNetworkAdapter

Before that I use this commads to create network:

New-VMSwitch -Name "vSwichTEAM - LAN" -NetAdapterName "NET - EMBED - Port 1","NET - SLOT 2 - Port 3","NET - SLOT 2 - Port 4","NET - SLOT 2 - Port 2"  -EnableEmbeddedTeaming $true

Add-VMNetworkAdapter -ManagementOS -Name "Management" -SwitchName "vSwichTEAM - LAN"

PS C:\Users\Administrator> Get-VMNetworkAdapter -All

Name IsManagementOs VMName SwitchName MacAddress Status IPAddresses


Management True vSwichTEAM - LAN 00155D428504 {Ok}

Cluster True vSwichTEAM - HB 00155D428507 {Ok}

vSwichTEAM - LAN True vSwichTEAM - LAN B8CB29FB1FC7 {Ok}

vSwichTEAM - HB True vSwichTEAM - HB 00620B00BB70 {Ok}

Live_Migration True vSwichTEAM - HB 00155D428506 {Ok}

HeartBeat True vSwichTEAM - HB 00155D428505 {Ok}

THEN

Set-VMNetworkAdapter -ManagementOS -Name Management -MinimumBandwidthWeight 10

Set-VMNetworkAdapter : Failed while modifying virtual Ethernet switch connection settings.

Thanks, if someone has idea where is error......

Petr

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,575 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
963 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,001 Reputation points
    2023-03-03T16:33:08.5033333+00:00

    Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.

    This issue happened maybe becuase of your Ethernet settings. I highly suggest you to disconnect and reconnect your virtual Ethernet switch. I also suggest you to run again the Set-VMNetworkAdapter command and -Force parameter since it will update the settings.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

  2. Petr Wight 0 Reputation points
    2023-03-06T07:44:54.08+00:00

    Hello.

    command -force does not exist :)

    Enable end disable , no effect.

    Regards, Petr

    0 comments No comments

  3. Petr Wight 0 Reputation points
    2023-03-06T08:05:13.2066667+00:00

    Hello.

    And one notice. This is adapter created on the new switch embedded teaming ( option  -EnableEmbeddedTeaming ). Maybe, there is error because this is relatively new feature...

    New-VMSwitch -Name "vSwichTEAM - LAN" -NetAdapterName "NET - EMBED - Port 1","NET - SLOT 2 - Port 3","NET - SLOT 2 - Port 4","NET - SLOT 2 - Port 2"  -EnableEmbeddedTeaming $true

    Regards, Petr