Skip to content

Virtual machines

VM images: Agent and Minimal

The two images a flockvm VM can boot: Agent (coding agent CLIs, Node 26, Playwright, toolchains), the default, and Minimal (Ubuntu 26.04 with Node.js 22).

An image is the disk a VM starts from. flockvm has two, both Ubuntu 26.04 LTS (resolute) on x86_64 with the same Linux 6.1 guest kernel built for Firecracker:

Agent (default) Minimal
Image id ubuntu-26.04-agent ubuntu-26.04
You log in as user (passwordless sudo, docker group); root works too root
Node.js 26 LTS by default, 24 and 22 through nvm 22
Coding agents Claude Code, Codex, opencode, Gemini CLI, Cursor Agent, installed, not signed in None
Toolchains Python, Go, Rust, Java, Ruby, PHP, C/C++, Docker Python 3, build-essential, Docker
Browser Playwright with Chromium, Firefox and WebKit, and a Playwright MCP server set up for every agent CLI None
Disk it needs 12 GB at least 6 GB at least

Every size has a disk of 50 GB or more, so both images fit on every size.

Pick an image

In the New VM form, section 03 Image shows one card per image. Agent is selected, with a default badge; Minimal is next to it. Each card shows the image id and who SSH logs in as (ssh user@ or ssh root@). The summary on the right repeats the choice, for example "Agent · ubuntu-26.04-agent". See Create a VM.

Use When
Agent You run a coding agent (Claude Code, Codex…), or you want the usual toolchains and a browser for screenshots without installing them.
Minimal You install your own stack, you want a small disk to start from, or your scripts expect to run as root on a bare Ubuntu.

The image is fixed for the VM's life. To switch, create a new VM with the other image and copy your work over. Custom images (your own snapshots) are not available yet.

The VM page shows the image under the size's specs, for example "Agent · ubuntu-26.04-agent" (a VM created before 2026-11-01 shows "Agent (24.04)": see VMs created on Ubuntu 24.04). Inside a VM, /etc/flock-image says which image it booted and the main versions in it:

cat /etc/flock-image

Agent image

ubuntu-26.04-agent is built for VMs where coding agents work: the tools they reach for are installed system-wide, nothing to set up. The versions below are those of the build of 2026-11-01; the agent CLIs are the latest at build time. cat /etc/flock-image shows the exact versions of your VM.

Area What is installed
Agent CLIs claude (Claude Code), codex, opencode, gemini (Gemini CLI), cursor-agent. No API keys or tokens: you sign each one in yourself.
Node.js Node.js 26.13.0 (LTS, the default node, in /usr/local), Node.js 24.22.2 and 22.23.4 in nvm, npm 11, pnpm 12.16.1, bun 1.4.4, deno 2.9.8
Python Python 3.14 (python and python3), uv 0.13.6 and uvx, pipx
Go, Rust Go 1.27.3 (/usr/local/go), Rust 1.99.1 through rustup, with rustfmt and clippy
Java OpenJDK 25 (headless), Maven 3.10.0, Gradle 9.8.2
Ruby, PHP Ruby 3.3 with bundler (gem install and bundle install need no sudo: gems go to ~/.local/share/gem), PHP 8.5 (cli, mbstring, xml, curl, zip, sqlite3, intl) with composer 2.11.1
C and C++ GCC 15, Clang 21 with lld, CMake 4.2, ninja, gdb, headers for native extensions (Python, OpenSSL, zlib, libffi, libyaml, SQLite, libpq)
Containers Docker 29 with docker buildx and docker compose, usable without sudo
Browser Playwright 1.64.1 and @playwright/test, with Chromium, Firefox and WebKit; chromium on the PATH; Noto (with emoji and CJK), Liberation and DejaVu fonts
MCP @playwright/mcp, registered as the MCP server playwright for every agent CLI
Source control git, git-lfs, gh 2.103.3
Command line rg (ripgrep), fd, jq, yq, sqlite3, psql (PostgreSQL 18 client), shellcheck, tree, tmux, htop, rsync, curl
Media and desktop ffmpeg, ImageMagick, Xvfb, xdotool, wmctrl

It also has everything in the Minimal image, except that its Node.js is 26.

The user account

You log in as user (uid 1000, home /home/user, shell bash). It has passwordless sudo and is in the docker group, so it can install packages and run containers. Coding agents run as user too: Claude Code refuses --dangerously-skip-permissions as root, and user is not root.

Your SSH key is installed for both user and root on the first boot, so ssh root@… works as well. See SSH keys.

Instructions for the agents

/etc/flock/AGENT.md describes the VM to an agent: what is installed, how to take a screenshot, the MCP server. It is copied where each CLI reads its global instructions, so agents know about it without being told:

CLI File
Claude Code ~/.claude/CLAUDE.md
Codex ~/.codex/AGENTS.md
opencode ~/.config/opencode/AGENTS.md
Gemini CLI ~/.gemini/GEMINI.md
Others ~/AGENTS.md

These files are yours: edit them, or replace them with your own instructions. For a team rollout of an agent CLI in these VMs (auth, shared settings, one VM per task), see the Codex CLI and Gemini CLI playbooks.

Playwright MCP server

Claude Code (~/.claude.json), Codex (~/.codex/config.toml), opencode, Gemini CLI and Cursor Agent all have an MCP server named playwright, for user and for root. It runs headless Chromium with an in-memory profile, so several agents can use it at once. An agent uses its browser_* tools to open pages, click and take screenshots.

claude mcp list
codex mcp list

Keep the agent CLIs up to date

The CLIs are installed system-wide, owned by root, at the version of the image's build. Claude Code's auto-updater is off (DISABLE_AUTOUPDATER=1), since it cannot update a root-owned install. Update a CLI with npm:

sudo npm i -g @anthropic-ai/claude-code@latest
sudo npm i -g @openai/codex@latest

Environment

/etc/environment sets PATH (with Go and Rust), RUSTUP_HOME, JAVA_HOME, NVM_DIR, PLAYWRIGHT_BROWSERS_PATH, NODE_PATH and DISABLE_AUTOUPDATER for every session, ssh vm 'command' included. Login and interactive shells also get ~/.local/bin, ~/go/bin, ~/.cargo/bin and the bin of your gems in PATH, and GEM_HOME for user; a non-interactive ssh vm 'command' does not have these. npm's update notices are off.

Baseline builds in the image

The tools of the Agent image are builds that run on any x86-64 CPU, such as bun's baseline build: the image was made when VMs ran on a Paris host whose CPU had no AVX2. The host's CPU (AMD Ryzen 9 9900X) has AVX2.

Minimal image

ubuntu-26.04 is a small Ubuntu with SSH, Node.js 22, Python and Docker, and you log in as root.

Area Packages
Languages Node.js 22.23.4 (official build, in /usr/local, with npm, npx and corepack), python3 (3.14), python3-venv, python3-pip
Build build-essential (gcc, g++, make), pkg-config
Containers Docker 29 (docker.io), docker buildx, docker compose
Source control git, openssh-client
Network curl, wget, ca-certificates, gnupg, iproute2, ping, dig and nslookup (bind9-dnsutils), nc (netcat-openbsd)
Files rsync, jq, zip, unzip, xz-utils, zstd, file, less
Terminal tmux, htop, vim-tiny (vi)
Debugging strace, lsof, procps, psmisc
System systemd, openssh-server, sudo, systemd-timesyncd

VMs created on Ubuntu 24.04

Until 2026-11-01 the images were Ubuntu 24.04 LTS: ubuntu-24.04-agent (Agent) and ubuntu-24.04 (Minimal). They are no longer offered, and every new VM starts from an Ubuntu 26.04 image. A VM created before keeps its own disk, so it stays on Ubuntu 24.04 and keeps working as before: start, stop, pause and resume, the same login (user on the old Agent image, root on the old Minimal), the same SSH command. The dashboard shows its image as "Agent (24.04)" or "Minimal (24.04)".

To move such a VM to Ubuntu 26.04, create a new VM and copy your work over (see Keep your setup).

Defaults of both images

  • Users: on Agent, user and root; on Minimal, root. SSH takes keys only: the passwords are locked and password logins are off.
  • Hostname: the VM's name.
  • Locale and time zone: C.UTF-8, UTC. The clock is kept in sync by systemd-timesyncd.
  • DNS: 1.1.1.1 and 8.8.8.8.
  • Disk: one ext4 filesystem on /, grown to your size's disk at every boot.
  • /tmp: on the disk, not in RAM (Ubuntu 26.04 would make it a tmpfs; both images turn that off). It is emptied at every boot and never by age, as on 24.04; /var/tmp is kept across boots. Pause and resume keep both.
  • Logs: the systemd journal keeps up to 200 MB.
  • No automatic updates: the apt daily timers are off, so nothing upgrades behind your agent's back.
  • Slim: no man pages or docs, and apt installs no recommended packages unless you ask.
  • Kernel: a Linux 6.1 kernel built for Firecracker, with what Docker needs (nftables, overlayfs, FUSE).
  • Ubuntu 26.04 base: systemd 259, OpenSSH 10.2, Python 3.14, and sudo 1.9 (the classic sudo, not sudo-rs). Most coreutils commands (ls, cat, sort…) are the Rust rewrite, uutils, as on every Ubuntu 26.04: a script that depends on an exact GNU output or option may need a change.

Install packages with apt

Both images ship without apt package lists. Run apt-get update once before your first install:

sudo apt-get update
sudo apt-get install -y redis-server

On Minimal you are root, so no sudo is needed. Add --install-recommends when a package needs its recommended dependencies.

Node.js

Node.js 26 LTS is the default node, in /usr/local/bin. Node.js 24 and 22 are already in nvm (/opt/nvm), so switching downloads nothing:

node --version      # v26.13.0
nvm use 24          # Node.js 24 in this shell
nvm use 22          # Node.js 22
nvm use system      # back to Node.js 26

nvm install adds other versions. pnpm is installed globally through npm, because Node.js 26 ships without corepack. Global installs go to /usr/local, owned by root, so they need sudo:

sudo npm i -g typescript

NODE_PATH points at the global modules, so require('playwright') works in a script without npm install.

Python

Ubuntu protects the system Python from pip install, so use a virtual environment. uv is installed on the Agent image; on Minimal, install it first or use venv:

curl -LsSf https://astral.sh/uv/install.sh | sh   # Minimal image only
. ~/.local/bin/env                                # Minimal image only
uv sync

Docker

Both images have Docker. It starts on first use of its socket, so it costs no memory until you run a container. On the Agent image, user is in the docker group and needs no sudo.

docker run --rm hello-world
docker compose up -d
docker buildx build -t my-app .

Images and volumes live on the VM's disk: they survive stop and start, and go with the VM when you delete it. A container's published port (-p 8080:80) is reachable inside the VM only; forward it over SSH to see it. See Networking.

VMs have no IPv6. Containers that expect an IPv6 network need IPv4 instead.

Screenshots with Playwright

On the Agent image, Playwright's browsers are in /opt/ms-playwright (PLAYWRIGHT_BROWSERS_PATH). Start your app, then take a screenshot from the command line:

playwright screenshot --full-page --viewport-size=1280,800 http://localhost:3000 /tmp/before.png

Or from a script, without npm install:

node -e "
const { chromium } = require('playwright');
(async () => {
  const b = await chromium.launch();
  const p = await b.newPage({ viewport: { width: 1280, height: 800 } });
  await p.goto('http://localhost:3000');
  await p.screenshot({ path: '/tmp/after.png', fullPage: true });
  await b.close();
})();"
  • Compare two screenshots with ImageMagick: compare -metric AE /tmp/before.png /tmp/after.png /tmp/diff.png prints the number of pixels that differ.
  • A headed browser runs under Xvfb: xvfb-run -a node script.js.
  • A project that pins another Playwright version can run npx playwright install chromium in it: that version's browser joins the others in /opt/ms-playwright, which user can write to.

Copy a screenshot to your laptop with scp: see Connect over SSH.

Other toolchains on Minimal

The Agent image has Go, Rust and the GitHub CLI. On Minimal, install what you need:

curl -fsSL https://go.dev/dl/go1.27.3.linux-amd64.tar.gz | tar -C /usr/local -xz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc

Pick the versions you need: these commands are examples.

Keep your setup

What you install lives on the VM's disk. It stays through pause, resume, stop and start, and is gone when you delete the VM. Since custom images are not available yet, keep your setup in a script in your repository and run it on each new VM:

setup.sh
#!/usr/bin/env bash
set -euo pipefail
sudo apt-get update
sudo apt-get install -y redis-server
npm ci
ssh agent 'bash -s' < setup.sh

sudo also works as root on Minimal, so the same script runs on both images.

Next steps