nos_
ENRU

How-to guides

Step-by-step guides: build nos, run it, connect to it, debug it, install it on a server, boot Linux under its hypervisor, make a VM from a cloud image, write a module, and run the tests.

  1. 01Build nosBuild the kernel, its modules and the boot images for x86-64 and arm64, in Docker on macOS or natively on Linux with the pinned Rust nightly.
  2. 02Run nos in QEMUBoot nos in QEMU on x86-64 (from the ISO, from a disk image or under KVM) and on arm64 (with HVF on Apple Silicon), and tell a good boot from a bad one.
  3. 03Connect to a running nosReach the kernel's shell over the serial console, the UDP shell or SSH, and stream the kernel log to your machine with netconsole.
  4. 04Debug nos with GDBAttach GDB to QEMU, read a panic and its backtrace, raise trace levels, bisect a failing boot, and get the log off a machine with no serial port.
  5. 05Install nos on a dedicated serverPut nos on a whole disk of a dedicated server with one command in the provider's rescue system or from the installer ISO, or next to the server's Linux on a spare partition, and log in over SSH.
  6. 06Boot a Linux guest under the nos hypervisorBuild a small Linux kernel and a BusyBox initramfs, load hv.ko into nos, and run Linux guests: type commands into them, network them, stop them.
  7. 07Make a VM from a cloud imageGive nos a distribution's cloud image by its URL and get a VM that boots its own kernel, is set up by cloud-init with your SSH key, and starts again after nos reboots.
  8. 08Write a loadable kernel module in RustCreate a nos kernel module in Rust with kmod and kcore, give it a shell command, build the .ko and load it into a running kernel.
  9. 09Run the gates: test a change the way nos doesWhat to run after changing nos, and how to read the result: boot self-tests, smoke boots on both architectures, UB-checked builds, subsystem gates, fuzzers.