Resize Virtual Disk (vdi)
$> VBoxManage modifyhd VirtualBox\ VMs/Winows\ 7\ Professional/Windows\ 7\ Professional.vdi –resize 20240
$> VBoxManage modifyhd VirtualBox\ VMs/Winows\ 7\ Professional/Windows\ 7\ Professional.vdi –resize 20240
$> sudo cat /dev/disk2 | VBoxManage convertfromraw stdin PATH/FILENAME.vdi IMAGESIZEINBYTE
From the host machine: $> VBoxManage clonehd “source.vmdk” “cloned.vdi” –format vdi $> VBoxManage modifyhd “cloned.vdi” –resize 51200 $> VBoxManage clonehd “cloned.vdi” “resized.vmdk” –format vmdk From within the machine: $> resize2fs -p -F sda1
If you want to create a bootable physical disk from a VDI-File (VirtualBox Disk Image): $> VBoxManage clonehd –format RAW debian.vdi debian.img After that you can dd the image to the target disk like that: $> dd if=path/to/imgfile.img of=/dev/sdb1