VMware Cloud Community
manfriday
Enthusiast
Enthusiast

"Migrate Existing Virtual Adapters" from standard switch to a dVSwitch

Hi!

Is there a way to use PowerCLI to migrate a vmkernel nic from a standard vSwitch to a Distributed vSwitch?

Thanks!

Jason

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

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

ykalchev
VMware Employee
VMware Employee

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

Yasen Kalchev, vSM Dev Team