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
shoaibmir[@]gmail.com

About these ads
Categories: Operating Systems Tags: , , ,
  1. zirk
    November 21, 2009 at 5:50 pm | #1

    thanks! it is really usefull!

  2. March 2, 2010 at 1:28 am | #2

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

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

    Thanks! This helped me a lot!

  4. May 28, 2010 at 10:25 pm | #4

    Happy to help :)

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

    GREAT!

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

    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 | #7

    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 | #8

      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 | #9

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

  8. February 17, 2011 at 8:36 pm | #10

    It works :)

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

    Thanks, worked!

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: