Fusion Developer

Converting .vdi to .img file

This is a quick guide to convert .vdi (VirtualBox) files to .img files and how you convert .img files to .vdi (VirtualBox) files.

To convert a .vdi file to a .img file, you can use these easy steps:

.vdi to .img

Windows

  1. Open up command prompt (click start, then type/click run)
  2. Issue the following command:
       VBoxManage clonehd <nameOfOriginalVDI>.vdi <nameOfNewImage>.img --format RAW
  3. Wait for the clone to finish, and presto! You have an image file.

Note:
When you do convert a .vdi to a .img, remember that the .img file will be the maximum size that you set your .vdi to grow to.
If VBoxManage is not recognized, navigate to the install directory of VirtualBox or add the install direction to your path.

Linux

The process for conversion is the same on Linux as on Windows.

.img to .vdi

Windows

  1. Open up command prompt (click start, then type/click run)
  2. Issue the following command:
       VBoxManage convertdd <nameOfOriginalImage>.img <nameOfNewVDI>.vdi
  3. Wait for the conversion process, and you once again have a lean, trim .vdi!

Note:
When converting a .img to a .vdi, the .vdi will shrink in size to accommodate the contents of the VM only.
If VBoxManage is not recognized, navigate to the install directory of VirtualBox or add the install direction to your path.

Linux

The process for conversion is the same on Linux as on Windows.

I hope this helps some of you out there in the deep, dark recesses of the blogosphere!

Kevin

« Previous post

6 ResponsesLeave one →

  1. Panchal Sagar

     /  2 April 2014

    I just want to to tell
    VBoxManage conehd .vdi .img –format RAW
    ^

    Reply
  2. suastika

     /  17 November 2014

    Can I run win xp on android with virtualbox? how?

    Reply
  3. Afzal Shahul Hameed

     /  24 March 2015

    Hello

    I can’t do it in my windows but instead get an “Raw: disk would overflow creating image ‘path/to/where/I/want/the/file/given_file_name.img’ ” error. Help me out please.

    Reply
  4. Johnny

     /  21 March 2016

    VBoxManage’ is not recognized as an internal or external command

    Reply
  5. eddie cingoranelli

     /  28 March 2017

    i converted windows95.vdi to windows95.img and win95.img. they both took 2gb’s from my hard drive but i cannot find the files on windows 10??

    Reply

Leave a Reply

*