VMware Cloud Community
MariusRoma
Expert
Expert

Cloning a VM to reclaim disk space

I noticed that if I clone a Windows VM usually I have to re-activate it.

I noticed as well that cloning a VM is a nice way to reclaim disk space by shrinking thin disks.

Is there any way to clone a VM making it as identical as possible to the original VM, so that reactivating Windows is not required?

Obviously, as cloning is performed only to reclain disk space, after creating the clone the original VM is deleted.

Regards

marius


0 Kudos
6 Replies
JCMorrissey
Expert
Expert

Hi Marius,

Take a look at the suggestion in the thread below to see if that helps

http://communities.vmware.com/thread/306126?start=0&tstart=0

Many tx

Please consider marking as "helpful", if you find this post useful. Thanks!... http://johncmorrissey.wordpress.com/
MariusRoma
Expert
Expert

Thank you for the pointer.

My problem is slightly different: reactivating Windows is not a problem, rather than ensuring that the clone is as similar as possible to the original VM and that installed applications are not affected.

Given I clone the VM only to reclain space, I need to be sure that nothing changes...

Regards

marius


0 Kudos
weinstein5
Immortal
Immortal

Cold migrating the VM to another datastore should also reclaim the space -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
rurffy
Enthusiast
Enthusiast

Easiest way to do this is to browse to your Datastore, create a new folder - call it anything you like . Now go into your vm you want to clone. copy all the files in that vm folder to the new folder you created. Now you can add the vmx file to inventory and viola!!!! You wll have exactly same thing. You must power of the original vm afterwards or delete it. 

0 Kudos
taylorb
Hot Shot
Hot Shot

weinstein5 wrote:

Cold migrating the VM to another datastore should also reclaim the space -

It doesn't have to be a cold migration, storage vmotion would let you do it without any downtime, presuming the host running the VM has access to both datastores.

0 Kudos
rhaslund
Enthusiast
Enthusiast

You could use a combination of the free Microsoft utility called sdelete and as previously suggested either Storage vMotion or Enhanced vMotion.

Download: SDelete

0 Kudos