Skip to content

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.

  • Lightweight: native virtualization with second-fast VM creation
  • Simple: one command to create, enter, and delete a VM
  • Cross-platform: Windows / macOS / Linux

In an Administrator PowerShell:

Terminal window
winget install Canonical.Multipass
Terminal window
brew install --cask multipass
Terminal window
sudo snap install multipass

Verify:

Terminal window
multipass version

Create a VM with 4 CPUs, 8 GB RAM, and 40 GB disk:

Terminal window
multipass launch 24.04 --name openclaw --cpus 4 --memory 8G --disk 40G

Wait for creation, then enter the VM:

Terminal window
multipass shell openclaw
Terminal window
sudo apt update && sudo apt upgrade -y
Terminal window
curl -fsSL https://openclaw.ai/install.sh | bash

Re-login (or run source ~/.bashrc) and verify:

Terminal window
openclaw --version
Terminal window
openclaw onboard --install-daemon

Pick your model provider and paste your API key. --install-daemon registers the Gateway as a systemd service with auto-start.

Check the status:

Terminal window
openclaw status

Step 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:

Terminal window
multipass port-forward openclaw 18789:18789

Then open in your host browser:

http://localhost:18789

To reach the VM from your LAN (e.g. to connect a DLinkClaw relay), use a bridged network: multipass set local.openclaw.network=bridged and create the VM with --network bridged.

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