The solution is simple .. you can’t 🙂
But here is a hack … we clone it to a dynamic size disk and then resize that disk 🙂 Elegant .. right?
vboxmanage clonehd WinVista_x32.20gb.vdi vista_32b_30g.vdi
0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
Clone hard disk created in format ‘VDI’. UUID: 01874324-6e16-4b77-a9e7-0b1995945f22
vboxmanage modifyhd vista_32b_30g.vdi –resize 30000
0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
Now, you just remove the old disk and add the new one 🙂
That’s all 🙂
Hmm. The resize command replied with VBOX_E_NOT_SUPPORTED (Resize hard disk operation for this format is not supplrted yet!). Host: ubuntu 10.04/vbox 4.1.22, guest: ubuntu 12.04, source hd: fixed vdi 30g (turned to be way to big, need it at 5g). Clonehd did well, cloned vdi has 3.2g.
Any ideas what went wrong?
–p
This method here that is plastered all over the internet
DOES NOT WORK!