Sunday 9 April 2017

How to increase Virtual Box Hard Disk Size

Here is what I've fixed the issue. 

Initially I created Virtual Box of 15GB of space. 

When I run into out-of-space issue. I did following. 

Two steps involved to resize existing virtual disk space. 

1) Using VBoxManage utility tool provided by Oracle VirtualBox ;  Allocate enough space based on requirement. In my case I've increased from 15GB to 25GB. 

I did this; 

Checked if this present ; 

"C:\Program Files\Oracle\VirtualBox\VBoxManage"

Then Run- CMD , to set environment variable
set PATH=%PATH%;C:\Program Files\Oracle\VirtualBox
Go to path where you have installed VirtualBox. My case
C:\Users\ssankar\VirtualBox VMs\ssankar-ubuntu>VBoxManage modifyhd ssankar-ubuntu.vdi --resize 25000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

C:\Users\ssuriyanarayanan\VirtualBox VMs\ssankar-ubuntu>

Done Now If you open VirtualBox you will able to see "Virtual Box Size: 25GB " . Actual Size "14 GB". 

Step:2: Now create partition from un-allocated space of 10GB. This can be achieved using tool call Gparted

For this step I've followed : http://derekmolloy.ie/resize-a-virtualbox-disk/#prettyPhoto