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.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
If you try to resize a fixed sized disk (instead of a dynamically sized disk) VBoxManage.exe will return the following error:
The solution to this issue is to use CloneVDI GUI Tool (https://forums.virtualbox.org/viewtopic.php?f=6&t=22422) which will convert your disk image to a dynamically sized one and resized it to the desired size.
thanks so much! this worked properly for windows 7..i was having trouble finding this.
i resized the virtual image by:
VBoxManage modifyhd win7.vdi –resize 20000
and virtual box image manger shows 19 GB which is okay, but gparted shows still 10 GB 🙁
also after trying resizing again i got the following error:
0%…
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
I have the same problem ! To small VDI volume created ! But all solution are crap ! I have to create new VDI and do all work again in order to solve the problem and no problems after ! Do not asign to small volume when created, one would have enourmous hedaik ! I know its a lot work involved but vBox misses ubder settings/storage misses to ad a function to resize VDI ! Virtual tech as developed is far from being user friendly as lack of basic funcion and/or basic functions are wery hard to deploy ! Thus so many people are using it !!!
The instruction on this site helped me the gparted issue: http://jonmifsud.com/blog/increase-virtualbox-disk-size/