Resize a VirtualBox VDI Image in Windows XP/7

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.
Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
5 Comments
oldest
newest
Jessica
Jessica
12 years ago

thanks so much! this worked properly for windows 7..i was having trouble finding this.

nfo
nfo
12 years ago

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!

steve
steve
11 years ago

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… Read more »

Paul
Paul
10 years ago

The instruction on this site helped me the gparted issue: http://jonmifsud.com/blog/increase-virtualbox-disk-size/

Boardcon Rockchip and Allwinner SoM and SBC products