How to Run FreeDOS on Linux with QEMU — A Simple Guide

24.04.2025
14:37

If you’ve ever played old floppy disk games or typed commands into a black screen, you probably remember DOS. And if you missed that era — this is a great way to experience it. FreeDOS brings back that retro vibe, and Linux with QEMU makes it easy to set up without much hassle. All you need is a bit of free time, a few terminal commands, and either some nostalgia or curiosity. In this guide, I’ll show you how to get FreeDOS up and running on your Linux machine so you can relive the past with classic software and games.

Step 1: Install QEMU

This part is easy. Just open a terminal and install the necessary packages — they’re available in the default repositories. On Ubuntu, for example, you can run:

sudo apt update
sudo apt install qemu qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

Step 2: Download and Set Up FreeDOS

1. Go to the official freedos.org website and download FD14-LiveCD.zip.

2. Create a virtual hard disk:

qemu-img create -f qcow2 freedos.img 2G

3. Unzip the archive and start the installation:

unzip FD14-LiveCD.zip
qemu-system-x86_64 -hda freedos.img -cdrom FD14LIVE.iso -boot d -m 512

Wait for it to boot. When you see the menu, choose “Install to Harddisk” and press Enter. The system will automatically format the drive, create the partition, and install itself.

After installation, you can boot FreeDOS without the ISO:

qemu-system-i386 -m 64 -hda freedos.img -boot c

How to Run Old DOS Programs

Let’s say you want to play Doom. Here’s how:

1. Download the demo version doom1.zip.

2. Unzip it to a folder, for example: ~/Games/Doom.

3. Attach that folder to your virtual machine as a second drive:

qemu-system-x86_64 -hda freedos.img -hdb fat:rw:~/Games/Doom -m 512

4. Inside FreeDOS, switch to drive D: and run the game:

D:
doom.exe

Final Thoughts

Congrats! You now have a working FreeDOS setup running right inside Linux — no need for ancient hardware or floppy disks. Everything works through QEMU, quick and clean.

15% discount on new VPS
Hurry up to order a server in any location
Choose a VPS

Other articles

24.04.2025
1 822
Knowledge base / Games / Windows
How to run Windows programs and games on Linux with CrossOver 25
24.04.2025
1 319
Knowledge base / Android
Guide: How to Easily Move Apps to a microSD Card on Android
24.04.2025
10 501
Knowledge base / Instructions - THE.Hosting
How to Install and Configure NekoRay on Windows