CloneVmInstance

Clones a VM instance to a specified host. For example,
CloneVmInstance vmInstanceUuid=108af59a0f4e4d6cb838a5591db1016a strategy=InstantStart \
names=new-vm1,new-vm2

Parameters

Name Description Optional Valid Value Starting Version
vmInstanceUuid The VM instance UUID. 0.6
full Whether to clone the data volume that is attached to the VM instance. Yes 2.5.0
names The VM instance name list. 0.6
strategy The clone strategy. Yes
  • CreateStopped
  • InstantStart
  • JustCreate
Note: JustCreate creates only a VM record without any initialization, and this VM is not displayed on the UI.
0.6
primaryStorageUuidForRootVolume Yes 4.6.21
primaryStorageUuidForDataVolume Yes 4.6.21
rootVolumeSystemTags Yes 4.6.21
dataVolumeSystemTags Yes 4.6.21
userTags The user tags. For more information, see CreateUserTag. The resource type is VmInstanceVO. Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is VmInstanceVO. Yes 0.6
clusterUuid The cluster UUID. Yes 4.6.21
hostUuid The host UUID. Yes 4.6.21
vmNicParams The VM NIC. Yes 5.1.0
timeout Yes
CLI Command Manual | 5.5.30 | ZStack Cloud · ZCF | ZStack Resource Center