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.
Network mode for the sandbox. Choices are
nat (default, private SmolVM network with NAT, port forwarding, and domain controls) and bridge (attach directly to an existing host bridge on Linux). See Bridged networking.Name of the Linux bridge to attach to. Required with
--network bridge and rejected otherwise. Run smolvm bridge check BRIDGE first to verify the bridge.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
Attach a sandbox to a host bridge
On Linux, connect the sandbox directly to an existing bridge so it appears as a regular machine on that network with its own MAC and guest-managed IP:smolvm sandbox shell and connect to guest services over the bridged network instead. See Bridged networking for the full setup, tradeoffs, and SDK usage.
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
