Home > Operating Systems > Converting IMG files to Virtual Box VDI format

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

Categories: Operating Systems Tags: , , ,
  1. zirk
    November 21, 2009 at 5:50 pm

    thanks! it is really usefull!

  2. March 2, 2010 at 1:28 am

    Good tip, just saved me from downloading 2 complicated tools to achieve the same… thanks!

  3. Brian
    March 25, 2010 at 8:14 am

    Thanks! This helped me a lot!

  4. May 28, 2010 at 10:25 pm

    Happy to help 🙂

  5. Fipps
    August 19, 2010 at 12:30 am


  6. tubesteak
    December 1, 2010 at 5:54 am

    Thank you, that’s really useful. Was trying to use the “clonehd” option of vboxmanage. Seems intuitive but doesn’t work. This method does. Thanks again.

  7. TJ
    December 11, 2010 at 10:02 am

    Does it Work on Windows 7? I can’t get it to. It just says “‘VBoxManage’ is not recognized as an internal or external command, operable program or batch file.”

    • December 11, 2010 at 11:50 am

      well on windows VBoxManage is not added in PATH so you have to move (cd) into the Virtual Box installation folder under “Program Files” and run VBoxManage from there.

    • June 26, 2011 at 12:26 pm

      why would you use windows 7 it sucks like all other things made by mircosoft

  8. February 17, 2011 at 8:36 pm

    It works 🙂

  9. Fatal Error
    May 21, 2011 at 3:35 am

    Thanks, worked!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: