Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Microsoft Virtual PC hard drive (.vhd format) that's maxed out at 16GB. What would be the best way to increase this disk space?

Booting into the machine (Windows XP Professional) and using the disk management snap in, I can see that the virtual drive has approximately another 40GB unused space. Trying to use diskpart, I find out that Windows XP can't extend the boot partition.

Example disk space:

enter image description here

Note: the virtual hard drive is running on Windows 7 using XP Mode.

share|improve this question
up vote 5 down vote accepted

With the VM turned off, attach the virtual hard disk VHD file by doing:

Right-click "My Computer" > Manage > Storage, right-click "Disk Management" and choose "Attach VHD".

You should now be able to resize the virtual disk as if it was a local disk.


share|improve this answer
Will I be able to extend the partition? right now the partition is sitting at 16 gigs out of an available 60 gigs. From my understanding, extending the partition isn't something that is built into windows. – Chris Mar 8 '10 at 15:00
@Chris: I don't have Win7 to play with, but that's indeed what the MS documentation claims. – harrymc Mar 8 '10 at 16:24
Outstanding. @HarryMC - yeap, this worked just like a partition magic tool would work. Walks you through a three step wizard and allows you to add space either through extending the partition or adding another VHD to the existing one. Learn something new about 7 every day. – Chris Mar 8 '10 at 17:40
To unmount right click on the disk header in Disk Management an choose "Unmount VHD")… – Alan Macdonald Jan 18 at 10:21

If I recall correctly, Virtual PC 2007 comes bundled with an application to resize VHD files. I'm not sure if VPC 2009 does, but if not, you can download v2007 for free from Mcft's website/

share|improve this answer

Shut down the virtual machine and go to its settings/configuration panel. When it's running certain things cannot be configured like hard disk size, RAM allocation, etc.

If it's a limitation of the product enforced on per disk size try added a second virtual disk.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .