Rethinking operating systemsArtificially generated
Artificially generatedArtificially generatedArticle 50 of the AI Act requires artificially generated image, audio and video content to be marked as such, detectably and machine-readably. The symbol is the European Commission's official base icon. Using it is voluntary, the marking duty is not.Machine-generated: Text · Image. With human direction.McGrinsey Living Intelligence SystemsMcGrinsey Living Intelligence SystemsLI: Living intelligence of every kind. McGrinsey combines conventional intelligence and novel intelligence into living intelligence systems. These symbiotic systems of machine and human intelligence work together to supply the finest distillates of insight, for every intelligence.
Software · Operating systems · 30 November 2026

Rethinking operating systems

Your own operating system used to be a project for years. Today it is a weekend with a coding agent. What you need to know, what others have already built and where the limits are.

An operating system is the layer between the hardware and everything that runs on it. Since 1956 that layer has kept growing. Now something new is happening: agents write kernels. A single developer used a coding agent to build, in 11 days, a kernel that boots Rocky Linux 10 up to systemd. At the same time agents are getting their own computers, their own VMs and maybe soon their own operating systems. This piece explains the basics, the history and the tools, and gives you five prompts for your first own OS.

01 · What an operating system does

Three jobs. Everything else is accessories.

An operating system sits between the hardware and the programs. At its core, the kernel, it does three things.

Processor management. The scheduler decides which program gets CPU time and when. A timer interrupts the processor many times per second, the kernel saves the state of the running program and hands the CPU to the next one. That is why everything seems to run at once.

Memory management. Every program gets its own virtual address space. The hardware translates those addresses into real memory addresses through page tables. This keeps programs apart: a crash in one does not take the others down.

Input and output. Keyboard, screen, disk, network. Drivers talk to the hardware, and the kernel offers programs uniform interfaces such as files and sockets. Programs ask through system calls instead of touching the hardware themselves.

Linux, Windows and macOS solve these three jobs. On top come file systems, permissions, a network stack, graphics and millions of lines of drivers. Your own OS needs none of that. It is enough if it boots and does one thing well.

02 · Seventy years in fourteen steps

From a stack of punched cards to the microVM.

YearSystemWhat was new
1956GM-NAA I/OBatch processing on the IBM 704. One job after another without a human switching in between. [1]
1961CTSS, MITTime-sharing. Several people work on one computer at the same time. [2]
from 1965MulticsMIT, General Electric and Bell Labs build a large, secure multi-user system. Many of its ideas survive today. [3]
1969Unix, Bell LabsKen Thompson and Dennis Ritchie build a small system on a PDP-7. Later rewritten in C and therefore portable. [4]
1974CP/MGary Kildall brings an operating system to microcomputers. [5]
1981MS-DOSShips with the IBM PC and makes Microsoft big. [6]
1984MacintoshA graphical interface with a mouse for the mass market. [7]
1985Windows 1.0A graphical interface on top of MS-DOS. [8]
1991LinuxLinus Torvalds announces a hobby project on 25 August. Today it runs most of the world's servers. [9]
2003XenA free hypervisor from Cambridge. Many operating systems share one machine. [12]
2006, 2007EC2 and KVMAmazon rents out virtual machines. Half a year later KVM lands in the Linux kernel. [13] [14]
2007, 2008iPhone OS and AndroidThe operating system moves into your pocket. [10] [11]
2013Unikernels, MirageOSProgram and operating system merge into one small image that runs directly on the hypervisor. [15]
2018FirecrackerAWS releases its microVM monitor. A VM boots in under 125 milliseconds. [16] [17]

The line behind it: first people shared a computer, then programs, then whole operating systems. With every step the unit that gets its own computer became smaller. Today that unit is often a single agent.

03 · What others have built

You do not start from zero. Others have already drawn the map.

Writing an OS in Rust by Philipp Oppermann is the best way in. The series goes from a freestanding Rust program without the standard library through screen output, tests, interrupts and paging up to async/await in the kernel. Every part contains the full code. [18]

The OSDev wiki is the scene's reference: boot process, interrupt controllers, PCI, file systems, all with the traps others have already fallen into. [19]

Redox is a Unix-like operating system in Rust with a microkernel. Drivers run as normal programs, not in the kernel. The project has been going since 2015 and is at version 0.9.0. [20]

SerenityOS started in 2018 as a graphical Unix-like system with the look of the late nineties. Everything is built in-house, from the kernel to the browser. [21]

TempleOS is the extreme: Terry A. Davis built it alone over years, with his own programming language HolyC, his own compiler and his own graphics. It shows how far one person can get. [22]

Theseus is a research OS in Rust, presented at OSDI 2020. It asks how an operating system can organize its state so that parts can be swapped while it runs. [23]

Hubris from Oxide is a small operating system for microcontrollers, announced in November 2021. It isolates components from each other, restarts crashed drivers and deliberately leaves out much of what large systems have. [24]

Unikraft and MirageOS take the unikernel path: you do not build an operating system and a program on top, but a single image that contains exactly what your program needs. [25] [26]

04 · The smallest useful kernel

Boot, show text, echo keys, serve a web page. That is enough as proof.

A good first goal is a Rust kernel for x86_64 that shows text on the screen, echoes keyboard input and serves a small web page. No Linux underneath, no init system, no package manager, no shell. Just enough to boot and to answer.

You need four building blocks. A bootloader that loads your kernel, for example the bootloader crate from the rust-osdev project, which handles BIOS and UEFI. [45] An interrupt table, so that timer and keyboard reach the processor. A network driver for the virtual card, on VMs almost always virtio-net, for example with the virtio-drivers crate. [46] And a TCP/IP stack without the standard library, such as smoltcp. [47] You test in QEMU, a free emulator that gives you a complete virtual machine on your laptop. [48]

A kernel that boots and answers on port 80 is not an operating system for everyone. But it belongs to nobody but you.

05 · The VM as a bare machine

The VPS provider gives you CPU, memory, disk. What boots on it is your call.

A hypervisor is the software that lets several operating systems run on one machine. Type 1 sits directly on the hardware, such as Xen. Type 2 runs as a program on an existing operating system, such as VirtualBox. [30] KVM turns the Linux kernel itself into a hypervisor and is usually counted as type 1. KVM has been in the kernel since Linux 2.6.20 of 5 February 2007, so for almost twenty years. [14] [31]

Does that make KVM safe? It is heavily reviewed and widely used. That is not a guarantee. Escapes from a VM are rare but documented. A well-known one is VENOM from 2015: a bug in QEMU's emulated floppy controller, so in the device emulation next to KVM. [32] The weak spot is often not the core of the hypervisor but the devices it emulates.

Take Hetzner as an example. Its cloud servers run on KVM, with network and disk over virtio. [27] You cannot upload your own ISO image directly. You send Hetzner a direct download link through a support ticket, Hetzner adds the image to your account, and you mount it in the Console and boot from it. The architecture has to match, x86 or Arm64. [28] If your kernel has a network stack, you have to set up the network yourself, and Hetzner has a separate guide for manual installations. [29]

Your own kernel then skips the Linux that Hetzner would otherwise preinstall. Whether your VM boots via BIOS or UEFI and which devices it sees is best checked first with a small test ISO.

06 · What the provider sees

The host sees your traffic. By its own account it does not look into your memory.

Hetzner writes that the graphs in its Console only show data the host can read without access to your server, such as CPU load and network traffic. There is no RAM graph, because Hetzner would have to install software inside your server, and they do not. [28] On top come snapshots, backups and a VNC console that shows your screen as if you were sitting in front of it. [28]

Technically a hypervisor has access to its guests' memory. It manages that memory, after all. Whether a provider ever uses that access is something you cannot check from outside. You rely on statements, contracts and law, not on technology. If you want to rule it out technically, you need confidential VMs whose memory the processor encrypts against the host, such as AMD SEV. [33]

Two statements from the brief for this article we could not back up: that a provider notices anomalies in a VM immediately and kills the instance, and that a look into memory would have no legal basis at all. Both may be plausible. We cannot prove either, so they appear here only as an open question.

07 · Simulator versus the real thing

On a VPS your code runs on real silicon. The knobs belong to the host.

A correction first: on a KVM server your instructions are not emulated. They run directly on the real processor, with hardware virtualization. What is emulated is mainly the devices: network card, disk, screen. A real simulator is QEMU without KVM: there the Tiny Code Generator translates every instruction in software, and timing measurements say almost nothing about real hardware. [34]

Still, a VPS is no lab for hardware experiments. BIOS, clock, voltage and microcode belong to the host. Your measurements share caches with other people's VMs and are noisy accordingly. That caches can leak across VM boundaries was shown by Foreshadow-NG in 2018. [35]

On your own hardware with free access to the BIOS it looks different. You can measure timing side channels, push cache behavior and play with voltage and clock. Known cases show this has real effects: Spectre used cache timing in 2018 to read memory a program must not read. [36] Plundervolt lowered the voltage of an Intel processor from software in 2019 and broke the SGX enclave with it. [37]

Our view: if you want to use AI to find new tricks at the hardware level, you need real silicon, ideally local. A VPS is the wrong stage for that.

08 · Agents write kernels

What was a life's work two years ago is now a one-month experiment.

This year kernels have appeared that were written almost entirely by coding agents. Three examples.

oxidenix is a Unix-like x86_64 kernel in Rust. According to its README, Claude in Claude Code wrote every line, and the human only set goals and tested in QEMU. It is a microkernel and runs an unmodified GNU Bash 5.3 and BusyBox. [38]

Ginux comes from Gregory Kurtzer, founder of CentOS and Rocky Linux. In 11 days a single, continuously running Codex task wrote about 139,000 lines in more than 1,000 commits. The kernel speaks the Linux ABI and boots Rocky Linux 10 up to systemd. So far it runs only in QEMU, without real hardware and without an independent security audit. [39] [40]

Ferrix is built by a fleet of Claude Code sessions, and one person decides as the customer what gets built. According to its site it has more than 4,200 commits and more than 1.2 million lines of Rust since 11 September 2026, runs Chrome, rustc, git and Steam, and calls itself experimental. [41]

All these numbers are the projects' own. What they share is the pattern: the human sets goal, architecture and acceptance. The agent writes, boots, measures, corrects. The loop runs in QEMU, often for days. Once you have seen that, you understand why your own operating system no longer has to be a monster project.

09 · Agents get their own computers

One agent, one computer. The operating system becomes its body.

The other direction: agents get machines of their own. AgentVPS turns your VPS into a workplace for an agent with desktop, browser, terminal and files, reached over MCP. [42] OpenTeam gives every bot its own Linux desktop, up to 100 in one Docker container. That is a container, not a VM of its own, and the desktops share the kernel. [43] Maritime gives every agent its own Firecracker microVM with its own kernel. [44]

One number from the brief needs correcting: the 125 milliseconds are the cold boot that Firecracker itself states for a new microVM. [16] Maritime measures a median of 0.6 seconds to wake a sleeping VM, and 1.5 seconds until the agent's services answer. [44]

So far all these machines run standard Linux. The next step is obvious: an agent that knows its computer could also tailor its operating system to its task. How agents with their own body, their own channels and their own money talk to each other is covered in our piece Global Agent Networks Beyond Standards. [49]

10 · Your first OS in five prompts

Give them to a coding agent. One after the other.

These prompts work with any coding agent that may run commands. Work in an empty folder under Git, test everything in QEMU and let the agent commit after every step. Read what it writes. You learn more when every file gets explained to you.

Prompt 1: boot and say hello.

Create a new Rust project for an x86_64 kernel without the standard
library (no_std, no_main). Follow Philipp Oppermann's series
"Writing an OS in Rust" and use the bootloader crate. On start the
kernel should show "Hello" in yellow on black and then wait in a
loop. Give me the build command and the QEMU command to run it.
Explain every file in two sentences.

Prompt 2: output and tests.

Add serial output over COM1 so I can see logs in my terminal. Set up
tests that run in QEMU and then exit QEMU with an exit code
(isa-debug-exit). Write a first test that checks that screen output
works. Run the tests and show me the result.

Prompt 3: keyboard echo.

Set up an interrupt descriptor table (IDT), initialize the interrupt
controller and handle timer and keyboard interrupts. Translate PS/2
keyboard scancodes into characters and print every typed character
on the screen. Backspace should delete one character. Catch double
faults so the kernel does not silently reboot.

Prompt 4: memory.

Set up paging and a frame allocator based on the bootloader's memory
map. Build a heap allocator on top so that Vec, String and Box work
in the kernel. Write tests with many small and a few large
allocations and run them in QEMU.

Prompt 5: a web page on port 80.

Find the virtio-net card on the PCI bus and attach it with the
virtio-drivers crate. Use smoltcp as the TCP/IP stack, get an
address via DHCP and serve a small HTML page on port 80. Start QEMU
with
-netdev user,id=n0,hostfwd=tcp::8080-:80 -device virtio-net-pci,netdev=n0
and check with curl http://localhost:8080 that the page comes back.

Once this runs in QEMU, you can have the agent build an ISO image and boot it on a VM. Expect the way from QEMU to a cloud VM to take a few more rounds: different firmware, different devices, a different network.

11 · Open questions

The question is no longer whether you can build your own OS.

How safe is a kernel that an agent writes in eleven days and that no independent reviewer has read? Who maintains it in two years? Does a tailored operating system really give an agent more than a slim Linux in a microVM, or is it mostly a beautiful experiment? How much should a provider disclose about what it can see on its hypervisors? And what does an agent do with an operating system nobody else has? Operating systems were long a topic for hackers and researchers. Now they are becoming a building block of agent infrastructure. The interesting question is what you build with it.

12 · Fact table

What is proven, what a project says about itself, what is our view.

ClaimBasketSource
KVM has been in the kernel since Linux 2.6.20 of 5 February 2007.FactKernelnewbies [14]. The brief said "hardened for twenty years"; precisely it is almost twenty years in the kernel.
Escaping a VM is extremely hard.Our viewRare but documented, for example VENOM in 2015 [32].
The provider notices anomalies immediately and kills the instance.Not provenNo source found. In the text as an open question.
Hetzner sees CPU and network traffic from the host but installs no software inside the server, hence no RAM graph.Fact, own statementHetzner Docs [28]
The provider does not look into memory in normal operation.Own statement, not verifiableTechnically possible. Only confidential VMs such as AMD SEV protect against it [33].
A custom ISO at Hetzner via support ticket with a direct download link.FactHetzner Docs [28]
Hetzner Cloud uses KVM and virtio for network and disk.Fact, own statementHetzner Docs [27]
On a VPS you only control emulated registers.CorrectedWith KVM instructions run directly on the CPU. Mainly devices are emulated. Pure emulation is QEMU TCG [34].
Firecracker boots a microVM in under 125 ms.Fact, vendor statementFirecracker [16]. This is the cold boot, not Maritime's wake time.
Maritime: median wake 0.6 s, services answer after 1.5 s.Own statementMaritime [44], one host in Germany, September 2026.
OpenTeam: up to 100 Linux desktops in one Docker container.Own statementOpenTeam [43]
Ginux: 11 days, about 139,000 lines, boots Rocky Linux 10 up to systemd, QEMU only.Own statement, reportedIt's FOSS [39], repo [40]
Ferrix: more than 4,200 commits, more than 1.2 million lines of Rust.Own statementProject site [41]
Hardware tricks need real silicon.Our viewBased on Spectre [36], Plundervolt [37], Foreshadow [35].
13 · Sources
  1. [1] GM-NAA I/O
    Wikipedia. Batch processing system for the IBM 704, 1956, by General Motors and North American Aviation.
    https://en.wikipedia.org/wiki/GM-NAA_I/O
  2. [2] Compatible Time-Sharing System
    Wikipedia. MIT, first demonstrated in November 1961.
    https://en.wikipedia.org/wiki/Compatible_Time-Sharing_System
  3. [3] Multics History
    multicians.org. MIT, General Electric and Bell Labs, from 1965.
    https://multicians.org/history.html
  4. [4] Dennis M. Ritchie, The Evolution of the Unix Time-sharing System
    Bell Labs. Unix begins in 1969 on a PDP-7.
    https://www.nokia.com/bell-labs/about/dennis-m-ritchie/hist.html
  5. [5] CP/M
    Wikipedia. Gary Kildall, 1974, for Intel 8080 microcomputers.
    https://en.wikipedia.org/wiki/CP/M
  6. [6] MS-DOS
    Wikipedia. 1981, shipped with the IBM PC as PC DOS.
    https://en.wikipedia.org/wiki/MS-DOS
  7. [7] Classic Mac OS
    Wikipedia. Macintosh system software, 24 January 1984.
    https://en.wikipedia.org/wiki/Classic_Mac_OS
  8. [8] Windows 1.0
    Wikipedia. 20 November 1985.
    https://en.wikipedia.org/wiki/Windows_1.0
  9. [9] History of Linux
    Wikipedia. Announced by Linus Torvalds on 25 August 1991.
    https://en.wikipedia.org/wiki/History_of_Linux
  10. [10] iPhone OS 1
    Wikipedia. 29 June 2007.
    https://en.wikipedia.org/wiki/IPhone_OS_1
  11. [11] Android version history
    Wikipedia. Android 1.0, 23 September 2008.
    https://en.wikipedia.org/wiki/Android_version_history
  12. [12] Barham et al., Xen and the Art of Virtualization
    SOSP 2003, University of Cambridge.
    https://www.cl.cam.ac.uk/research/srg/netos/papers/2003-xensosp.pdf
  13. [13] AWS, Amazon EC2 Beta
    AWS blog, August 2006.
    https://aws.amazon.com/blogs/aws/amazon_ec2_beta/
  14. [14] Kernelnewbies, Linux 2.6.20
    Released 5 February 2007, with KVM.
    https://kernelnewbies.org/Linux_2_6_20
  15. [15] Madhavapeddy et al., Unikernels: Library Operating Systems for the Cloud
    ASPLOS 2013. The MirageOS paper.
    https://anil.recoil.org/papers/2013-asplos-mirage.pdf
  16. [16] Firecracker
    Project site. Boot under 125 ms, under 5 MiB overhead per VM, up to 150 microVMs per second per host.
    https://firecracker-microvm.github.io/
  17. [17] AWS, Firecracker: Lightweight Virtualization for Serverless Computing
    AWS open source blog, November 2018.
    https://aws.amazon.com/blogs/opensource/firecracker-open-source-secure-fast-microvm-serverless/
  18. [18] Philipp Oppermann, Writing an OS in Rust
    Blog series from a freestanding Rust binary to async/await.
    https://os.phil-opp.com/
  19. [19] OSDev Wiki
    Community wiki for operating system development.
    https://wiki.osdev.org/
  20. [20] Redox OS
    Unix-like microkernel system in Rust, drivers in user space. Version 0.9.0.
    https://www.redox-os.org/
  21. [21] SerenityOS
    Graphical Unix-like system, first release 10 October 2018.
    https://serenityos.org/
  22. [22] TempleOS
    Wikipedia. Terry A. Davis, own language HolyC.
    https://en.wikipedia.org/wiki/TempleOS
  23. [23] Boos et al., Theseus: an Experiment in Operating System Structure and State Management
    OSDI 2020.
    https://www.usenix.org/conference/osdi20/presentation/boos
  24. [24] Oxide, Hubris and Humility
    Bryan Cantrill, 30 November 2021.
    https://oxide.computer/blog/hubris-and-humility
  25. [25] Unikraft
    Library OS and tooling for unikernels.
    https://unikraft.org/
  26. [26] MirageOS
    Library OS in OCaml, builds unikernels for Xen and KVM.
    https://mirage.io/
  27. [27] Hetzner Docs, Cloud FAQ: technical details
    KVM as hypervisor, virtio for network and disk.
    https://docs.hetzner.com/cloud/technical-details/faq/
  28. [28] Hetzner Docs, Cloud Servers FAQ
    Custom ISO via support ticket, VNC console, why there is no RAM graph.
    https://docs.hetzner.com/cloud/servers/faq/
  29. [29] Hetzner Docs, Cloud ISO installation: configure gateway
    Setting up the network by hand after an ISO install.
    https://docs.hetzner.com/cloud/servers/iso-installation-gateway/
  30. [30] Hypervisor
    Wikipedia. Type 1 and type 2.
    https://en.wikipedia.org/wiki/Hypervisor
  31. [31] Linux kernel docs, KVM
    Kernel Virtual Machine, official documentation.
    https://docs.kernel.org/virt/kvm/index.html
  32. [32] NVD, CVE-2015-3456 (VENOM)
    Escape through QEMU's emulated floppy controller.
    https://nvd.nist.gov/vuln/detail/CVE-2015-3456
  33. [33] AMD Secure Encrypted Virtualization
    Encrypted VM memory against the host.
    https://www.amd.com/en/developer/sev.html
  34. [34] QEMU, translator internals (TCG)
    Pure emulation without hardware virtualization.
    https://www.qemu.org/docs/master/devel/tcg.html
  35. [35] Foreshadow
    2018. The Foreshadow-NG variant reads data across VM boundaries from the L1 cache.
    https://foreshadowattack.eu/
  36. [36] Spectre and Meltdown
    2018. Side channel via cache timing.
    https://spectreattack.com/
  37. [37] Plundervolt
    Murdock et al., IEEE S&P 2020. Undervolting from software breaks Intel SGX.
    https://plundervolt.com/
  38. [38] oxidenix
    GitHub. Unix-like x86_64 kernel in Rust, every line by Claude in Claude Code.
    https://github.com/devfbe/oxidenix
  39. [39] It's FOSS, Rocky Linux Creator Built a New Not Linux Kernel in 11 Days Using AI
    Abhishek Prakash, 27 October 2026.
    https://itsfoss.com/news/ginux/
  40. [40] Ginux
    GitHub. Gregory Kurtzer.
    https://github.com/gmkurtzer/ginux/
  41. [41] Ferrix
    Project site. Rust operating system written by Claude Code agents.
    https://ferrix-os.org/
  42. [42] AgentVPS
    GitHub. Desktop, browser, terminal for an agent on your VPS, via MCP.
    https://github.com/agentsdance/agentvps
  43. [43] OpenTeam, Giving AI agents their own computer
    One Linux desktop per bot, up to 100 in one Docker container.
    https://openteam.so/blog/ai-agent-own-computer
  44. [44] Maritime, Every AI agent gets its own Firecracker VM
    Medians from its own logs, 1 to 4 September 2026.
    https://maritime.sh/firecracker
  45. [45] rust-osdev/bootloader
    Bootloader crate for Rust kernels, BIOS and UEFI.
    https://github.com/rust-osdev/bootloader
  46. [46] virtio-drivers
    Rust crate with virtio drivers, including network.
    https://docs.rs/virtio-drivers/latest/virtio_drivers/
  47. [47] smoltcp
    TCP/IP stack in Rust without the standard library.
    https://github.com/smoltcp-rs/smoltcp
  48. [48] QEMU
    Emulator and virtualizer.
    https://www.qemu.org/
  49. [49] McGrinsey, Global Agent Networks Beyond Standards
    Agents, part 6. Own bodies, own channels, own money for agents.
    https://mcgrinsey.com/magazin/global-agent-networks-beyond-standards-en/

Cut-off: 30 November 2026. Commits, lines and measurements are the projects' own figures as of that day. This text was written with AI assistance and editorially checked.