This sample implements the function as the one in VI SDK sample package, including:
- Locates a pre-existing virtual machine on the VirtualCenter server.
- Makes a template from this virtual machine for future use.
- Deploys n instances of this template onto a datacenter.
Parameters:
DatacenterName [required] : DatacenterName
vmPath [required] : A path to the VM inventory
CloneName [required] : Name of the Clone
Command: To clone a virtual machine
run.bat com.vmware.samples.vm.VMClone --url
--username --password --DatacenterName
--vmPath --CloneName
Example:
--url https://10.17.218.228/sdk --username administrator --password mypass --DatacenterName Datacenter
--vmPath Datacenter/vm/W2K3St --CloneName w2k3Std_cloneTest