14

I downloaded a disk image used for a wargame hosted by stripe, but I cant figure out how to create a virtual machine from this image. I'm using virtualbox, but I could use another tool if it would be easier

1

4 Answers 4

19

Found the solution, VirtualBox has a tool to create the .vdi from .img:

VBoxManage convertfromraw image.img virtual_disk.vdi
2
  • Note that for use with Hyper-V you want to use ... virtual_disk.vhd -format VHD, so you can mount it as virtual hard disk rather than as DVD media. With that change this works perfectly in 2022 still, using VirtualBox 6 and Hyper-V 10, and avoids having to use untrusted close sourced converter tools that inject who-knows-what as part of the conversion. Jun 4, 2022 at 16:28
  • For anyone on Windows getting 'VBoxManage' is not recognized, try running from C:\Program Files\Oracle\VirtualBox or adding the folder to your path.
    – Stevoisiak
    Dec 22, 2022 at 18:23
1

For VMWare
I found a simple but complete freeware tool here
Use it to convert img to vmdk and create a new virtual machine manually within WMWare and set your vmdk file as virtual disk.

0

stripe-ctf-server-ubuntu-10.04-lucid-amd64-20120427-0108.img.tar

Burn the image to a dvd or mount the img, and then boot from it.

You can now install it into a VirtualBox VM. Follow the steps in the link below.

The Beginner’s Guide to Creating Virtual Machines with VirtualBox

Make sure "Mount CD/DVD Drive" is checked. If you're going to install your virtual system from a boot CD or DVD, put it in your computer's drive, then select "Host CD/DVD Drive." If you're using a downloaded or custom-made ISO file, select "ISO Image file," hit the folder icon to the right of the drop-down box, and then hit the "Add" button and browse for the ISO you're using. Once you've added an ISO file to this menu, you can mount it in any virtual machine you're running at any time

0

Ive used IMGtoISO and have been pleased with it. Its free and easy to use. Plus the ISO format is more compatible with more applications.

2
  • I don't it is an img verses iso issue, I think the image I have is of a full system and not an install disk. Aug 30, 2012 at 16:43
  • ISO images are read-only though.
    – m0skit0
    Dec 20, 2021 at 8:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .