Get started
How flockvm works
Under the hood: Firecracker microVMs under the jailer, one uid and one tap per VM, the guest kernel and images, pause and resume, the API and the firewall.
This page is for the curious: what runs when you press Launch VM, and why a paused VM comes back with the same processes. You do not need any of it to use flockvm.
The pieces
| Piece | What it does |
|---|---|
| flockvm.com | The website and the dashboard. Its server side calls flockvm's backend; the backend token never reaches your browser. |
| api.flockvm.com | A small relay machine, at Scaleway in Paris, that terminates TLS, applies request size limits, and forwards to the host through a WireGuard tunnel. It runs nothing else and stores no state. |
| The host | One bare-metal server, at OVHcloud in France (AMD Ryzen 9 9900X, 12 cores and 24 threads, 64 GB of RAM, NVMe disks). It runs flockd, the daemon that drives the VMs, and the microVMs themselves. |
| flockd | Creates, boots, pauses, resumes, stops and deletes VMs, keeps their state in SQLite, counts billed seconds, and runs the GitHub Actions dispatcher. |
| Firecracker | The virtual machine monitor, v1.17.0. One Firecracker process per running VM, on KVM. |
Restarting flockd does not kill VMs: each VM's process lives in its own cgroup, outside flockd's.
One microVM per VM
Each VM is a Firecracker microVM, started through Firecracker's jailer. For every VM, the host gives it:
- Its own uid (100000 + the VM's index). The Firecracker process, the VM's disk file and its network tap all belong to that uid, so one VM's process cannot open another VM's disk or tap.
- Its own chroot, rebuilt at every boot, holding only the kernel, the VM's disk and its log.
- Its own cgroup, which caps its CPU and memory and lets the host measure them.
- Its own tap device and /30 network: a private IP, a gateway on the host, and nothing shared with other VMs.
- Rate limits on its disk and network, set by its size, so one busy VM cannot starve the others.
The guest boots its own Linux kernel. A process in your VM shares no kernel with other customers.
The guest kernel and images
Kernel. Linux 6.1 (longterm), built from kernel.org with Firecracker's guest configuration plus what Docker needs on Ubuntu: nf_tables, more netfilter matches, overlayfs, bridges, veth, tun, WireGuard, FUSE. Docker works inside the VM, containers included, with Internet access.
Image ubuntu-26.04 (Minimal). Built with debootstrap from the Ubuntu archive, then:
- OpenSSH (root by public key only, no passwords), Git, curl, wget, build-essential, Python 3 with venv and pip, Node.js 22, jq, tmux, rsync, htop, strace, vim-tiny, sudo;
- Docker (
docker.io, buildx, compose v2), started on the firstdockercommand, so it costs no RAM until you use it; - systemd, and time sync against
time.cloudflare.comandntp.ubuntu.com; /tmpon the disk, not the tmpfs Ubuntu 26.04 mounts by default;- no man pages and no apt lists: run
apt-get updatebefore installing.
Image ubuntu-26.04-agent (Agent, the default). Built from the Minimal image, with the same guest setup, then: a user account (uid 1000, passwordless sudo, docker group); Node.js 26 with Node.js 24 and 22 in nvm; Python, Go, Rust, Java, Ruby, PHP and C/C++ toolchains; Playwright with Chromium, Firefox and WebKit; the Playwright MCP server; and the Claude Code, Codex, opencode, Gemini CLI and Cursor Agent CLIs, with no keys in them. Tarballs are pinned by version and checksum and npm packages by version; apt packages are the archive's current ones, and the agent CLIs are the latest at build time. The full list is in Images.
At first boot the VM generates its own SSH host keys and installs your public key in /root/.ssh/authorized_keys, and on the Agent image in /home/user/.ssh/authorized_keys too. Every boot grows the filesystem to the size's disk. The network comes from the kernel command line: IPv4 only, DNS 1.1.1.1 and 8.8.8.8, no DHCP.
Cold boot
Creating a VM takes a ready copy of the image from a pool on the host, sizes the disk, sets up the tap, and boots Firecracker. The VM turns running when its SSH server sends its banner. There is no warm pool of running VMs: every VM boots its kernel when you create it.
On the host in France, creating a VM until it is running (its SSH server answers) took between 0.43 s and 1.34 s, with a median of about 1.1 s: 12 VMs on the Agent image (Ubuntu 26.04), measured on 2026-11-09 and 2026-11-10.
The step-by-step figures below are older. They were measured on 2026-10-31 on the Paris host, retired on 2026-11-10 (Intel Xeon E3-1230 V2, RAID1 SATA SSDs), with the Minimal image (Ubuntu 24.04 at the time), creating VMs one after the other:
| Step | Time |
|---|---|
Create → running, small or default |
0.81–0.89 s |
Create → first ssh root@GUEST_IP true done, from the host |
1.09–1.19 s |
| Firecracker start → SSH banner | 0.69–0.75 s |
From your laptop, add the network round trips. Several VMs booting at once take longer, since they share the host's CPUs.
Pause and resume
Pause freezes the vCPUs, writes a full snapshot of the VM's memory and device state to the host's disk, and ends the Firecracker process. The RAM goes back to the host; the VM keeps its disk, its IP, its tap and its SSH port.
Resume starts a new Firecracker process and loads that snapshot. The guest does not boot: it carries on from the instruction where it stopped.
What survives a pause, checked by the host's self-tests:
- running processes, with the same PIDs (no reboot: the same
boot_id); - files in RAM, such as
/dev/shmor a tmpfs; - uptime, and the guest clock, correct right after the resume;
- the network: an SSH session opened from outside keeps working.
Measured on 2026-10-31 on the same host, with a small VM (4 GiB of RAM):
| Step | Time |
|---|---|
Pause → paused, quiet host |
2.7–3.1 s |
Resume → running |
about 0.22 s |
| Resume → SSH logged in, from a Mac in France | 0.67–0.82 s |
Pause time grows with RAM and with other disk activity on the host, since the memory file is as big as the VM's RAM.
Stop is different: it shuts the guest down cleanly and keeps only the disk. Start then cold-boots it, so processes start over.
SSH and the network
SSH does not go through api.flockvm.com. Your VM's SSH command names the host directly, with a port between 22001 and 22990 that the host forwards to port 22 of your VM.
The host's firewall (one nftables table) enforces:
| Traffic | Rule |
|---|---|
| Internet → VM | Only its SSH port, forwarded to the VM's port 22. |
| VM → Internet | IPv4, through the host's address. Outbound port 25 (SMTP) is refused. |
| VM → host | Dropped: the gateway, the public IP, every host service. |
| VM → other VMs | Dropped, directly or through their public SSH ports. |
VM → private ranges and cloud metadata (10/8, 172.16/12, 192.168/16, 169.254/16…) |
Dropped. |
| Spoofed source addresses | Dropped before they reach the network. |
Inside the VM, 169.254.169.254 answers, but it is Firecracker's own metadata service for that VM, used at first boot to pass your SSH key. VMs have no IPv6.
The host also watches network metadata and counters for abuse, such as port scans or mining pools, without looking inside your VM. See Acceptable use.
Host kernel and CPU
The host runs Ubuntu 24.04 with a pinned kernel. Simultaneous multithreading (SMT, hyper-threading) is on, with core scheduling: each VM has its own core-scheduling cookie, so the two threads of a physical core never run two different VMs, or a VM and the host, at the same time. The host's CPU is not affected by the L1TF and MDS flaws that let code on one hyperthread read data of the other. See Isolation.
Next steps
What separates your VM from the others, and its limits.
Ports, outbound traffic and port forwarding.
Pause, resume, stop, start and delete.
What the Agent and Minimal images contain.