Templates
Build & list
Build manifest-backed templates and inspect the local mvm registry.
Build from the current project:
mvmctl machine buildOr point at a project directory or manifest file:
mvmctl machine build ./my-workermvmctl machine build ./my-worker/mvm.toml--flake <ref> is a different mode: it forces a flake-only build and skips
manifest discovery entirely.
mvmctl machine build discovers mvm.toml or Mvmfile.toml, runs the Nix build
through the builder VM where Linux build work belongs, and stores artifacts in
a local slot keyed by the canonical manifest path.
Build options
Section titled “Build options”mvmctl machine build --forcemvmctl machine build --update-hashmvmctl machine run --flake . --cpus 4 --memory 2G -dmvmctl machine checkpoint create my-machine --class vm-fullmvmctl machine build --jsonmachine checkpoint is an advanced verb: it works, but it is hidden from
machine --help.
Snapshot builds are backend-specific. Do not present snapshot availability or latency as universal unless the backend and readiness boundary are named.
Inspect built slots
Section titled “Inspect built slots”mvmctl manifest lsmvmctl manifest ls --jsonmvmctl manifest infomvmctl manifest info ./my-worker --jsonmvmctl manifest verifyUse mvmctl machine ls, mvmctl machine inspect, mvmctl machine logs, and mvmctl machine stop for running
VMs. Use mvmctl manifest * for build slots and registry state.
Boot after build
Section titled “Boot after build”mvmctl machine run --manifest . -dmvmctl machine run --manifest ./my-worker -- uname -aIf there is no built revision for the manifest, mvmctl machine run should fail with a
hint to run mvmctl machine build.
Security checklist
Section titled “Security checklist”- Build Linux artifacts through the builder VM.
- Treat
--forceas an intentional overwrite of the current slot revision. - Use
manifest verifywhen moving artifacts between hosts or debugging cache state. - Keep mutable registry inputs out of production examples unless they are labeled local-only.