views:

5706

answers:

2

I have some images of old linux distributes in flat file format, they can be used by bochs virtual machines, but I need to run them with Sun Virtual Box. Virtual Box cannot use images in this format, so I need to convert these images from flat file to .vmdk file format. Is there any way to do this?

+5  A: 

apt-get qemu (installs QEMU on debian/ubuntu)

qemu-img convert imagefile.dd -O vmdk vmdkname.vmdk

I'm assuming a flat disk image is a dd-style image. The convert operation also handles numerous other formats.

krosenvold
A: 

Maybe you should try using Starwind V2V Converter, you can get it from here - http://www.starwindsoftware.com/converter. It also supports IMG disk format and performs sector-by sector conversion between IMG, VMDK or VHD into and from any of them without making any changes to source image. This tool is free :)