I have a 150GB disk file (.vmdk, non pre-allocated), where my virtual machine is stored.
The file is currently 20GB, but it is growing everyday, even though I'm not storing anything new in the guest file system.
I have been looking for hours for a way to reduce the maximum size of this disk, so that it never gets to 150GB (I'd like to set the limit to 30GB, and see what happens when the VM reaches this size).
What I have tried:
- Converting the disk image with VMWare Converter → this does not work, the tools only allows creating a full copy or a 'linked clone'
- Creating a new blank virtual machine of the desired size in order to copy the 20GB data onto the new .vmdk → I cannot find a way to perform the copy or even connect the new disk to my existing VM (so that I perform the copy using the guest OS)
- Looking in the .vmx file to check if the maximum size was not set in plain text (it's not)
Althouth this task seems technically quite simple (there is not tricky shrinking involved, just a simple change of size limit), I'm really out of ideas here...
Is there a solution at all ?