Clone VM To NSX-T logicalswitch (Opaquenetwork) #vSphereManagementSDK #MIT #clone #Java #clonetoopaquenetwork
CloneVMToOpaquenetwork.java
This sample code shows how to clone a VM (repeatedly, if needed), change some settings on all of the new VM created, and then power up all the new VMs. How To Run In order to run this sample code you must provide 6 arguments: [1] The server name or IP address [2] The user name to log in as [3] The password to use [4] The name of the virtual machine to clone [5] The number of clones to make [6] The base name of each new clone You will need to get the vim25.jar library from the VMware vSphere JDK
Clone-a-VM-update-settings-on-the-new-clones-and-power-them-up-master.zip