Skip to content
CastaliaOS

Emulator guide

Run the Castalia systems in an emulator

Every Castalia system is verified under emulation in continuous integration on every change, so an emulator is the quickest way to try one without a period PC. This guide uses the current releases and the settings each project documents for its own testing.

EMULATORS.TXT — which one to use
Castalia DOSQEMU or DOSBox-X to boot the 1.44 MB floppy image; 86Box or PCem when exact 386SX timing and memory layout matter.
CastaliaOS 92DOSBox or DOSBox-X: unzip and start one executable. 86Box and PCem also work.
CastaliaOS 98 PEQEMU with a FreeDOS hard-disk image, the recommended way to evaluate the preview.

Castalia DOS 1.0-alpha5

Boot the rescue and install floppy

Download castaliados1.0alpha5tombatossalsboot.img, the raw 1.44 MB diskette image, from the Castalia DOS download section. It boots straight to the rescue disk, which offers SETUP, SAFEBOOT and HWINFO, plus FDISK, FORMAT, SYS and CHKDSK.

QEMU

qemu-system-i386 -fda castaliados1.0alpha5tombatossalsboot.img -boot a

To install, add an empty hard disk, then follow the setup steps on the product page: FDISK, FORMAT C: /S, SETUP, and reboot from the disk into the eight-profile boot menu.

qemu-img create -f raw castalia-c.img 256M
qemu-system-i386 -fda castaliados1.0alpha5tombatossalsboot.img -hda castalia-c.img -boot a

DOSBox-X

The repository's DOSBox-X profile approximates a slow 386: it is quick to set up but not cycle-accurate. At the DOSBox-X prompt, boot the image:

boot castaliados1.0alpha5tombatossalsboot.img
Machinemachine=svga_s3, memsize=4
CPUcore=normal, cputype=386, cycles=fixed 3000
Soundsbtype=sbpro2 at port 220, IRQ 5, DMA 1

86Box or PCem

For real 386SX timing, the project tests on a generic 386SX board with a 386SX/16 or /25, 4 MB of RAM, Tseng ET4000 or S3 VGA, an IDE disk and a 3.5" 1.44 MB drive with the image attached to A:. Sound Blaster Pro or 16 at A220 I5 D1 matches the default SET BLASTER; a serial mouse on COM1 or a PS/2 mouse works with CTMOUSE.

CastaliaOS 92 v0.56

Start the desktop in DOSBox

Download castalia-0.56.zip from the CastaliaOS 92 download section and unzip it. The archive holds one folder, castalia-0.56, with CASTALIA.EXE ready to run. Mount it as C: and start it:

dosbox -c "mount c castalia-0.56" -c "c:" -c "CASTALIA.EXE"

DOSBox provides an INT 33h mouse driver, so the pointer works without installing one. Click into the window to capture the mouse.

Settings

Machinemachine=svga_s3 or vga; both video modes, 320×200 and 640×480, work on any VGA machine type
Speedcycles=auto to try it; core=normal with cycles=3000 to 6000 to feel a 386SX. The project's own regression run uses cycles=1100, about a 386SX/16
Memory1 MB minimum, checked before the screen is touched; the DOSBox default is plenty

To install it instead of running it in place, run INSTALL from the folder; it copies everything to C:\CASTALIA and never touches AUTOEXEC.BAT unless you ask it to.

CastaliaOS 98 PE v0.1.0-preview1

Run the preview on FreeDOS in QEMU

CastaliaOS 98 PE installs onto an existing FreeDOS system, so the first step is a hard-disk image with FreeDOS installed, made with the FreeDOS installer in QEMU. Then:

  1. Download castalia-98-pe-v0.1.0-preview1.zip from the CastaliaOS 98 PE download section and copy its CASTALIA\ folder to C:\CASTALIA on the FreeDOS disk.
  2. Boot FreeDOS and run C:\CASTALIA\BIN\INSTALL.EXE. It backs up CONFIG.SYS and AUTOEXEC.BAT and adds the boot entries.
  3. Load CTMOUSE.EXE /P for a pointer, then start the desktop with BIN\CBOOT.EXE, or reboot. The desktop is fully keyboard-navigable without a mouse.

QEMU

The project models its reference Pentium II system with this command:

qemu-system-i386 -M pc -cpu pentium2 -m 128 -hda castalia.img -boot c -vga std
Video-vga std provides a VESA BIOS for the 800×600 desktop; -vga cirrus is a second data point
SoundOptional: add -device sb16
RecoveryAdd /safe to CBOOT for Safe Mode; F5 or F8 at boot, and the last known good configuration is kept
README.TXT — from emulator to real hardware

Emulators are where all three systems are verified today. Each project publishes a validation plan for its reference hardware, a 386SX for Castalia DOS and CastaliaOS 92 and a Pentium II with an Intel 440BX chipset for CastaliaOS 98 PE, and reaches 1.0 when that plan is complete. Installing on a real machine writes to boot files and, for Castalia DOS, may partition and format storage: try it in an emulator first.

Requirements, checksums and install steps for real machines are on each product page: Castalia DOS, CastaliaOS 92 and CastaliaOS 98 PE.