Quick install
Install SmolVM with a single command:Manual install
If you prefer to install step by step:pip install smolvm pulls in the matching smolvm-core wheel automatically — most users do not need Rust installed.
Linux may prompt for
sudo during smolvm setup to install host dependencies (Firecracker, nftables, iproute2) and configure runtime permissions. On macOS, setup installs QEMU via Homebrew.newgrp kvm, or log out and back in.
Requirements
- Linux
- macOS
- Ubuntu, Debian, or Fedora (other distributions work but
smolvm setupmay not install host dependencies automatically) - KVM support — the kernel feature that lets SmolVM run virtual machines. Check with
ls /dev/kvm - x86_64 architecture
- Python 3.10+
Optional extras
Install extras for agent framework examples or the web dashboard:Troubleshooting
Linux: KVM not available
Linux: KVM not available
If For cloud VMs, enable nested virtualization in your hypervisor settings.
/dev/kvm doesn’t exist, enable virtualization:Linux: Permission denied on /dev/kvm
Linux: Permission denied on /dev/kvm
Add your user to the
kvm group and activate it:macOS: qemu-system not found
macOS: qemu-system not found
Ensure Homebrew’s bin directory is in your
PATH:Uninstall
Next steps
Quickstart
Run your first sandbox in minutes
Basic usage
Learn about VM configuration options
Custom images
Build your own VM images with custom tools
API reference
Explore the complete API
