How to convert .img file to VM hard drive file.

Brian Read

Well-Known Member
Jan 4, 2017
120
4
58
74
I have a .img file (actually designed to be copied to an SD drive), which I'd like to test in a VM. So I need a procedure that will take that .img and create a VM hard drive file which I can then connect to a VM.

Anyone got any ideas?
 
THis is what file says:

volumio-2.348-2017-12-22-x86.img: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,1), end-CHS (0x3ff,254,63), startsector 1, 7987199 sectors

I'm trying this on my fedora desktop (I'll try to run it in VirtualBox first)

vboxmanage clonemedium disk volumio-2.348-2017-12-22-x86.img volumio-2.348-2017-12-22-x86.vdi --format VDI

However it says that it can't identify the type of the input file.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!