Link to home
Start Free TrialLog in
Avatar of loshdog
loshdog

asked on

Shrink VM in size.

Hello and thank you for your time.

We have a few VM's (Win7 PRO) on ESXi 4.1.
The VM's are 30 gb in size.
The Datastore is getting tight.
Is it possible to shrink a VM in size?
If so, how do we go about doing that? Standard repartitioning tools?

Thank you in advance.

~Milosz,
Avatar of Luciano Patrão
Luciano Patrão
Flag of Portugal image

Hi

You do this by command but this is more difficult.

You can perform this task using VMware vConverter performing a V2V.

With this you can resize the disks in disks options in the vConverter tasks. You need to perform this task on each VM.

Jail
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually, there is a far easier way to save space, but it depends on a few assumptions.

Assuming you are using vCenter Server, you can do a migration and change the disks to thin provisioned at the same time. The caveats to this are that, unless you are licensed with enterprise or higher, you will not be able to do a disk migration while the VM is powered on. Also, if you chose to thin provision disks, make sure you understand what that means with regards to the space it uses. You can overcommit your storage this way, but unless you keep an eye on your VMs, you may find they decide to use all the space you configured for them, leaving you in a little trouble.

I cannot comment on the Converter method as I have not used it, but I would think you would need enough spare space on your datastore to have both the original disk and the smaller new disk. As you do not say just how much space you have left, you may have reached a point whereby that is not feasable.
Avatar of loshdog
loshdog

ASKER

Hello and thank you for this info hanccocka.
I'm saving this as a reference for the future.

Thx again..