I had a VDI image set to 8GB that was nearly full and re-sized it to 16 GB with the following command:
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd "C:\Documents and Settings\Jean-Luc\VirtualBox VMs\Debian 6.0.3\Debian 6.0.3.vdi" --resize 16384
16384 is the new virtual harddisk size in MB (16 GB).
This will increase the size of the Virtual disk. However, it won’t increase the size of the partition in your virtual disk.
You have then 2 solutions:
- Create a new partition with the extra free space
- Use Gparted Live ISO image to increase the size of your current partition.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.