Ghostboard pixel

Microsoft Has WSL, But This Developer Built One for Windows 95

WSL9x lets you run a modern Linux kernel 6.19 inside Windows 9x without needing virtualization.
Warp Terminal

Linux has had a quiet takeover of computing. It powers all of the world's top 500 supercomputers and Android, which runs on billions of smartphones.

It has also found its way into places that have nothing to do with traditional computing. Smart TVs run some variant of it. Cars run it. If something has a processor and a purpose, there is a good chance Linux is involved somewhere.

Over the years, we have also seen some interesting experiments involving Linux and Windows together. loss32 runs an entire desktop as Win32 software under Wine, and Microsoft's WSL has made Linux a part of Windows 10 and beyond.

Now, Hailey, an open source developer, has taken that idea and turned it around. Instead of Linux hosting Windows apps, she has made Windows 9x host Linux.

WSL9x: Overview ⭐

on a windows 95 system, wsl9x is showcased via many ms dos prompt windows 95
Via Hailey on Codeberg.

The project brings a Linux subsystem to Windows 9x, covering 95, 98, and ME, with Linux kernel 6.19 running alongside the Windows 9x kernel, letting both operate on the same machine at the same time.

As for how it works, a patched kernel from Hailey's win9x-um-6.19 branch sits at the core, which is compiled using the User Mode Linux architecture and loaded at a fixed base address of 0xd0000000.

A VxD (virtual device driver) handles initialization, loads the kernel off disk and manages the event loop for page faults and syscalls. Since Win9x lacks the right interrupt table support for the standard Linux syscall interrupt, WSL9x reroutes those calls through the fault handler instead.

Rounding it all out is wsl.com, a small 16-bit DOS program that pipes the terminal output from Linux back to whatever MS-DOS prompt window you ran it from (as shown in the screenshot above).

In her Mastodon post (linked above), Hailey pointed out that WSL9x requires no hardware virtualization, and that it can run on hardware as old as the i486. The same architecture that you might remember is being dropped from the Linux kernel.

Get WSL9x πŸ“₯

WSL9x doesn't ship a pre-built binary, so you'll need to build it from source and deploy it on a Windows 9x system (95, 98, or ME). The source code and build instructions are on Codeberg.


πŸ’¬ Do you think that this is something that you would play around with? Or is just a gimmick?

About the author
Sourav Rudra

Sourav Rudra

A nerd with a passion for open source software, custom PC builds, motorsports, and exploring the endless possibilities of this world.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.