virtualization:clonevmesxi
Clone VM on ESXi 4.1
- Cloning a Virtual Machine (VM) in ESXi without using VMware vSphere doesn't work because in the vSphere Client, which can be also used to manage the ESXi, you have no possibility to do this.
- Using the free version of VMware-Converter is possible but slow.
- There is a possibility to clone a virtual disk by using the command line of the ESXi.
- You need to have a VM which you could use as template.
- First read completely
- If you hadn't activate SSH then do this as described here.
- Create a new VM with the same configuration as the machine you wish to clone.
- By creating the VM you also created its virtual disk (*.vmdk).
- Delete this disk (we will replace it with the clone) by using the “Datastore Browser” or SSH on ESXi.
- Connect to your ESXi by using SSH.
- type the following command (here “ubu-10.04-server” is the template).
vmkfstools -i /vmfs/volumes/datastore1/ubu-10.04-server/ubu-10.04-server.vmdk /vmfs/volumes/datastore1/newmachine/newmachine.vmdk Destination disk format: VMFS zeroedthick Cloning disk '/vmfs/volumes/datastore1/ubu-10.04-server/ubu-10.04-server.vmdk'... Clone: 100% done.
- boot your new machine and configure it.
virtualization/clonevmesxi.txt · Last modified: 20.05.2013 10:11 by eanderalx