Converting IMG files to Virtual Box VDI format
In order to avoid installing the whole VM myself, I got an IMG file from a colleague for the CentOS VM. Now once I had the IMG file, but had not in the past converted it before to a VirtualBox compatible VDI format… after doing a little bit of research I found that to be a very simple process, so thought of sharing it with anyone who will like to do the same….
Once you have the .img file just run the following from command line:
VBoxManage convertfromraw -format VDI [filename].img [filename].vdi
Depending on the size of .img file it might take a little while as for my desktop machine it took like around 5 minutes for converting a 4GB img file to vdi format. Once its all done just add the VDI file as another disk, attach it to a VM in VirtualBox… start the VM and you just got it all working 🙂
—
Shoaib Mir
shoaibmir[@]gmail.com
Categories
Archives
Blog Stats
- 250,196 hits