Quantcast
Viewing all articles
Browse latest Browse all 224018

Re: Issue with Remove-VDSwitchVMHost

Boo! That doesn't work either. The humor of the situation is waning...

 

PowerCLI C:\> Get-VDSwitch -Name $vDSName | Add-VDSwitchVMHost -VMHost $vmhost -confirm:$false

Add-VDSwitchVMHost : 6/13/2013 3:37:02 PM    Add-VDSwitchVMHost        The specified key, name, or identifier already exists.

At line:1 char:31

+ Get-VDSwitch -Name $vDSName | Add-VDSwitchVMHost -VMHost $vmhost -confirm:$false

+                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Add-VDSwitchVMHost], AlreadyExists

    + FullyQualifiedErrorId : Vds_VdsService_AddVdsVMHost_ViError,VMware.VimAutomation.Vds.Commands.Cmdlets.AddVDSwitchVMHost

 

Can't add host because it already exists! Ok... Let's migrate vmk0:

 

PowerCLI C:\> $MigratePortGroup = Get-VDSwitch $vDSName | Get-VDPortgroup $vDSMgtPortGroup

PowerCLI C:\> $VMHostVmk0 = Get-VMHost $vmhost | Get-VMHostNetworkAdapter -name "vmk0"

PowerCLI C:\> Set-VMHostNetworkAdapter -PortGroup $MigratePortGroup -VirtualNic $VMHostVmk0 -confirm:$false

Set-VMHostNetworkAdapter : 6/13/2013 3:36:35 PM    Set-VMHostNetworkAdapter        A general system error occurred: vDS host error: see faultCause

At line:1 char:1

+ Set-VMHostNetworkAdapter -PortGroup $MigratePortGroup -VirtualNic $VMHostVmk0 -c ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Set-VMHostNetworkAdapter], ViError

    + FullyQualifiedErrorId : Client20_VirtualNetworkServiceImpl_AddVMHostNetworkAdapter_VIError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.SetVMHostNetworkAdapter

 

General error. Ok Let's add the spare NIC to the vDS:

 

PowerCLI C:\> $VMHostNetworkAdapter1 = Get-VMHost $vmhost | Get-VMHostNetworkAdapter -Physical -Name $vmnic1

PowerCLI C:\> Get-VDSwitch $vDSName | Add-VDSwitchPhysicalNetworkAdapter -VMHostNetworkAdapter $VMHostNetworkAdapter1 -confirm:$false

Add-VDSwitchPhysicalNetworkAdapter : 6/13/2013 3:37:13 PM    Add-VDSwitchPhysicalNetworkAdapter        The physical network adapter 'vmnic2' can't be added to distributed switch 'dvsQ92', because

the Host the adapter belongs to is not added to this VDSwitch

At line:1 char:25

+ Get-VDSwitch $vDSName | Add-VDSwitchPhysicalNetworkAdapter -VMHostNetworkAdapter ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Add-VDSwitchPhysicalNetworkAdapter], InvalidArgument

    + FullyQualifiedErrorId : VdsImpl_VDSwitchServiceImpl_AddVDSwitchPhysicalNetworkAdapter_AdapterHostNotInVds,VMware.VimAutomation.Vds.Commands.Cmdlets.AddVDSwitchPhysicalNetworkAdapter

 

It says the host is not a member of the vDS! Arggg!


Viewing all articles
Browse latest Browse all 224018

Trending Articles



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