Resize a VirtualBox Guest Image to Increase Harddrive Space

I use VirtualBox to run Windows XP in a virtual machine for the purpose of testing websites in Internet Explorer. My virtual harddisk recently ran out of space and I needed to increase the disk size. Following are the steps I took to do that.

Note that my virtual disk was a vmdk disk and not a vdi, so I first had to convert it to the proper format.

cd my_virtual_disk_directory
VBoxManage clonehd WinXP.vmdk WinXP2.vdi --format vdi

Once I had my disk cloned I then ran the following.

VBoxManage modifyhd WinXP2.vdi --resize 20000

This resized my virtual disk to 20Gigs.

Once that was done, I edited the VirtualBox settings for my Windows XP and changed the disk associated to it to the new, bigger one.

Now when you boot up Windows, you'll see the new unallocated disk space. I installed Paragon's Partition Manager and merged these two into one.

Done.

Contact Me

Feel free to contact me.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.