Skip to main content

Clone ESXi VMs

[root@esxi1:/opt/scripts] ./clonevm.sh master node3 datastore2
Checking source VM power state...
Creating destination directory: /vmfs/volumes/datastore2/node3
Cloning and converting the virtual disk...
Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/datastore2/master/master.vmdk'...
Clone: 100% done.
Copying and updating the VMX configuration...
Registering the new VM in the ESXi inventory...
🎉 Clone completed! The new VM is registered with ID: 261
Please power on the new VM and select 'I Copied it' if prompted.

Â