Synopsis
Description
Thestop command shuts down a running VM and releases its resources (TAP device, network rules, process). The VM state is removed, so you cannot restart it after stopping — use snapshots if you need to save and restore state.
Arguments
The identifier of the VM to stop. This is the name you provided (or that was auto-generated) when creating the VM with
smolvm create.Examples
Stop a VM by name
Create, use, and stop a VM
What happens during stop
- SmolVM sends a shutdown signal to the VM process
- The TAP network device and NAT rules are removed
- The VM state is cleaned up from the local database
- Temporary disk images are deleted
Exit codes
| Code | Description |
|---|---|
0 | Success — VM stopped and cleaned up |
1 | Error — VM not found or stop failed |
Related commands
smolvm create— Create a new VMsmolvm list— See all running VMssmolvm cleanup— Clean up all stale VMssmolvm snapshot create— Save VM state before stopping