smolvm sandbox create starts a new sandbox and leaves it running. Give it a name when you want to use the same sandbox in later commands, or let SmolVM generate one for you.
Synopsis
Options
Name for the sandbox. If you omit it, SmolVM creates a unique name.
Guest operating system image. Supported values are
alpine, ubuntu, and windows. Omit it for the default Linux image, or pair windows with --image.Image reference to boot. Use an S3 image URI, a
file:// URI, or a local qcow2 path for Windows guests.Guest memory in MiB.
Guest disk size in MiB.
Runtime backend. Choices are
auto, firecracker, qemu, and libkrun.QEMU machine model. Choices are
auto, q35, and microvm.Host-to-guest control channel. Choices are
ssh and vsock. Leave unset for auto-selection.Share a host folder with the sandbox. Use
HOST_PATH or HOST_PATH:GUEST_PATH. You can pass this option more than once.Allow writes to every shared folder from this command.
Seconds to wait for the sandbox to become ready.
Print a JSON envelope instead of formatted text.
Examples
Create a default sandbox
Create a named Ubuntu sandbox
Share a project folder
--writable-mounts only when the sandbox should edit host files directly.
Use QEMU microvm explicitly
Create a Windows sandbox from a local image
What happens
- SmolVM resolves the image, backend, and control channel.
- It creates a per-sandbox disk and network configuration.
- It starts the sandbox and waits for the guest to be ready.
- It prints the sandbox name and suggested next commands.
Related commands
smolvm sandbox shell- Open the fast shellsmolvm sandbox ssh- Open an SSH sessionsmolvm sandbox list- View sandboxessmolvm sandbox delete- Delete one or more sandboxes
