Well, I ran out of disk space today on my VPC image that I do a lot of my software development on specifically for SiteOrganic. A quick Google search lead me to vmtoolkit.com. After running the VHD Resizer and following the steps in this post everything is hunky dory. My host OS is Vista Ultimate and my Virtual OS is Windows 2003 Server
Here were the steps I used:
- Ran VHD Resizer to go from a 10 GB volume to a 20 GB volume
- In the VPC settings, set the new vhd file as a secondary drive
- Boot using the ORIGINAL Virtual image
- open a command prompt
- type c:\diskpart
- type list volume
- determine which volume is the should be the new one. In my case it was volume 0 (Drive E)
- type select volume 0 (your # might be different)
- type extend
- Shut down VPC
- In the VPC settings, remove the second drive, select the NEW vhd as your hard drive 1
- Start the instance
You should now be running under the new vhd with the extended drive space.
As always, your millage may vary so make a backup of your vhd before you loose anything.