Installation
SmolVM supports two backends depending on your platform:- Linux: Firecracker (KVM-based, production-ready)
- macOS: QEMU (development and testing)
Prerequisites
- Linux
- macOS
- Operating System: Ubuntu, Debian, or Fedora
- KVM Support: Your system must support hardware virtualization
- Python: 3.10 or higher
Check if KVM is available by running
lsmod | grep kvm. You should see either kvm_intel or kvm_amd.Install SmolVM
Configure system dependencies
- Linux (Firecracker)
- macOS (QEMU)
Run the system setup script to install Firecracker and configure runtime permissions:This script will:
- Install Firecracker and Jailer binaries
- Configure required system permissions
- Set up networking capabilities
- Optionally install Docker (if needed for custom images)
Advanced: Custom setup options
Advanced: Custom setup options
Post-installation
Once installed, you can:Start the quickstart
Create your first VM
Run demos
Troubleshooting
KVM not available on Linux
KVM not available on Linux
If you see KVM-related errors:
-
Check if KVM modules are loaded:
- Ensure your CPU supports virtualization (Intel VT-x or AMD-V)
- Enable virtualization in your BIOS/UEFI settings
-
Load the KVM module:
Permission denied errors
Permission denied errors
If you encounter permission errors:
-
Re-run the setup script with
--configure-runtime: - Log out and back in for group changes to take effect
-
Verify your user has the necessary permissions:
QEMU not found on macOS
QEMU not found on macOS
If QEMU is not found:
-
Ensure Homebrew is installed:
-
Install QEMU manually:
-
Verify installation: