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.
2 Answers
- Select a virtual machine by clicking its name in the VirtualBox window
- Click the Machine menu at the top of the VirtualBox window, and click Settings
- Click the Storage category in the Settings window
- Right-click in the storage tree pane, and click Add Floppy Controller
- Right-click the Floppy Controller device, and click Add Floppy Device
- Click the Choose Disk button in the prompt window that appears
- 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.
-
2Thanks so much! It worked, and a few days before the project was due.– AnthonyFeb 21, 2013 at 11:05
-
2
-
4
-
Thanks! Renaming .img to .iso worked in my case, I had SharePoint 2013 Server. Feb 20, 2016 at 10:12
-
The fully quallified command path is: /Applications/VirtualBox.app/Contents/MacOS/VBoxManage clonehd --format RAW [filename].vdi [filename].img– JorduinoMar 28, 2017 at 11:02
Windows 10 can mount .img files as a drive. This drive can then be accessed by a virtual machine.
- In Windows Explorer, right click on the .img file, select Mount.
- Start the virtual machine
- In the Devices menu => Optical Drives => select the Host Drive created in step 1.
-
2sometimes it wont , for e.g. i tried to mount an octopi img file in windows 10 and it said the image file is corrupt– GurpreetFeb 13, 2020 at 20:31
-
I'm also experiencing a "corrupted image file" which came from a raspberry pi.– GChufApr 1, 2020 at 16:29
-
1The Rasberry Pi images might be ARM processor based, instead of x86-based. Oct 21, 2021 at 15:58
qemu-img convert
. On Windows, it's more fun to install Win1 yourself from floppy images