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