Resizing VirtualBox vdi image not working

Aug. 12, 2019    Tags: virtualbox  virtualization  admin

Some days ago I wanted to increase a vdi disk image like written in a previous article. But it was not working. I got something like `... not implemented yet!`

I tried to increase the disk image to 40GB like

VBoxManage modifyhd VIRTUALHOST.vdi --resize 40000 

And I got the following error message:

Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize medium operation for this format is not implemented yet!


The reason for that error is: I have created a new virtual host with a static disk. Image resizing is only supported for dynamic images.



1) create a clone of the image which creates a "dynamic image" clone

VBoxManage clonehd VIRTUALHOST.vdi VIRTUALHOST-clone.vdi

2) resize the clone image

VBoxManage modifyhd VIRTUALHOST-clone.vdi --resize 40000 

3) change boot disk in VirtualBox settings view.

4) Do the image adaption in the started virtual host itself (windows, linux or whatever).