motor-os README

The project's README from github.com/moturus/motor-os. As one markdown file: README.md.

Motor OS

Motor OS is a simple, fast, and secure operating system built for the cloud. It targets virtualized workloads such as web serving, serverless computing, and edge caching, and avoids the overhead a general-purpose OS carries when it runs inside a VM.

It is written entirely in Rust, from the kernel to the shell, and its system interface is Rust, not C. It runs as an x86-64 KVM guest under QEMU, Cloud Hypervisor, and Firecracker.

This README is a summary. The details are on the website, motor-os.org: the architecture, the process model, the filesystem, networking, terminals, the commands and programs, the toolchains, and how to develop for Motor OS in Rust and in C/C++.

Why

At the moment, most virtualized production workloads run Linux. Linux has many advanced features that in many situations make it the only reasonable choice, but several things make it less than ideal, in theory, for some virtualized workloads:

A new operating system built from the ground up with a focus on virtualized workloads can be made much simpler and more secure than Linux, while matching or exceeding its performance and efficiency.

What Motor OS does differently:

What

Motor OS is a microkernel-based operating system. The kernel, about 18,600 lines of no_std Rust with four syscalls, manages address spaces, threads, scheduling, capabilities, and wait/wake objects. Everything else runs in userspace: sys-io owns the VirtIO block and network devices, the journaling filesystem (Motor FS), and the networking stack (moto-netstack); sys-init starts services; sys-tty drives the serial console; strobe collects logs and metrics; dns-resolver resolves names; russhd serves SSH. A per-process runtime object, rt.vdso, implements the system interface that Rust's standard library calls through the small moto-rt crate.

What works today:

Status

Motor OS is approaching beta quality. Its development started in 2021, and in 2026 it went through weeks of systematic AI-assisted review and hardening, of the networking stack in particular. Networking is considered ready for production use within its supported feature set; the rest of the system is exercised daily by the full test suite, by long soak runs, and by the website, which is served from Motor OS VMs. There has been no independent security audit yet.

Building, running, developing

See docs/build.md for the build instructions, docs/tools.md for the VM scripts and the tools inside the VM, docs/toolchain.md for how the toolchain is versioned and updated, and docs/recipes/index.md for examples. The website covers all of this in more detail, including the toolchains and Lorry.

motor-os (moturus/motor-os)

Searching Database…

这是什么?Motor OS 是一个为云计算打造的简单、快速、安全的操作系统。它面向虚拟化工作负载——网页服务、无服务器计算和边缘缓存——并且从内核到 shell 全部用 Rust 编写。
为什么要在虚拟机里用它,而不是用 Linux?Linux 是为物理机优化的,在虚拟机里它会和宿主机重复缓存和调度。Motor OS 从一开始就是为虚拟机设计的:只用 VirtIO 驱动、采用微内核,配置直接内置在镜像里。
我怎么把它跑起来?从源码构建——说明在 docs/build.md 里——然后在 QEMU、Cloud Hypervisor 或 Firecracker 下以 KVM 客户机的形式启动镜像。motor-os.org 网站对架构和工具有更深入的介绍。
宿主机上需要什么才能运行它?一台支持 KVM 的 x86-64 机器:Motor OS 只能作为 KVM 客户机运行。磁盘和网络都靠 VirtIO,所以不需要其他硬件驱动。
它可以直接用于生产环境吗?它已接近 beta 水准。在其支持的功能范围内,网络部分被认为可用于生产环境,该网站本身也是由 Motor OS 虚拟机提供服务的,但目前还没有做过独立的安全审计。
为什么 Motor OS 没有 fork、信号和用户?出于安全考虑,进程模型刻意做得很小:每个进程带有一个不可变的能力字,由它派生出三种角色——System、Interactive 和 None——并以此决定文件系统权限。服务、网络和权限都在镜像自带的几个配置文件里声明。
它启动有多快?README 里标称大约 100 毫秒,实测 MBR(QEMU)和 PVH(Cloud Hypervisor、Firecracker)启动约为 200 毫秒。快速启动是为云工作负载设定的明确设计目标。
它的网络协议栈能做什么?支持 IPv4 和 IPv6、DHCPv4、TCP(带 CUBIC、SACK、RACK-TLP 和 SYN cookies),以及 UDP 和 ICMP,宿主机到客户机速度约 10 Gbps。它是 README 中唯一被称为可投入生产的子系统。
Creator
moturus
Size
20.2 MB
Stars
1.1K
Updated
CommitOct 13
Age
2y
Commits · 90 Days