set_start_cmd() is a microVM template-build setting. The command runs
during template build before snapshotting. Sandboxes created from the template
restore that snapshotted running state instead of rerunning the command at
sandbox create time.
Create-time environment variables passed to Sandbox.create(envs=...) are not
visible to the template start command. Use set_runtime_envs() for defaults
that should be present in sandboxes launched from the template.
Start command
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 withset_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.