How To : Resize Virtual Machine Hard Disk Using VDiskManager

When enough is not always enough – That is Virtual Hard Disk Space…

This is a follow up to a previous article that discusses one possible method of resizing your Virtual Machines Virtual Hard Disk

Method 2: How to Use VDiskManager to Resize a Virtual Hard Disk:

  1. Turn off the virtual machine;
  2. Commit/remove all the snapshots first!
  3. Open a Command Prompt and go to:
    C:Program FilesVMWareVMWare Server or C:Program FilesVMwareVMware Workstation
  4. Run this command to expand the virtual disk:
    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.
  5. Add the increased hard disk to a second virtual machine;
  6. Power on this 2nd virtual machine;
  7. Open a Command Prompt and type:
    diskpart
  8. Then type:
    list volume (Remember the Volume Number #)
  9. Then type:
    select volume (the number from step 8)
  10. The type:
    Extend
  11. 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;
  12. Finished! (Windows automatically recognizes the new and correct disk and volume size)

If you found this information usefull, then please use the social bookmarking tools to bookmark this post in hopes of helping other that are looking for similar help and support. As always we welcome comments form all our readers.