Operations
Inspect host health, understand images and snapshots, and clean up conservatively.
Capsule is an experimental single-host control plane. Operate it like infrastructure: inspect before changing, use a TTL for every disposable workload, and verify state after a restore or cleanup.
Health and inventory
capsule doctor
capsule doctor --json
capsule ps
capsule images
capsule resources --json
capsule events scout --lines 20doctor checks host and VM artifact consistency. images lists immutable kernel and root filesystem metadata; new VM records preserve the selected image ID and the relevant content hashes.
Cleanup
Destroy individual workspaces explicitly:
capsule pop scoutFor stale stopped-VM artifacts or Capsule-owned tap and nftables objects, use the conservative repair path:
capsule repairRepair is deliberately limited to Capsule-prefixed artifacts. It is not a generic host-network cleanup tool.
Snapshots and clones
A snapshot records a manifest alongside its memory, state, and root filesystem artifacts. Restore validates size, hashes, architecture, CPU model, Firecracker version, kernel, base root filesystem, and CPU template metadata.
Cloning defaults to a fresh VM identity: new tap device, guest IP, MAC address, vsock CID, hostname, and machine ID. Memory-snapshot cloning is experimental because an in-memory Firecracker snapshot can retain device identity.
Logs and telemetry
The local JSONL audit log remains the authoritative record of API activity. OpenTelemetry support is operational telemetry, not an audit replacement. Collecting metrics does not remove the need to review failed API operations, VM pressure, storage headroom, and reaper behavior.
Before an upgrade
- Export or snapshot the state you need to retain.
- Run
capsule doctorand clear known inconsistencies. - Test the new build on a disposable host and workload.
- Verify a fresh VM, a bounded guest command, egress policy, file transfer, and cleanup.
- Only then touch persistent or sensitive workloads.