Hi!
Is there a way to use PowerCLI to migrate a vmkernel nic from a standard vSwitch to a Distributed vSwitch?
Thanks!
Jason
Have a look at my dvSwitch scripting – Part 8 – Get and Set network adapters post.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You also can check the PowerCLI 4.1 distributed switches support in this blog post
If the host is already member of the the distributed switch you can use Set-NetworkAdater to move the nic:
Set-NetworkAdapter -NetworkAdapter $vmkernelNic -NetworkName "vdPortGroup"
Regards,
Yasen Kalchev
PowerCLI Dev Team
Actually the example is for VM virtual nics. You can create new VMHost VMKernel network adapter attached to the distributed switch using New-VMHostNetworkAdapter -PortGroup dvportgroup but you can't move the VMkernel to vDS using Set-VMHostNetworkAdapter
Message was edited by: ykalchev