Is there an easy way to increase virtual hard disk space on VirtualBox?

link|improve this question

feedback

2 Answers

up vote 18 down vote accepted

There is not an easy way to do this.

There is a complicated one, though:

http://www.my-guides.net/en/content/view/122/26/

Has a good screenshot-by-screenshot guide. Essentially you're copying your install onto a new virtual-disk file.

Update: As of VirtualBox 4 they added support for expansion.

VBoxManage modifyhd filename.vdi --resize 46080

That will resize a virtual disk image to 45GB.

link|improve this answer
2  
Regarding the VirtualBox 4 version: after resizing the disk, you have to resize the partition as well which cannot be done when booted from so one has to boot into some sort of gparted livecd as well. – fikovnik Mar 14 '11 at 2:14
@fikovnik- Yes, the partition needs to be resized too. However, on Windows it can be done on the booted disk itself using the diskpart utility tool via the command-line or via the Disk Management GUI without booting from a separate disk. – Ray Vega Jun 8 '11 at 19:35
feedback

The Trivial Proof blog has a nice tutorial of the process for VirtualBox versions before and after 4.0. It includes the steps for adjusting the partition on the expanded disk.

link|improve this answer
That blog site no longer exists. – Barry Brown Aug 15 '11 at 17:52
The link was just broken, @Barry. Fixed now. – Don Kirkby Aug 17 '11 at 3:31
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.