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.
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
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
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
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.