OpenAltFinder
Asterinas

Asterinas

A memory-safe, Linux-compatible OS kernel written in Rust, aiming to be a production-grade Linux alternative.

Open source alternative to:

Asterinas is a general-purpose operating system kernel written from scratch in Rust with a Linux-compatible system call interface. It implements more than 240 Linux system calls, enough for Linux binaries and container images to run on it, and it is built by an independent, community-led project with over 100 contributors and roughly 250,000 lines of code. Rather than incrementally adding Rust to the Linux kernel, the project starts over so that every design decision can assume a memory-safe language.

Its defining idea is the framekernel architecture: the whole OS lives in a single address space like a monolithic kernel, but only a small framework called OSTD is allowed to use unsafe Rust. System calls, filesystems and device drivers must be written in safe Rust, which shrinks the memory-safety trusted computing base while keeping the performance of direct function calls between kernel components. On top of that the project ships OSDK, a toolkit for building, running and testing Rust kernels, and a novel memory-management design called CortenMM. x86-64 is the Tier 1 platform; 64-bit Arm, RISC-V and LoongArch are supported at lower tiers, and Intel TDX confidential VMs are a Tier 2 target. Version 0.19.0 added a DRM graphics subsystem that runs Xorg with Mesa software OpenGL, hypervisor support in OSTD, a Rust-native device model, a rewritten overlayfs and a more complete virtio-fs driver, aimed at using Asterinas as the guest kernel for Kata Containers and Confidential Containers.

The project positions itself against commercially supported Linux and commercial RTOSes: it is MPL-2.0 licensed, with no subscription, support contract or safety certification attached. Its experimental distribution, AsterNixOS, is NixOS with Linux swapped for Asterinas and is explicitly not ready for production use and not affiliated with the NixOS Foundation. The stated 2026 goal is production readiness for standard and confidential virtual machines on x86-64, with data centers, autonomous vehicles and embodied AI as the target deployments. You can try it from the AsterNixOS installer ISO or build the kernel and distribution yourself inside the project's Docker development environment.

Frequently Asked Questions

Which CPU architectures does Asterinas support?

x86-64 is the Tier 1 platform and the only one where the full test suite runs on every pull request. Intel TDX confidential VMs, 64-bit Arm and RISC-V 64 are Tier 2, meaning builds and basic tests run regularly but full coverage is not there yet, and LoongArch 64 is Tier 3 and experimental. Only 64-bit platforms are targeted, and the Docker-based development environment runs on x86-64 or ARM64 Linux hosts.

Can Asterinas run existing Linux applications?

It implements a Linux-compatible ABI with more than 240 system calls, so Linux binaries and container images can run on it. The overlayfs and virtio-fs implementations let it boot layered container images and share host directories with the kernel, and AsterNixOS runs Xorg with Mesa software OpenGL. Coverage is not complete, so not every Linux program runs unchanged.

Can Asterinas be used as a container or confidential VM guest kernel?

Yes, within limits. It is designed to act as the guest kernel for VM-based containers such as Kata Containers and Confidential Containers, where a memory-safe kernel removes a class of exploitable bugs from the sandbox. Release 0.19.0 closed several gaps for that use case, including mount propagation, the fd-based mount API, overlayfs and virtio-fs. Intel TDX is supported as a Tier 2 deployment platform, so confidential VMs work but are not covered by the full test suite.

How do I build or try Asterinas?

The quickest route is the AsterNixOS installer ISO on GitHub Releases, which installs a NixOS system with Asterinas as its kernel into a QEMU virtual machine. Kernel developers clone the repository on an x86-64 or ARM64 Linux host, start the project's privileged Docker development image or enter the Nix development shell, then run make kernel and make run_kernel for a minimal initramfs, or make nixos and make run_nixos for the full distribution.

OpenAltFinder Score
74/100
Project Health (63%)
67/100
License (25%)
80/100
Recency (13%)
100/100
How scoring works
Project Details
Platforms
CLI, Desktop
License
MPL-2.0
Self hostable
Yes
Repository details
Version
v0.19.0
Created
5/17/2022
Stars
5,017
Forks
400
Open issues
360
Last commit
10/22/2026

Updated 10/23/2026, 8:00:49 AM

View Repository

Compare Asterinas with

Similar open source alternatives