Expand description
mvmctl exec — boot a transient microVM, run one command, tear down.
Composes existing primitives: template artifact resolution → backend
start → vsock guest agent → backend stop. The “what to run” is modeled
as a tagged enum so future variants (mvmforge launch.json, baked-in
template entrypoint) can be added without churning the inline-command
surface.
Dev-mode only: inherits the existing policy.access.debug_exec gate
enforced by the guest agent.
Structs§
- AddDir
- One
--add-dir host:guest[:mode]mapping. - Exec
Request - All inputs to the orchestrator.
- Launch
Entrypoint - Resolved entrypoint extracted from an mvmforge
launch.json.
Enums§
- Exec
Target - Where to source the command that runs inside the transient microVM.
- Image
Source - Where the VM’s disk image and kernel come from.
Functions§
- build_
guest_ wrapper - Build the wrapper script that runs inside the guest:
- load_
launch_ plan - Read and parse an mvmforge
launch.jsonfrom disk. - run
- Run the request: boot, run, tear down.
- shell_
quote - Quote a single argument for inclusion in a shell command line.
- snapshot_
eligible - Decide whether snapshot restore is safe for this request.
- transient_
vm_ name - Generate a transient VM name for an exec invocation.