VMware Cloud Community
zinto44
Contributor
Contributor

How do I clone a VM on ESX4i?

Howdy

I want to make a clone of a windows 2008 R2 VM on one of my ESX4i boxes.

How do I make a complete copy ( clone ) of the VM and save it somewhere on another server as a failsafe backup in case a production change goes wrong and I need to roll back?

I thought about snapshots, but my limited understanding of snapshots is that once youtake a snapshot its there forever unless you delete it and it will grow larger and larger as its a delta ( difference ) file and can slow performance down by just being there. presumably once the change to the production system has the OK, you delete the snapshot. However, later if I wanted to make another backup of the system, I'd need to take another clone and stroe it somewhere.

Also, is it possible to store a clone as an ISO or similar? When I was running VMServer ( whihc was installed on a windows PC ) cloning Vms was easy as all you did was shutdown the VM, copy all the VM files ( vmdks etc ) and store somewhere on a windows lan. With ESXi its more complicated from what I can see.

Any thoughts appreciated.

Cheers

Z.

Reply
0 Kudos
3 Replies
HannaL
Enthusiast
Enthusiast

Assuming you don't have vcenter you could use the eval version of vcenter to at least make a clone of the VM and keep it powered off for emergencies.

hope that helps

Hanna

Hope that helps, Hanna --- BSCS, VCP2, VCP VI3, VCP vSphere, VCP 5 https://www.ibm.com/developerworks/mydeveloperworks/blogs/vmware-support-ibm
Reply
0 Kudos
mgaccess
Contributor
Contributor

For Linux VM's, as long as you have two datastores attached you can "copy" the vmdk from one datastore to the other.

  1. Create a new VM without any vmdk's on the datastore opposite the one that contains the source VM

  2. Browse your datastore

  3. Right click the folder that contains the VMDK you want to copy (with it powered off of course)

  4. Select the folder you just created on your 2nd datastore as the destination

  5. After copying, attach vmdk to new VM,

  6. Power up,change IP, etc.

  7. You could also just copy the entire source VM folder, then re-register the vmx (I think that will work)

If you need to clone a Windows VM, I just use the P2V utility and sysprep.

Reply
0 Kudos
AntonVZhbankov
Immortal
Immortal

The same applies to Windows - copy files. Just one more step in 6 - run sysprep.


---

MCSA, MCTS, VCP, VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
Reply
0 Kudos