Show HN: A DOS-like hobby OS written in Rust and x86 assembly

Jun 19, 2025 - 18:45
 0  0
Show HN: A DOS-like hobby OS written in Rust and x86 assembly

rou2exOS Rusted Edition

A second iteration of the RoureXOS operating system, rewritten in Rust.

To run the OS, you can use the attached ISO image from any Release, and run it in QEMU emulator. The system was also tested on x86_64 baremetal (booted from the USB flash disk).

How to build and run

# install Rust and its dependencies
make init

# make sure you have `xorriso`, `net-tools` and `grub2-tools` installed (Linux)
dnf install xorriso net-tools grub2-tools qemu qemu-common qemu-system-x86

# compile the kernel and stage2 bootloader, link it into an ELF binary and bake into an ISO image with GRUB stage1 bootloader
make build

# run the QEMU emulation with ISO image (respectively with additional floppy image attached as well)
make run_iso
make run_iso_floppy

# (alternative) run the kernel exclusively only (needs the `bootloader` dependency in Cargo.toml to be added)
cargo bootimage
make run

How to test ICMP/SLIP

Run the kernel in QEMU to get the pty number in stdout:

make run

char device redirected to /dev/pts/3 (label serial0)

Listen for SLIP packets and create a sl0 interface:

sudo slattach -L -p slip -s 115200 /dev/pts/3
sudo ifconfig sl0 192.168.3.1 pointopoint 192.168.3.2 up

Catch packets using tcpdump:

sudo tcpdump -i sl0

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0