Install OpenClaw on Multipass VM
This guide shows you how to create an Ubuntu 24.04 virtual machine with Multipass (Canonical’s lightweight VM tool) and deploy OpenClaw inside it. Great for running OpenClaw in an isolated Linux environment without touching your host OS.
Why Multipass
Section titled “Why Multipass”- Lightweight: native virtualization with second-fast VM creation
- Simple: one command to create, enter, and delete a VM
- Cross-platform: Windows / macOS / Linux
Step 1: Install Multipass
Section titled “Step 1: Install Multipass”Windows
Section titled “Windows”In an Administrator PowerShell:
winget install Canonical.Multipassbrew install --cask multipasssudo snap install multipassVerify:
multipass versionStep 2: Create an Ubuntu 24.04 VM
Section titled “Step 2: Create an Ubuntu 24.04 VM”Create a VM with 4 CPUs, 8 GB RAM, and 40 GB disk:
multipass launch 24.04 --name openclaw --cpus 4 --memory 8G --disk 40GWait for creation, then enter the VM:
multipass shell openclawStep 3: Update the system
Section titled “Step 3: Update the system”sudo apt update && sudo apt upgrade -yStep 4: Install OpenClaw
Section titled “Step 4: Install OpenClaw”curl -fsSL https://openclaw.ai/install.sh | bashRe-login (or run source ~/.bashrc) and verify:
openclaw --versionStep 5: Initialize and start
Section titled “Step 5: Initialize and start”openclaw onboard --install-daemonPick your model provider and paste your API key. --install-daemon registers the Gateway as a systemd service with auto-start.
Check the status:
openclaw statusStep 6: Access the Gateway from your host (optional)
Section titled “Step 6: Access the Gateway from your host (optional)”Multipass VMs use NAT networking by default. Forward the Gateway port (18789) to your host:
multipass port-forward openclaw 18789:18789Then open in your host browser:
http://localhost:18789To reach the VM from your LAN (e.g. to connect a DLinkClaw relay), use a bridged network:
multipass set local.openclaw.network=bridgedand create the VM with--network bridged.
Common commands
Section titled “Common commands”| Command | Description |
|---|---|
multipass list |
List all VMs |
multipass start openclaw |
Start the VM |
multipass stop openclaw |
Stop the VM |
multipass delete openclaw && multipass purge |
Delete the VM |
multipass info openclaw |
Show resources & IP |
Next steps
Section titled “Next steps”- Configure your model: OpenClaw Installation & Model Configuration
- Connect DLinkClaw: DLinkClaw Channel Plugin
