Virtual machines
Start, stop, pause, resume and delete
Every state of a flockvm VM and every action on it: what happens to memory, processes, disk, IP and SSH port, and what each state bills.
A VM moves between seven states. You drive it with five buttons on its page and in the Fleet list: Pause, Resume, Stop, Start and Delete. Only starting and running are billed.
States
| State | What it means | Billed | Buttons in the dashboard |
|---|---|---|---|
starting |
Booting. Turns running once SSH answers. |
Yes | Delete |
running |
Up, reachable over SSH. | Yes | Pause, Stop, Delete |
pausing |
Writing memory to disk, about three seconds on a quiet host. | No | Delete |
paused |
Frozen. Memory and processes saved on the host's disk. | No | Resume, Delete |
stopping |
Shutting down cleanly. | No | Delete |
stopped |
Off. The disk is kept. | No | Start, Delete |
failed |
A boot, a pause or a resume did not complete. The disk is kept. | No | Start, Delete |
The dashboard shows only the buttons a state allows. An action the state does not allow is refused with a 409 conflict, for example "cannot resume a VM that is running".
What each action keeps
| Pause → Resume | Stop → Start | Delete | |
|---|---|---|---|
| Running processes | Kept, same PIDs | Lost (cold boot) | Gone |
Memory (RAM, files in /dev/shm) |
Kept | Lost | Gone |
Disk (/root, installed packages) |
Kept | Kept | Deleted |
| Private IP | Same | Same | Released |
| SSH port | Same | Same | Released |
| SSH host keys | Same | Same | Gone |
Uptime and started_at |
Continue | Reset | — |
| Billing while in that state | None | None | None |
Pause
Pause: "Snapshot memory to disk and free the RAM. Billing stops."
- The VM's vCPUs freeze.
- Its full memory and device state are written to a snapshot on the host's disk.
- The VM's process exits and its RAM and vCPUs go back to the host.
The VM shows pausing for about three seconds on a quiet host (longer when the host's disk is busy), then paused. Its address and SSH port stay reserved for it.
Use it when you step away from an agent or a dev server and want to come back to the exact same terminal.
Resume
Resume: "Restore from the snapshot, same processes and address."
The VM loads its snapshot and is running again in well under a second, with the same processes, files in memory, IP and SSH port. The guest clock is set right at resume, so it does not lag by the time spent paused.
A resume needs room on the host like a new VM. If the host is full, it is refused with a capacity error and the VM stays paused: try again later, or pause or stop another VM.
Snapshots are single use
A snapshot is deleted once the VM resumes from it. Pausing again writes a new one.
Stop
Stop: "Clean shutdown. The disk is kept, billing stops."
flockvm sends the guest Ctrl+Alt+Del, the way you would press it on a physical machine. Linux shuts down its services and the VM becomes stopped. A guest that has not shut down after 30 seconds is turned off.
Everything in memory is lost. Everything on disk stays: your repositories, installed packages, /root/.ssh/authorized_keys.
Start
Start: "Cold boot on the same disk."
The VM boots again from its own disk, with the same IP, SSH port and host keys, and turns running once SSH answers. Like a resume, a start needs room on the host: when it does not fit, the VM stays where it was.
Delete
Delete asks first: "Delete name? Disk and snapshots go too." Click Delete for good to confirm, or Keep.
The VM disappears from the list at once. Its process is killed, its disk and any pause snapshot are deleted, and its IP and SSH port are released. This cannot be undone.
Delete works from every state, including starting and pausing.
There is no backup
flockvm keeps no copy of a deleted VM's disk. Push your work to a git remote, or copy it out with rsync before you delete. See Connect over SSH.
Failed
A VM becomes failed when:
- its first boot, or a Start, fails or does not answer SSH within 120 seconds;
- a Pause cannot write the VM's memory to disk. The error starts with "pause failed" and says "the disk is intact: start boots the VM again";
- a Resume cannot load the snapshot. The error starts with "resume failed" and says "the disk is intact: start boots the VM again (its memory state is lost)".
If a paused VM's snapshot is missing when you click Resume, the VM does not become failed: it goes to stopped, with "the pause snapshot is missing; the disk is intact: start boots the VM again (its memory state is lost)". Click Start to boot it again.
The VM page shows the error in red at the top, and the Console shows how far the boot got. A failed VM is not billed.
From failed, click Start to cold boot on the same disk, or Delete it. The error clears with the next successful start.
Reboot and poweroff inside the VM
A reboot, shutdown or poweroff run inside the VM ends its process, and the VM becomes stopped. It does not come back up by itself.
Click Start on the VM page to boot it again. The same happens if the guest kernel crashes.
Billing by state
Billing counts the seconds a VM spends in starting and running, at the hourly price frozen when the VM was created.
A default VM ($0.032 per hour) that runs 2 hours, then stays paused overnight, costs 2 × $0.032 = $0.064. Paused, stopped and failed VMs cost nothing, disk included.
The VM page shows Cost so far, the seconds billed and the rate. See Pricing and Usage.
GitHub Actions runner VMs
VMs that run your GitHub Actions jobs show in the Fleet list with a CI badge, but have no buttons: flockvm creates each one for a job and deletes it when the job ends. See GitHub Actions.
Every action is logged
Each action records an event in your organization's audit log: vm.paused, vm.resumed, vm.stopped, vm.started, vm.deleted. See Audit log.
Next steps
Live usage and the serial console.
Prices per size, billed per second.
Keep agents running across disconnects.