I wrote earlier about expanding a VHD file. My virtual machine application preference is VMWare Workstation. As more “stuff” was added to my virtual machine in the last year, I found myself running out of space. In the past when this happened, there were two options:
- Use VMWare Converter
- Use vdiskmanager
About a year ago, I ran into issues when attempting to use vdiskmanager. You cannot extend a HDD without a 3rd party application (:) see below). Another option is to use diskpart but who can’t run diskpart on a drive which is bootable (which in my case). In any event, I ended up expanding the VMDK file using VMWare Converter 3.0.
Yesterday, when noticing I was dangerously close to running out of disk space, I decided it was time to expand again. I saw there was a new version of VMWare Converter (4.0) so I downloaded that. This morning I installed VMWare Converter and went through the steps to convert an existing VM to a new one. Everything worked fine; however, I could not find the setting to define the new disk size. I am sure I missed it but didn’t have time to search; so frustrated, I decided to use vdiskmanager. I figured I would just go ahead and purchase a 3rd party application (i.e. Partion Magic) to extend the partition.
Below are the steps I followed:
- Turned off virtual machine.
- Commit and remove all snapshots. I don’t use snapshots but I remember reading this is required previously.
- Back up all files.
- Open a command prompt and navigate to the VMWare folder (i.e. C:\Program Files\VMware\VMware Workstation).
- Type in the following command: vmware-vdiskmanager -x 40GB “MOSS.vmdk”
- The command will run. It took about 60 seconds for the command to run.
- Open the virtual machine. My host is Windows Server 2008. Not sure about the other operating systems but Win2k8 allows you to extend a disk volume. No need to purchase a 3rd part application.
- Open Control Panel and select System and Maintenance then Create and format hard disk partitions.
- Right-click on the disk and select “Extend Volume”. Run through the wizard.
- It will take approximately 60 seconds to extend the disk.
- Voila, new disk size.
Image may be NSFW.
Clik here to view.

Clik here to view.
