The superb technique to make spend of QEMU to boot any other OS

The superb technique to make spend of QEMU to boot any other OS

QEMU logo.

That feeble legacy machine is long past, never to be heard from again. Correct? But what make you’re making on the fateful day that somebody must entry recordsdata that’s trapped in an feeble legacy utility? If up-to-the-minute applications can’t read the tips, it be basic to crawl the legacy machine. And that’s where machine emulation is accessible in.

The originate-offer PC emulator QEMU is included by default in most mainline Linux distributions, but you must moreover rep variations of QEMU for various Linux distributions. When you happen to crawl Windows or macOS, the QEMU web state affords programs for those platforms, too. QEMU affords improbable machine-stage compatibility and give a scheme cease to, making it an superb and light-weight digital machine ambiance.

You’ll desire a command to set up the legacy machine inside of QEMU, and for that you just’ll desire a digital C: drive. In DOS, valid as in Windows, drives are represented as letters. A: and B: are the first and 2d floppy disk drives, and C: is the first laborious drive. Other media, at the side of reasonably a variety of laborious drives or CD-ROM drives, are assigned D:, E:, and so forth.

Below QEMU, digital drives are image files. To initialize a file that that you just must spend as a digital C: drive, spend the qemu-img uncover. To manufacture an image file that’s about 200MB, sort this:

$ qemu-img fabricate image.img 200M

No longer like PC emulator systems esteem VMware or VirtualBox, it be basic to “rep” your digital machine by instructing QEMU to be capable of add the total lot of the digital machine. QEMU makes spend of uncover line alternate choices to account for every little thing. This can sort QEMU advanced to make spend of before every little thing, but this affords flexibility in rising precisely the digital machine that you just in actual fact desire. To rep started, you absolute most realistic must know about a parameters to begin up a digital machine:

1. The uncover to begin up QEMU

To emulate a legacy PC machine, spend qemu-machine-i386 . To emulate a more up-to-the-minute machine, spend qemu-machine-x86_64 .

2. The digital disk

Spend -hda imagefile to tell QEMU to make spend of imagefile because the laborious drive image. This should be the identical digital disk you outlined with the  qemu-img  uncover.

3. The boot ISO

Build -cdrom isofile to account for the CD-ROM or DVD image file. For instance, this could presumably well also very neatly be the bootable ISO image to set up Linux, Windows, or any other working machine.

4. Memory

Build the amount of reminiscence within the digital machine with the -m dimension possibility. When you happen to are making no longer explicitly plan this, QEMU defaults to 128 MB. You’ll doubtless be ready to moreover append a suffix of M or G to specify the reminiscence in MB or GB.

5. Boot declare

Spend -boot [options] to specify the declare that QEMU could presumably well also just detached glance bootable gadgets. For instance, plan -boot declare=dc to tell QEMU to try the CDROM ( d ) first, then the laborious drive ( c ).

Now that we contain the essentials to begin up a digital machine with QEMU, we are capable of put it all together on a single uncover line to fabricate and boot your digital machine!

Let’s attempt it with an instance: installing a replica of the FreeDOS working machine. FreeDOS is an originate offer DOS-esteem minded working machine that that you just must spend to crawl legacy substitute software program and pretty a variety of DOS applications. Any program that works on MS-DOS could presumably well also just detached moreover crawl on FreeDOS.

First, rep a replica of the FreeDOS 1.2 set up CD-ROM from the FreeDOS web state, as FD12CD.iso.

Then account for a digital disk with the qemu-img uncover:

$ qemu-img fabricate image.img 200M

Spend that digital disk within the uncover line to begin up QEMU:

$ qemu-machine-i386 -hda image.img -cdrom FD12CD.iso -m 16M -boot declare=dc
Booting the FreeDOS 1.2 installer in QEMU
Booting the FreeDOS 1.2 installer in QEMU.

And practice the prompts to set up FreeDOS:

Starting the FreeDOS 1.2 installer in QEMU
Starting the FreeDOS 1.2 installer in QEMU.
Completing the FreeDOS 1.2 install in QEMU
Finishing the FreeDOS 1.2 set up in QEMU.

And now you contain a working DOS machine!

Running FreeDOS 1.2 in QEMU
Working FreeDOS 1.2 in QEMU

QEMU and FreeDOS sort it straightforward to crawl feeble DOS programs below reasonably a variety of working systems, at the side of Linux. When you’ve plan up QEMU because the digital machine emulator and installed FreeDOS, attempt to be all plan to crawl your popular classic DOS programs from Linux.

Be taught More

Share your love