VMware

This Question is Answered

2 "helpful" answers available (6 pts)
2 Replies Last post: Nov 6, 2009 6:22 AM by RationalPi42  

How to move a vm from one virtual switch to another from the SDK / command line? posted: Nov 3, 2009 8:12 AM

Click to view RationalPi42's profile Lurker 2 posts since
Nov 2, 2009

How do you move a vm from one virtual switch to another from the SDK / command line?

Joshua Smith

Click to view lamw's profile Champion 2,803 posts since
Nov 27, 2007
Are you referring to changing the virtual machines network portgroup from one to another and in your case potentially from on vSwitch to another? If so, take a look at this script: updateVMPortgroup.pl All you're really doing is making a call to ReconfigVM_Task() and passing in a change spec and updating the network in which you want to change

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

If you find this information useful, please award points for "correct" or "helpful".

Developer Social Media

Communities