Synopsis
Description
Thecreate command spins up a new VM with a name you choose, waits for it to be SSH-ready, and leaves it running. This is useful when you need a persistent VM that you can reconnect to later using smolvm ssh.
Options
A unique identifier for the VM. Use this name to reference the VM in other commands like
smolvm ssh and smolvm env.Guest memory in MiB.
Root filesystem size in MiB.
Backend override. Choices:
auto, firecracker, qemu. The auto option selects the best backend for your platform.Seconds to wait for VM boot and SSH readiness.
Examples
Create a VM with default settings
Create a VM with more resources
Specify a backend
Increase boot timeout for slower systems
What happens during create
- SmolVM configures a new VM with the specified settings (or defaults)
- The VM process starts with the selected backend
- SmolVM waits for the VM to boot and become SSH-ready
- Once ready, the VM stays running in the background
smolvm ssh <name> or use the Python SDK with SmolVM.from_id("<name>").
Exit codes
| Code | Description |
|---|---|
0 | Success - VM created and SSH-ready |
1 | Error - VM creation or boot failed |
Related commands
smolvm ssh- Connect to the VM after creationsmolvm list- See all running VMssmolvm env- Set environment variables on the VMsmolvm cleanup- Clean up VMs when done