3
I have a giant VM (Ubuntu 14, ext4) which takes about 150GB. I've did some cleaning up and I'd like to shrink this VM to take about 60GB.
I've used gparted live CD to redistribute the partitions, and now there's 90GB of unallocated space in the drive, and 60GB of actual partitions.
The VM is hosted on VMWare workstation 12 on Windows 10. There used to be a "Shrink" button somewhere in the VMWare Workstation interface, but there isn't now.
I've tried compacting the HD using vmware tools, but that only freed like 10GB.
I've searched everywhere but all I can find is compacting the unused space. I don't want the VM to think it has 150GB. I'd like to make the virtual disks smaller.
How do I resize the virtual hard disks size?
If I understood correctly,
-k <diskname>
doesn't resize the HD, but only shrinks it to it's minimum size. Not really changing the actual maximum size of the HD, like the 'compact` option. I'm running it now anyway, I'll let you know how it went. – Nitay – 2016-05-24T08:07:15.877The shrink was completed but I'm sorry to say that it didn't change the VM disk size... – Nitay – 2016-05-24T09:30:31.513