MMotor OS
Getting started

Documentation

These pages describe Motor OS as it is today. The source of truth is the repository, and most of what is here is also in its docs/ directory and in the README files next to the code.

Getting started

What is Motor OS

The shape of the system and what works today.

Why Motor OS

The reasoning behind a new OS for virtual machines.

Building Motor OS

Installing the toolchain, the one-script image build, make, and the test suites.

Running Motor OS

The four images, the VM scripts, the console, and SSH access.

Imager

Create images, change guest permissions, resize the data partition, and replace SSH and TLS credentials.

System

Architecture

The kernel, sys-io, the services, and the per-process runtime.

Processes and roles

The three roles, spawning, detached processes, and what replaces users.

Capabilities

Every capability bit, how children get them, network and write access, named IPC services, and rush and rmux.

Memory

Pages and huge pages, the allocator, and low-memory admission control.

Filesystem

Motor FS, the image layout, and per-role permissions.

Networking

Configuration, the stack's features, limits, and diagnostics.

DNS resolver

How names are resolved and validated.

Terminals

Terminal programs without a pty: size, Ctrl+C, and redirection.

Logs and diagnostics

The console, service logs, metrics, and stack dumps.

Userspace

Commands

Everything in /system/bin and /user/bin.

rush

The shell: what it supports and where it differs.

rmux

The terminal multiplexer and its keys.

Editors

red, a vi-like editor, and kibim.

Developer image

Lorry, Gears, mdbg, the test suites, and the native toolchain.

Developing for Motor OS

Toolchains

The cross-compiling toolchain on Linux, the native toolchain on the developer image, and the workflow for each.

Rust on Motor OS

The target, what std supports, ported crates, and porting notes.

C/C++ on Motor OS

A C library and native Clang/LLVM: what is supported, how to build, and Lua.

WebAssembly

Javy, Wasmi, their installed support files, and a JavaScript example to compile and run in the VM.

Lorry

A smaller, stricter Cargo replacement for security-sensitive builds: the same Cargo.toml and Cargo.lock and byte-identical binaries, but offline, with every dependency fetched once, checked, approved, and recorded before it is built.

gix

A small Git client: clone, fetch, branch, commit, merge, and push over SSH, on the same repository files as Git.

Hello Motor OS

Compile a small web server and run it in a Motor OS VM.

Profiling

Flame graphs from a Motor OS binary with the tracing crate.