Tech/HowTo/QEMU MS DOS

From lathama
< Tech‎ | HowTo
Jump to navigation Jump to search

I got a box of old software at an auction and wanted to play. I have an installer disk for MS Windows 98 and wanted to try in QEMU on Linux

TL;DR;

$ qemu-system-i386 --version
QEMU emulator version 7.2.9 (Debian 1:7.2+dfsg-7+deb12u5)
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
mkdir -p virtual_machines/drives virtual_machines/floppy
cd virtual_machines/
ls floppy/
MSDOS_1.img  MSDOS_2.img  MSDOS_3.img
qemu-img create -f qcow2 drives/msdos.qcow2 512M
qemu-system-i386 -hda drives/msdos.qcow2 -drive file=floppy/MSDOS_1.img,format=raw,index=0,if=floppy -boot once=a -cpu pentium3,kvm=off -m 64 -display sdl -vga cirrus

open the QEMU console with Ctrl+Alt+2

change floppy0 floppy/MSDOS_2.img

then

change floppy0 floppy/MSDOS_3.img


Bonus

Try https://www.freedos.org/download/ instead for more fun

TL;DR;

$ qemu-system-i386 --version
QEMU emulator version 7.2.9 (Debian 1:7.2+dfsg-7+deb12u5)
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
mkdir -p virtual_machines/drives virtual_machines/iso
cd virtual_machines/
ls iso/
FD13LIVE.iso
qemu-img create -f qcow2 drives/freedos.qcow2 512M
qemu-system-i386 -hda drives/freedos.qcow2 -cdrom iso/FD13LIVE.iso -boot once=d -cpu pentium3,kvm=off -m 64 -display sdl -vga cirrus