CNN TürkİSTANBUL’DA YARIN OKULLAR TATİL Mİ? 30 Kasım İstanbul Kar Yağışı Okullar Tatil Mi? Gözler İstanbul ValiliğindePunchPHOTOS: Akpabio, Barau, Ganduje attend Adebule’s burial in LagosInquirerLa Union gun owner yields 2 pistols with expired registrationsThe Jerusalem PostHamas official accuses Mansour Abbas of 'betraying God and his people' over terror labelDaily MaverickSILENCE IS DEAFENING OP-ED: Guns are killing local women — so why ignore them in the femicide fight?Sky TG24Israele, Washington Post: "L'Iran ha usato Starlink per attaccare gli obiettivi Usa". LIVEScreen Rant7 Most Iconic Avengers Weapons Stronger Than Captain America’s ShieldRMF24Koniec z siedzeniem przy stole? Tłumy Polaków wybrały ten kierunek na Boże NarodzenieDigital SpyBig Little Lies-style mystery thriller with "twists to keep you guessing" available to binge-watch nowSportstarGukesh vs Sindarov Live Updates Game 5 World Chess Championship 2026: Draw most likely outcome after 21 movesStraits Times SportWorld Aquatics pulls two events from Canada over Russian and Belarusian entry curbsThe GuardianArsenal v Manchester City: Premier League – live
The Daily Newsstand · Free, Always
Sunday, November 29, 2026

You are reading Joho no Todai on KioskNews: newspapers from many countries on one stand, each linked to its original. What other papers report

Bunshin Launches: Forking Running Linux VMs to Create AI Agent Desktops in a Tenth of a Second

Translate

Bunshin's design comes down to one idea: clone an entire VM that is already running instead of booting a new one.

Developer Vincenzo Fornaro released Bunshin on November 29, 2026 UTC. At its core is a microVM monitor that runs on KVM, the Linux kernel's Kernel-based Virtual Machine facility. The engine is written in about 2,000 lines of C and has no external dependencies. The rest uses Go and its standard library.

The system boots a template VM in advance and keeps it ready with a browser and window manager already running. When a new desktop is needed, it clones the template's entire process using the Linux fork() system call. The child inherits the parent's address space, and copy-on-write keeps pages shared until a write gives the modified page its own copy.

No matter how many copies are made from the template, all of them continue to share unchanged pages. There is no VM startup or OS boot. Bunshin copies what is already running.

Version 0.1.0 is a prerelease under the Apache License 2.0. Fornaro describes it as experimental. Development and testing took place on one PC, and no outside party has reviewed its security.

Why fork() takes only milliseconds

Cloning a VM requires carrying over three kinds of state: memory, device state, and the state held by the host kernel for that VM. Bunshin's design document details how it handles each one.

The fork() call takes care of memory. Guest memory lives in an anonymous private mapping in the engine process. Calling fork() gives the child access to the parent's existing pages. No physical memory is copied until a write makes a page private to that VM.

Device state lives in C structs. The serial port, virtio queue positions, and communication buffers for the agent all live in C structs inside the engine process. The call to fork() clones them with the address space, so there is no serialization or deserialization.

KVM's kernel state needs to be rebuilt. With fork(), the child inherits the parent's VM file descriptors, but it cannot use them for its own VM. Before calling fork(), the engine pauses the virtual CPUs and reads the registers, FPU and MSR state, local APIC, interrupt controller, timers, and clock from KVM. The child closes the inherited descriptors, creates a new VM on the inherited memory, and restores the captured state.

The parent VM pauses for 2 to 3 milliseconds. The child handles the remaining work, including configuring the new VM, restoring its state, and setting up sockets, while the parent is already running again.

The same design applies to disk. The engine maps the disk image and presents it to the guest as a virtio-pmem persistent memory device. The guest mounts it with DAX (Direct Access) and reads program code directly from the host page cache. The entire fleet needs only one copy of the Firefox binary in RAM. Writes go to private pages and never reach the backing file. The fork() call preserves this arrangement.

Fork-based vs. snapshot-based cloning

FeatureFork-basedSnapshot-based
Memory dump fileNot neededRequired
Snapshot generationsNot neededRequired
Limits on clone chainsDesktops already created cannot be cloned againYes
Migration to another hostUnsupportedSupported

Compared with snapshot-based VM cloning, this approach requires no memory dump file, snapshot generations, or process to maintain a frozen state. A regular desktop is cloned from the template. Each copy can run only on the source VM's host, with no way to migrate it to another machine by design.

The template VM is paused after its desktop settles. Leaving it running would lead to more writes and reduce the number of pages it shares with later copies. Cloning works the same way from a paused template.

Benchmarks and trade-offs

Fornaro measured all the performance figures on one laptop with an Intel Core i7-1355U, 12 threads, 25 GB of RAM, WSL2, and Linux kernel 6.18.

A standard Firefox desktop, based on a template with 2 GB of RAM and two CPUs, takes 60 to 110 milliseconds to create. When creating several desktops in succession, it can take up to 330 milliseconds per desktop.

A freshly created desktop uses 16 to 38 MB of private memory. After one minute, Firefox background activity raises that to 110 to 150 MB. Each desktop also accounts for about 220 MB of shared memory on a proportional basis.

A minimal configuration with just an X server and one window, using 512 MB of RAM and two CPUs, takes 32 to 39 milliseconds to create. It uses around 1 MB of private memory, showing how little overhead the engine itself adds.

Bunshin can also save desktops to a file and restore them. Saving a desktop takes 3.3 seconds, including 2.5 seconds waiting for the guest to release memory. The resulting file is 530 to 620 MB. Restoring the saved state and running a command takes 0.4 seconds.

Restoring a desktop from a file breaks memory sharing with the template. A Firefox desktop then uses about 600 MB of its own memory. The design assumes cloning with fork() as the usual workflow, with file-based saves as a fallback.

Bunshin benchmark results

MetricFirefox
Desktop
Minimal configuration
Creation (one VM)60〜110ms32〜39ms
Creation (back-to-back)Up to 330 ms per VM—
Private memory (at creation)16〜38MBAbout 1 MB
Save to file3.3 seconds45ms
Restore from file0.4 seconds37ms

※Test system: Intel Core i7-1355U, 25 GB of RAM, WSL2.The source VM pauses for 2–3 ms during cloning in both configurations.Firefox private memory rises to 110–150 MB after one minute.

The engine can also return memory freed by the guest to the host. It uses the virtio balloon's free page reporting feature. When the guest kernel reports free memory, the engine immediately returns those pages to the host with MADV_DONTNEED. It does not inflate the balloon, so the memory promised to the guest stays the same.

How agents control the desktop

Bunshin exposes 15 tools through MCP (Model Context Protocol). They can create, delete, list, start, and pause desktops, as well as capture screenshots, click, move the mouse, drag, scroll, enter text, press keys, read the pointer position, and run commands. An operation returns a screenshot and automatically resumes a paused desktop.

The in-guest agent is embedded as bytes in the engine executable and passed into the guest through initramfs at boot. It talks directly to the X11 server to capture screenshots and send input, so the guest needs no additional software. The agent and engine always use matching versions.

The bunshin connect command automatically writes configuration for major AI agents including Claude Code, Codex, Cursor, Gemini CLI, Claude Desktop, Windsurf, pi, and OpenCode. Under WSL2, it can also connect to Windows installations of apps such as Claude Desktop, Codex, and Cursor through wsl.exe. It also includes a server compatible with Cua's Cloud API, so code written for Cua Cloud works after changing environment variables.

A local web console shows every desktop's screen and CPU and memory usage in real time. An orange border marks a desktop controlled by an agent. Clicking Take Control gives the user the mouse and keyboard and blocks agent input until the user hands control back. It is meant for actions users perform themselves, such as signing in, completing a CAPTCHA, or making a payment.

The desktop image is based on Debian and includes Xvfb, openbox, tint2, and Firefox ESR. Building it requires neither root privileges nor Docker. Packages are unpacked into an ext4 file from inside the guest.

Where the sandbox helps and where it falls short

Each desktop runs as a hardware-virtualized KVM guest. The VM's basic isolation guarantee is that activity inside the guest stays there.

Bunshin adds several restrictions of its own. Before starting a VM, the engine limits its file access with Landlock and filters system calls with seccomp. Once restricted, it cannot launch programs with execve or make network connections with connect. It can open only the running VM's directory, /dev/kvm, and /dev/null. This limits the damage if someone finds a vulnerability in the engine.

The desktop has no virtual network card. Programs inside the guest reach the outside world through an HTTP proxy on the loopback address, and the proxy applies policy by hostname. Access to the host and local network is blocked by default. The setup requires no TAP device, bridge, firewall rules, or host privileges. Programs that do not use the HTTP proxy, such as SSH clients and applications using UDP, cannot reach external destinations.

By default, the desktop rejects text that looks like an API key. The text entered into it is not logged. Desktop images saved to disk can be encrypted with AES-256-GCM.

The project's security documentation acknowledges a limitation. KVM isolates the desktop, but it cannot stop an agent from following instructions it reads on a webpage in a prompt injection attack. Screenshots carry a reminder that screen content does not constitute instructions, which can reduce the risk without eliminating it. Requiring approval by site (BUNSHIN_NET=ask) and letting users intervene with Take Control are the remaining safeguards.

The engine's C code has undergone fuzz testing, sanitizer testing, and static analysis. As the security documentation notes, those checks still leave it without an independent review. It has been tested on one PC, with AMD CPUs and bare-metal Linux still untested. Because its design requires KVM on x86-64, it does not support macOS or arm64.

The sandbox walls are thick. What an agent chooses to believe inside them is a different problem.

View the original on Joho no Todai →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.