21.12.09 - Expanding VirtualBox dynamic hard disks
How to expand *.vdi dinamic disks
Although we can not expand a virtual dinamic hard drive (*.vdi) directly we can finally expand it through a cloning trick. The steps are:
Once you have done it, you will need to expand the disc. The details for do this are out of the scope of this article, probably a good way to do it is using a free program like Gparted.
Create a new virtual hard disk (new device)
First create a new hard disk with the desired storage size (it will be the new hard disk).VBoxManage createhd –filename my_filename.vdi --size 50000 --remember
Clone the old drive into the new one
In order to have the same data (for example: OS) in the new hard drive we have to clone the previous and size limited one.VBoxManage clonehd old.vdi new.vdi --existing
Configure the new one as the system default
First remove the last one and then select the new created one as the default.VBoxManage modifyvm MyVMName --hda none
VBoxManage modifyvm MyVMName --hda new.vdi
VBoxManage modifyvm MyVMName --hda new.vdi
Via: Alittletothewright

How I clone the old drive to the new one?
$VBoxManage createhd –filename my_filename.vdi --size 50000 --remember I don't understand why add "--remember".
Thanks a lot.. This little trick saved my time. This also taught me about vboxmanage. Truly Appreciate your help.
I am the first time on this site and am really enthusiastic about and so many good articles. I think it's just very good.
Great information you write it very clean. I am very lucky to get this tips from you.