smolvm's and Docker's base start from Ubuntu's container image by a digest pinned in internal/ubuntu (ContainerDigest), not the tag's digest looked up at build time. base's key hashes it (each backend's KeyFiles), and base's record names it. The image is never newer than assets/layers/base.sh's snapshot: an image with newer packages leaves apt unable to install what depends on their exact versions (the docker layer's docker-ce, through systemd's libsystemd0). - internal/ubuntu: ContainerRepo, ContainerDigest, ContainerRef, ContainerOrigin; the backends' Digest fields and UbuntuImage go. - base.sh: apt_snapshot 20261026T000000Z, with the image's digest sha256:19fcd1bf268f (built 2026-10-25). - scripts/bump.sh: apt moves the snapshot and the image's digest together (the index's digest hashed from what the registry sent), and refuses an image built after the snapshot; bump.txtar covers both. - tests/e2e.sh: timings per selection and Docker engines, so an --engine linux run isn't compared with one that included Desktop; the Linux engine's run pulls the pinned Ubuntu image before recording what Docker has without the sandbox's label; base's records are checked against the pin; smolvm's TSI check takes any of this machine's resolvers; the from section allows devvm's labelled VM listing. - docs: smolvm, Docker, images, maintaining, contributing; design.md's smolvm notes describe the reviewed emulations as they are. Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm
Create an isolated VM in any project folder with everything needed for you or an agent to start coding.
cd ~/some-project
devvm
devvm detects the project's toolchain, creates a VM from a cached image, mounts only the project folder, and opens a shell at the same path. Toolchains and coding agents are shared read-only between VMs, network access goes through an allowlist enforced on the host, and API keys stay on the host.
Quickstart
devvm runs on macOS and Linux, with Lima 2.0 or newer. Install it with Homebrew (brew install w3cj/tap/devvm) or the install script, which offers to install what's missing (Installing). devvm doctor checks what's missing and how to get it.
$ cd ~/some-project
$ devvm --network-policy base
==> building image base (e9f517dddef1)
a few minutes, and Ubuntu's cloud image to download the first time
(details: ~/.local/share/devvm/logs/runs/20261024-090616-83541.log)
==> image base ready
==> creating devvm-some-project-71a99b1076d92c from base
==> starting devvm-some-project-71a99b1076d92c
Then you're in a shell in the VM, in ~/some-project. The first VM builds the base image. Later VMs are copies of it and start in seconds. With --network-policy the VM reaches only an allowlist of hosts, through a proxy on your machine (network policy); without a flag devvm asks.
Docs
w3cj.github.io/devvm, from docs/: commands, the security model. Building, testing and writing docs: Contributing.