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

Petr Wight 0 Reputation points
2023-03-06T07:31:11.3266667+00:00

Hello.

I have error to set properties of VMnetwork adapter.

Situation:

Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription


vSwichTEAM - LAN External Teamed-Interface

vSwichTEAM - HB External Teamed-Interface

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.

At line:1 char:1

  • Set-VMNetworkAdapter -ManagementOS -Name Management -MinimumBandwidth ...

CategoryInfo : NotSpecified: (:) [Set-VMNetworkAdapter], VirtualizationException

FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.SetVMNetworkAdapter

Any ideas whats wrong?

Thanks.

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,560 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
657 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.
962 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,966 Reputation points
    2023-03-07T08:19:49.7533333+00:00

    Hello there,

    You can try to Reset the Network Connection and see if that helps.

    The command will remove all your existing connections, so we recommend you create a system restore point before executing this command.

    -Open PowerShell in admin mode.

    -In the PowerShell console, type in the command below and hit Enter to restart all network adapters and remove MUX objects.

    netcfg -d

    -Exit PowerShell when the command executes.

    -Now, open Virtual Switch Manager in Hyper-V Manager and try to create an external switch and see if the error reoccurs

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments