VirtualBox resize hard disk error: VBOX_E_NOT_SUPPORTED

There is a error when I tried to resize the VirtualBox hard disk, or vdi file.

Progress state: VBOX_E_NOT_SUPPORTED

VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!

 

The command I used to resize vdi file is :

vboxmanage modifyhd "e:\virtual_disk.vdi" --resize 20000

The original size is 8Gb. I want to increase it to 20GB.

 

I did a lot of search and found the problem and solution.

The format of VDI file is not supported by resize function.

fixed-format

Check the format of this vdi file, it is fixed default.

Resize is only support dynamic. So change the format of this vdi file to dynamic before resizing.

clone-vdi

The command is: vboxmanage clonehd “original vdi file” “new vdi file”

The default hard drive file format is dynamic. So no need to specify the format.

Then check the new vdi file’s format.

dynamic-vdi

It is dynamic default now. Then I did the resize and check the format again.

resize-vdi-and-check

Now the capacity is 20G now.

The last step is to unmount the old vdi file in VirtualBox manager, and replace the new one on it.