com.vmware.vim25.mo.samples.vm
Class VMClone
java.lang.Object
com.vmware.vim25.mo.samples.vm.VMClone
public class VMClone
- extends Object
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
- Author:
- sjin
This is a sample converted from VI SDK samples.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VMClone
public VMClone()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2011-2012. All Rights Reserved.