wtorek, 3 maja 2016

VirtualBox - RAW image to VDI or VMDK & vice versa

virtualbox dd image to vdi

Zachciało się ratować _OEMBP
$ sudo dd if=/dev/sdb of=./sdb.dd
 Converting RAW dd image to vdi using VBoxManage


$ VBoxManage convertdd sdb.dd sdb.vdi --format VDI
For VMware
$ VBoxManage convertdd sdb.dd sdb.vmdk --format VMDK
VMware VMDK to VirtualBox VDI
$ VBoxManage clonehd sdb.vmdk sdb.vdi --format VDI
VirtualBox VDI to VMware VMDK
$ VBoxManage clonehd sdb.vdi sdb.vmdk --format VMDK
Convert back to RAW dd image
$ VBoxManage clonehd sdb.vdi sdb.vdi.raw --format RAW $ VBoxManage clonehd sdb.vmdk sdb.vmdk.raw --format RAW
Alternative solution (not tested by me [source]) to get back raw image after applying 
modifications is to use qemu-img command from qemu package:

$ qemu-img convert -f vmdk sdb.vmdk -O raw sdb.dd

Brak komentarzy:

Prześlij komentarz

thanks