Resize VMWare virtual machine under Windows 7
- Turn off the virtual machine;
- Commit/remove all the snapshots or make a Full Clone if you use Link Clones.
- Open a Command Prompt and go to:
C:\Program Files\VMWare\VMWare Server or C:\Program Files\VMware\VMware Workstation
or for 64-bit
C:\Program Files (x86)\VMWare\VMWare Server or C:\Program Files (x86)\VMware\VMware WorkstationRun this command to expand the virtual disk:
vmware-vdiskmanager -x 12GB “My harddisk.vmdk” (in this case, 12 GB will be the new size).
The file name can contain spaces because of the double quotes.
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 with ‘diskpart.exe’, a built-in tool of Windows. VMWare provides a list of tools on their web site: KB1004071
- Power on your virtual machine;
- Open a Command Prompt and type: diskpart
- Type: list volume
Remember the volume number (#) of your volume!
- Type: select volume (the number from step 3)
- Type: extend
Finished, no need for a reboot.
Seen on Leon Meijer’s Weblog