What's the best way to make a copy of a VM and then rename it to save into your inventory from vSphere client?
I am assuming you are using the free hypervisor from VMware.
Cloning of a VM or creating an identical copy the VM is a feature of vCenter server. Out of the box the free hypervisor version does not support cloning. If you need that feature I would suggest you buy the vCenter server license.
That said, the closest and easiest you can get with the free VMware hypervisor is as already mentioned by you:
- Export the VM as an OVF and re-import it with a changed name.
The other option is not so straight forward:
Create a new VM of with same virtual hardware, virtual disk size and any other configurations that you may have.
Enable the Technical Support Mode, Read this KB article for more details: http://kb.vmware.com/kb/1017910
SSH to the ESXi server & browse to the datastore where the new VM is stored.
Delete the VMDK file using the rm command
Use vmksfstools to create a clone of the original VM's virtual disk. Read this KB article for more details: http://kb.vmware.com/kb/1028042
- Go back to the inventory in vSphere client and power on the new VM.
- Logon to the new VM and manually perform any guest customization (change hostname, SID etc.) if required.
Related videos on Youtube
O_O
Updated on September 18, 2022Comments
-
O_O over 1 year
I've had trouble exporting VMs, renaming them and importing them back into my inventory. What is the best way to do this inside vSphere Client? I am using vSphere Hypervisor version 4.1. Thanks.
-
O_O about 13 yearsYes, I am using ESXi as seen in my tags.