60

I have a .img file for Windows 10, and I need to turn it into something which I can use in VirtualBox, such as an ISO, or turning it into a bootable virtual disk for an ICT project.

  • 3
    If this was Linux, I'd suggest qemu-img convert. On Windows, it's more fun to install Win1 yourself from floppy images – grawity Feb 20 '13 at 16:05
101
  1. Select a virtual machine by clicking its name in the VirtualBox window
  2. Click the Machine menu at the top of the VirtualBox window, and click Settings
  3. Click the Storage category in the Settings window
  4. Right-click in the storage tree pane, and click Add Floppy Controller
  5. Right-click the Floppy Controller device, and click Add Floppy Device
  6. Click the Choose Disk button in the prompt window that appears
  7. Navigate to the floppy disk image file (.IMG) on your computer and double-click it

If that doesn't work, try renaming the .IMG as .ISO and mount it.

If that too doesn't work, use VBoxManage's convertfromraw command as follows:

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

Mount the VDI as a hard disk.

  • 1
    Thanks so much! It worked, and a few days before the project was due. – Anton8000 Feb 21 '13 at 11:05
  • 2
    Is this reversible? – ThorSummoner Sep 2 '14 at 23:46
  • 3
    @ThorSummoner: Try VBoxManage clonehd --format RAW [filename].vdi [filename].img (syntax help for clonehd here). – Karan Sep 5 '14 at 23:58
  • Thanks! Renaming .img to .iso worked in my case, I had SharePoint 2013 Server. – Amit Bhagat Feb 20 '16 at 10:12
  • The fully quallified command path is: /Applications/VirtualBox.app/Contents/MacOS/VBoxManage clonehd --format RAW [filename].vdi [filename].img – Jorduino Mar 28 '17 at 11:02
1

Windows 10 can mount .img files as a drive. This drive can then be accessed by a virtual machine.

  1. In Windows Explorer, right click on the .img file, select Mount.
  2. Start the virtual machine
  3. In the Devices menu => Optical Drives => select the Host Drive created in step 1.

protected by Community Mar 28 '17 at 11:20

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.