I have a VMware virtual machine that I made quite large. I am not really using most of it, so I would like to reduce it by 50% or so.
Is there a tool to do this?
vmware-vmdk
I have a VMware virtual machine that I made quite large. I am not really using most of it, so I would like to reduce it by 50% or so.
Is there a tool to do this?
Best Answer
Method 1: Using VMWare Converter:
Some say that the expand process is slow and that VMWare Tools might need to be reinstalled.
Method 2: Using the VDiskManager:
vmware-vdiskmanager -x 12GB "My harddisk.vmdk"
Note: Because this only expands the disk and not the partition, you'll need to resize the partition table as well. This can be done by 3rd party tools like 'Partition Magic', but also with 'diskpart.exe', a tool of Windows. In my case, this disk is bootable, meaning that I can't run diskpart on the virtual machine itself. I used another virtual machine, running Windows XP. It also works with the Windows 7 beta 1, but it fails with Windows Server 2003.
Add the increased hard disk to a second virtual machine;
Power on this 2nd virtual machine;
Open a Command Prompt and type:
diskpart
Type:
list volume
Remember the volume number (#) of your volume!Type:
select volume <volume number>
(the number from step 8)Type:
extend
Turn off this 2nd virtual machine and remove the hard disk from the virtual machine configuration. This won't delete the hard disk from disk;
Finished! (Windows automatically recognizes the new and correct disk and volume size)
Thanks for Leon Meijer.