HOWTO: Resize a Virtual Hard Disk (VHD) in Windows 7

I never seem to get the size of my C: drive correct – always just shy of what I really need. After finally getting sick of yet another “your C: drive is almost full” message, I decided to resize my virtual hard drive. The process is reasonably straight-forward in Windows 7 – resize the vhd and expand the drive.


  1. Power down your virtual machine (i.e. shut-down)
  2. Make sure you have enough space to resize your virtual disk. You need to have (current size of VHD + amount to resize by) free on a storage system somewhere. So if you have a 10Gb drive and want to expand to 14Gb, you need 14Gb of free space
  3. Download and install the VHD resizer


  1. Start the VHD Resizer and select your current VHD you want to resize
  2. Select the target location (this needs to be different to your original VHD)
  3. Select the amount you wish to increase the hard disk by
  4. Click “Resize” and wait for the resizing to finish
  5. From your Windows 7 host PC, open up “Computer Management”
  6. In “Storage”, select “Disk Management” – your current drives will be listed on the right
  7. Right-click on “Disk Management” and select “Attach VHD”
  8. Browse to your resized hard drive (not your original) and click “OK”. Make sure “read-only” is not selected. The vhd will appear in your hard-drive list as a hard drive.
  9. Right-click on the vhd drive and select “Expand…”
  10. Click “OK” to expand to the maximum size (which is the amount you added in the VHD Resizer)
  11. Once the drive has expanded, right click on the drive and click “Detach VHD”. Make sure the “delete vhd” check-box is not selected!
  12. Rename your original drive to something else (i.e. CDrive-Old.vhd)
  13. Rename your expanded drive to the original (i.e. CDrive.vhd)
  14. Start your virtual machine.

The new drive should be automatically expanded, and you should now have additional space on your vhd available to the guest virtual machine.


One Response to “HOWTO: Resize a Virtual Hard Disk (VHD) in Windows 7”

  1. shijith Says:

    Excellent! I was looking for the complete steps after vhd resizing in win7. Really helpful.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: