How to resize a VirtualBox disk

Very quick post on how to resize a VirtualBox virtual disk.

virtualbox

 

When using QCOW based disks with Virtual Box there’s no automagic method for resizing the disks. Because of that you first have to convert it. Here’s the commands you need…

First, convert your QCOW disk to VDI:

VBoxManage clonehd --format VDI --variant Standard

Then you can resize it:

VBoxManage modifyhd --resize

That’s pretty much it!