TemplatesSpeed & Workflows · 4 min read
Ubuntu 24.04 Rootfs, Toolchains & Auto-Template Resolution
Every sandbox launches a clean, deterministic Ubuntu 24.04 image built reproducibly with pinned Kata Linux kernels verified via sha256.
- Guest OS
- Ubuntu 24.04 LTS ext4 rootfs
- Kernel source
- fetch-kernel.sh (sha256 verified)
- Artifacts dir
- _out/images/ (git-ignored)
Build and register base images cleanly
make kernel # Fetches vmlinux-<arch> + verifies checksum
make rootfs # Builds base-rootfs-<arch>.ext4
./_out/bin/sandboxd install --artifacts _out
./_out/bin/sandboxctl templatesKey Engineering Points · One-Way Workspace Sync, 3-Way Apply & Undo
All 10 key points →- 1Host folders are never shared or mounted into guest microVMs — virtio-fs and 9p mounts are intentionally disabled.
- 2Workspace synchronization moves strictly one way (host -> VM) over explicit AF_VSOCK tar streams checked by guest/files.
- 3Running rm -rf /workspace inside a sandbox has zero effect on the developer's repository on disk.
- 4Before every sandbox_exec, incremental host file changes delta-sync automatically into guest /workspace.
- 5Diff previews compare VM edits cleanly against repository git HEAD without mutating host git refs, index, or checked-out branches.
- 6Applying approved patches uses temporary git merge-file 3-way merges rather than blind file overwrites.
Determinism Across macOS, Linux, and Windows
All three host operating systems share the exact Ubuntu 24.04 guest environment and PID 1 agent binary, ensuring tests behave identically whether launched on an M4 MacBook or Windows WSL2.
Auto-Detection & Custom Toolchain Snapshots
Setting template='auto' automatically selects or warms matching snapshots for Node, Go, Python, or system toolchains cleanly.
Inspect this architecture live in 3D
Step through MCP ingress, Ghost Secrets, CoW blades, and run sandboxctl commands interactively in your browser.
Frequently Asked Questions
Everything lands in _out/images/ (ignored cleanly in .gitignore) and installs into daemon storage when running sandboxd install --artifacts _out.
#Ubuntu 24.04 Firecracker rootfs#sha256 pinned Linux kernel microVM#build-rootfs.sh Kagex#template=auto AI sandbox#reproducible ext4 microVM image