Pomelo OS
GitHub

One Kernel. Two Worlds

A next-generation, lightweight, independent operating system powered by Rust

Through Linux system-call compatibility, Linux and Windows applications coexist seamlessly on a single Wayland desktop.

Pomelo OS · Demo
Pomelo OS
~ # echo Hello from Pomelo OS; uname -a
Hello from Pomelo OS
Linux pomelo 7.3.5-pomelo Pomelo 0.1.0 (Rust) x86_64 GNU/Linux
~ # ▋
Unmodified Ubuntu busybox running on the Pomelo kernel
2.9 MB
Kernel code
0.15–0.24 s
Boot to /init
196
System calls
163
Built-in tests

Run Pomelo OS in QEMU

Test it in seconds on Linux or macOS with QEMU and KVM hardware acceleration.

View Repository
# 1. Clone repository
$ git clone https://github.com/pomelo-os/pomelo-os.git && cd pomelo-os
# 2. Build and launch in QEMU
$ make qemu

A different approach

Instead of implementing a second NT kernel or porting Wine, Pomelo runs Windows applications through its own user-space compatibility stack, alongside native Linux applications, on the same desktop.

This is not a claim of full Windows compatibility. The project has a defined compatibility scope, extensive automated testing, and a roadmap of unfinished work.

Current progress

124 / 140
features completed
71,629
tests passed
0
failures

Still under active development, with important work remaining in hardware acceleration, compatibility and system maturity. Pomelo is an experiment in building an operating system from the ground up, and in exploring a different way to bring Windows software into that environment.

Design highlights

Rust kernel

Written from scratch with no external crates; W^X, NX, SMEP and SMAP are always on and cannot be disabled.

Linux ABI

196 system calls; unmodified glibc and Ubuntu busybox run as-is; SMP with up to 32 CPUs.

Own filesystem

PomeloFS: copy-on-write, snapshots, encryption, integrity tags; plus ext2/3/4, FAT, exFAT and more.

Wayland desktop

Its own compositor with DRM/KMS output; keyboard, mouse, touch and terminal all work.

Windows compatibility

A user-space PE loader and hand-written DLLs (not Wine); Windows and Linux programs share the desktop.

Driver host

Runs unmodified Linux drivers in isolated user processes protected by the IOMMU.

Inside the kernel

About 81,000 lines of Rust with no external crates. Each card says what the area does and its main limit.

Boot

Own UEFI loader and BIOS (MBR) loader; one image boots on both. Reaches /init in about 0.15–0.24 s. Limit: does not boot with Secure Boot enabled.

Memory

Four-level page tables per process, copy-on-write fork, user ASLR, W^X enforced for kernel and user, guard pages. Limit: the page cache is never reclaimed; 64 GiB of physical memory at most.

Processes and scheduling

clone/fork/execve, signals, futex, epoll, pty; SMP up to 32 CPUs, 4-core stress tests pass on KVM. Limit: 100 Hz round-robin, no priorities or fair scheduling.

System calls

196 Linux system calls; dynamically linked glibc programs run unmodified. User pointers always go through checked copies and SMAP stays on. Limit: no int 0x80 or 32-bit legacy entry.

Filesystems

VFS with page cache; PomeloFS, ext2/3/4, FAT and exFAT read-write, NTFS and Btrfs read-only; GPT/MBR, LVM, software RAID. Limit: ext4 writes bypass the journal.

Drivers

75 driver files; all DMA goes through the IOMMU and devices are treated as untrusted. A driver host runs unmodified Linux drivers in isolated processes. Limit: mostly polling; the driver host runs at about 1/5 of native speed.

Networking

IPv4 TCP/UDP/ICMP/DHCP with AF_UNIX, AF_NETLINK, AF_PACKET and AF_BLUETOOTH sockets; NICs can be hot-plugged. Limit: no IPv6.

Security

NX, SMEP, SMAP and UMIP are on from boot; only about 0.5% of lines (438) use unsafe; USB, ACPI and ELF parsers are fuzzed; every test checks for memory leaks. Limit: no formal verification.

Verification status

All tests ran under QEMU/KVM and VirtualBox: make test passes 161 with 0 failures. The kernel has not yet been verified on any physical processor.

Honest limitations

Screenshots

Desktop with the Pomelo wallpaper, icons and taskbar
Desktop with the Pomelo wallpaper, icons and taskbar
Start menu with pinned apps, recommendations and search
Start menu with pinned apps, recommendations and search
Unmodified PuTTY running as a Windows program (PuTTY Configuration dialog)
Unmodified PuTTY running as a Windows program (PuTTY Configuration dialog)
The official 7-Zip installer (7z2606-x64.exe) running with its setup dialog
The official 7-Zip installer (7z2606-x64.exe) running with its setup dialog
7-Zip File Manager running on Pomelo
7-Zip File Manager running on Pomelo
Text editor with a file tree and Chinese input (IME)
Text editor with a file tree and Chinese input (IME)
Calculator in scientific mode
Calculator in scientific mode
Slides app: choosing a design theme
Slides app: choosing a design theme
Slides app: editing a slide with Chinese text
Slides app: editing a slide with Chinese text
Built-in browser loading google.com over HTTPS
Built-in browser loading google.com over HTTPS
Linux and Windows programs on the same desktop
Linux and Windows programs on the same desktop
A Windows .exe (PE32+) drawing through our own user32 / gdi32
A Windows .exe (PE32+) drawing through our own user32 / gdi32

FAQ

Is this a Linux distribution?

No. Pomelo is a kernel written from scratch in Rust that implements the Linux system-call ABI, so unmodified glibc and Linux programs run directly.

Can I use it on real hardware?

All verification so far was done under QEMU/KVM and VirtualBox, not on physical machines. Treat it as experimental.

Can it run Windows programs?

Partly. Through a user-space compatibility layer (not Wine) it already runs ripgrep, the 7-Zip command line, Python and several installers, but coverage is limited. See the Windows page.

Which processors are supported?

x86_64 only (Intel and AMD), up to 32 CPUs. ARM and RISC-V are not supported.