Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

cannot set vmnetworkadaptervlan on new extensible switch

$
0
0

I have been following a simple procedure to create 2 Hyper-v hosts with one ManagementOS extensible switch however when I try to add vlans to the vmnetworkadapters on the extensible switch I just continually get an error. See below

PS C:\Windows\system32> Set-VMNetworkAdapterVLAN –ManagementOS –VMNetworkAdapterName “vEthernet (Host-Parent)” -access -vlanid 59 -verbose
Set-VMNetworkAdapterVLAN : The operation is not available.
At line:1 char:1
+ Set-VMNetworkAdapterVLAN –ManagementOS –VMNetworkAdapterName “vEthernet (Host-Pa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VMNetworkAdapterVlan], VirtualizationOperationFailedException
    + FullyQualifiedErrorId : Microsoft.HyperV.PowerShell.Commands.SetVMNetworkAdapterVlanCommand

When I try to verify the switch I get another error

PS C:\Windows\system32> Get-VMNetworkAdapter -ManagementOS -verbose
Get-VMNetworkAdapter : The operation is not available.
At line:1 char:1
+ Get-VMNetworkAdapter -ManagementOS -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-VMNetworkAdapter], VirtualizationOperationFailedException
    + FullyQualifiedErrorId : Microsoft.HyperV.PowerShell.Commands.GetVMNetworkAdapterCommand

I must be doing something simple and it is late here but help please?!

 

Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>