Friday, July 13, 2007

How to Succesfully Expand a vhd

At the time I was deploying a complex MOSS testing environment which consisted of the following:

...when I ran out of disc space on the member servers. I had used the default 16GB disc space when creating the virtual harddiscs (vhd's).

It took me a bit of searching, but I was able to increase the discs from 16 to 40GB. I used the following procedure:

  1. Download and use at (great tool guys!) to increase the size from the *.vhd file.
  2. And now for the tricky part. Use a bootdisc to boot your Virtual Machine. Do not boot from your current OS, because you will not be able to expand the boot partition to use the new disc size. I used a CD built with BartPE's excellent Boot disc (
    The bootdisc needs to have access to the NTFS File System situated on your *.vhd and it has to contain diskpart.exe ( This is the tool we will be using to extend the partition.
  3. After booting, use diskpart.exe to select the volume and finish by extending it. For the syntax, see
  4. Now boot into your default OS.

That's it!

Labels: ,

Comments: Post a Comment

Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]