Skip to main content
set_start_cmd() is a microVM template-build setting. The command runs during template build before snapshotting. Machines created from the template restore that snapshotted running state instead of rerunning the command at machine create time. Create-time environment variables passed to Machine.create(envs=...) are not visible to the template start command. Use set_runtime_envs() for defaults that should be present in machines launched from the template.

Start command

See the API reference for the full template build request schema, including build_context uploads for COPY steps.

Readiness helpers

wait_for_url() is an in-guest local HTTP probe. It only accepts http:// URLs on localhost, 127.0.0.1, or 0.0.0.0; the URL must include an explicit port and cannot include query strings, fragments, or embedded credentials.

Warm Pools

Template warm pools use this same start-ready snapshot as their startup contract. Put service boot inputs that must exist before pooling in template runtime defaults with set_runtime_envs(). Create-time envs, volume mounts, cwd overrides, desktop settings, custom networking, non-destroy timeout policy, and auto-resume are not visible to the prewarmed service boot path. Use Template Warm Pools for the checkout modes and fallback behavior.

Ready command