nos_
ENRU

Blog

Stories from building nos: real bugs on real hardware, the hypervisor, Rust in the kernel, and the tests that keep us honest.

RSS feed
21 min read

A real NVIDIA card inside a nos VM

A Linux VM on nos's hypervisor now drives a real NVIDIA GPU with NVIDIA's own driver and runs CUDA at full speed. How it works, what broke on the way, and what's missing.

HypervisorHardwareDriversSafetyTestingx86-64
9 min read

nos on a server with two sockets

We brought nos up on a Supermicro with two Xeons and 256 GB of RAM and taught it that memory on the other socket is slower. How the kernel finds out where its memory is, what it does about it, what we measured, and what is still missing.

MemoryHardwarePerformanceHypervisorx86-64
16 min read

Live migration: moving a running VM to another host

A running VM in a nos cluster can now move to another host without stopping. How its memory is copied while the guest keeps writing to it, how two hosts agree on which of them runs it, what happens to its network and its CPU, how we tested it, and what it can't do yet.

HypervisorStorageNetworkingSafetyTesting
14 min read

NBS: VM disks that survive a dead server

nos now keeps a VM's disk on three hosts at once. How NBS cuts a volume into chunks, what Raft keeps and what it doesn't, what happens when a host dies, and how to use it from the panel and the shell.

StorageHypervisorTestingFuzzingModules
12 min read

vnet: one private network for VMs on different servers

VMs on different hosts of a nos cluster can now share private networks. How vnet keeps its state, how packets cross between servers in a sealed UDP tunnel, public addresses, firewalls, what happens when a host fails, and how to use it.

NetworkingHypervisorSafetyTestingFuzzing
12 min read

Chasing KVM: the same Ubuntu VM under KVM and under nos

We ran one Ubuntu VM under KVM and under nos on the same server. The disk started at 1% of KVM's speed. Four days later most numbers match KVM or beat it.

HypervisorPerformanceStorageTestingx86-64
15 min read

ext4 in nos: a root that survives a power cut

New nos installs get ext4, written through its own journal: names and data, freed at scale through the orphan list, every checksum checked on every read. How it is built from three readings of one format that share no code, how it is held to e2fsck and Linux, and what the first real server and a review turned up.

StorageRustTestingFuzzingSafetyHardware
12 min read

A management panel that is a VM of the host it manages

nos has a web panel now, and none of it is in the kernel. The kernel serves a host API over mutual TLS; the panel is a Next.js application in a Debian VM the host makes for itself. How the two fit together, and the two problems the first run on a real server turned up.

HypervisorNetworkingSafetyDeploymentTesting
17 min read

Who runs next: EEVDF in nos

nos's scheduler was a round robin that walked every task and kept a woken one waiting a tick behind each busy task. The new one is EEVDF, with weights, slices and lag: the same wakeup now takes microseconds.

PerformanceSafetyDebuggingTestingFuzzingx86-64arm64
14 min read

A VM from a URL: cloud images on nos, kept in folders

hv create takes a cloud image's URL and makes a VM of it with nothing but nos: the kernel's own HTTPS download, a qcow2 converter with its own DEFLATE decoder, a cloud-init seed, and a folder that outlives a reboot.

HypervisorStorageNetworkingBootRustx86-64
14 min read

Guest networking from 5.7 seconds to 2.8

Posted interrupts, a one-shot timer, receive interrupt moderation, offloads and mapped rings, measured on bare metal, and two ideas that did not help.

HypervisorNetworkingPerformancex86-64Rust
7 min read

When a wait never ends

Task::Wait, the join every stop in nos makes, used to wait forever in silence. Now it reports who waits, for which task, and where that task is.

SafetyDebuggingHypervisorTestingx86-64arm64
12 min read

Fuzzing the kernel on the host

Four fuzzers build the kernel's own code into ordinary host programs: hypervisor, network, storage and C++. How they work and the bugs they found.

FuzzingTestingSafetyRustHypervisorNetworkingStorage
8 min read

How nos moved its layers from C++ to Rust

In two days we moved nos's block, network and filesystem layers and virtio to Rust, deleted the C++, and cut the layers' unsafe from 924 sites to 113.

RustSafetyDriversNetworkingStorageModules
8 min read

A console for a laptop with no serial port

The Dell Latitude has no serial port and no PS/2. How nos got a pixel console and a USB keyboard there, a test that types at it, and a port to Rust.

HardwareDriversRustTestingQEMUx86-64Boot
9 min read

Serving an NVMe disk over UDP with zero copies

netblk serves an NVMe disk over UDP, and the disk DMAs straight into the frame the NIC sends. How the data moves, and the two lost ticks the numbers exposed.

StorageNetworkingModulesPerformanceRustHardware
8 min read

The kernel that would not shut down

In September 2026 poweroff did nothing, hung or faulted. The last two bugs: a CPU that woke from its final halt, and a heap that unmapped live objects.

DebuggingMemoryarm64x86-64
9 min read

An SSH server in a kernel module

Two of nos's servers have no console but the network. So the kernel got an SSH server: a loadable Rust module, tested against OpenSSH's own client.

NetworkingRustModulesSafetyTesting
7 min read

The AX41 boot that said nothing

A kernel died before it could say a word, on a server whose only console is the network. Two counters on its disks and a QEMU replica showed why.

DebuggingHardwareBootQEMUx86-64
8 min read

HTTPS from inside the kernel

What it took for wget https:// to work in nos: rustls without std, a transport trait, a root store and the RTC, an entropy pool, and no SSE.

NetworkingRustSafetyx86-64Deployment
8 min read

Ten megabits on a gigabit link: bringing up the I210

The AX41's Intel I210 showed the link up, the receiver on and 255 descriptors posted, yet received nothing. Its MAC had latched 10 Mb/s; the PHY ran at 1000.

HardwareNetworkingDriversDebuggingPerformanceRust
9 min read

The barriers x86 forgave: a review of the arm64 port

A wrong memory barrier compiles to nothing on x86 and is a real bug on arm64. What a full review of the nos arm64 port found after every smoke test passed.

arm64MemoryDriversQEMUSafety