VirtualBox convert RAW image to VDI

How can I convert a kvm RAW image to a VirtualBox VDI image?

It is quite easy:

If we have a raw image of the sdb device:

dd if=/dev/sdb of=sdb.raw

we can convert it with VBoxManage:

VBoxManage convertfromraw sdb.raw sdb.vdi --format VDI

Now we can tell virtualbox to use a existing vdi disk and run the virtual machine.

comments powered by Disqus