So I am trying to migrate my management VSS to my management VDS. Below is the code I am using.
Get-VDSwitch -Name "LVA-Management" | Add-VDSwitchVMHost -VMHost $vmh -Confirm:$false
$dvSw = Get-VDSwitch -Name "LVA-Management"
$vmnic0 = Get-VMHost $vmh | Get-VMHostNetworkAdapter -Physical -Name vmnic0
$vmnic7 = Get-VMHost $vmh | Get-VMHostNetworkAdapter -Physical -Name vmnic7
$vSwitch = Get-VMHost $vmh | `
Get-VirtualSwitch | Where-Object {$_.Name -eq "vSwitch0"}
$Nics = $vSwitch.Nic
$ArrayList = New-Object System.Collections.ArrayList
$Nics | ForEach-Object {$ArrayList.Add($_)}
$ArrayList.Remove("vmnic0")
$vSwitch | Set-VirtualSwitch -Nic $ArrayList -Confirm:$false
Get-VDSwitch "LVA-Management" | Add-VDSwitchPhysicalNetworkAdapter -VMHostNetworkAdapter $vmnic0 -Confirm:$false
Remove-VirtualSwitch -VirtualSwitch $vSwitch
Get-VDSwitch "LVA-Management" | Add-VDSwitchPhysicalNetworkAdapter -VMHostNetworkAdapter $vmnic7 -Confirm:$false
The problem I run into is that while vmnic0 is added to the VDS, it isn't added to dvPG which causes vmnic7 piece to fail since it would cause the host to not have a management network. I am running 5.1U2 which has the VDS components as part of the client. Any help on this would be appreciated.