Convert .img to .vdi for VirtualBox

Since VirtualBox doesn’t know how to handle .img files, the best way to make a .img file bootable in VirtualBox is to convert it to a .vdi as follows:

VBoxManage convertfromraw -format VDI [filename].img [filename].vdi

Then, add the .vdi as another hard drive in VirtualBox and press “F12″ at boot to choose the drive.