Multipass · Canonical

On this page 7

Multipass is a lightweight virtual machine manager from Canonical that creates, runs and removes Ubuntu instances with a single command, using the native hypervisor of the host operating system. In Linux virtualization it sits above KVM and QEMU as a developer-oriented front end: it hides disk images, network setup and guest provisioning behind a short command-line interface, so that a fresh Ubuntu server is available in well under a minute.

The tool is aimed at disposable, reproducible environments rather than long-lived production guests. Developers use it to test packages, try cloud-init configurations, reproduce bugs on a specific Ubuntu release or run a small cluster on a laptop, and then delete every trace with one command.

How Multipass builds and runs an instance

Multipass runs as a client and a background daemon that talk over a local gRPC socket. The multipass client parses commands, while the multipassd daemon downloads images, drives the hypervisor, keeps the instance inventory and manages SSH keys, which is why the daemon needs elevated privileges and the client does not.

When a user runs multipass launch, the daemon fetches an official Ubuntu cloud image from Canonical’s image streams, caches it, creates a copy-on-write disk from it and boots the guest. On first boot, cloud-init configures the guest: it creates the default ubuntu user, injects the SSH key generated by Multipass, sets the hostname and applies any user-supplied configuration.

The choice of hypervisor depends on the host, and Multipass calls it a driver. The table below shows the usual backends on each platform.

Host systemDefault driverAlternative driverTypical install method
LinuxQEMU with KVM accelerationLXD (legacy, deprecated)Snap package
WindowsHyper-VVirtualBoxWindows installer
macOSQEMU with Hypervisor.frameworkVirtualBox (Intel only)Package installer or Homebrew
Default and optional drivers by host platform

On Linux, hardware virtualization extensions (Intel VT-x or AMD-V) must be enabled and exposed through /dev/kvm; without them QEMU falls back to slow software emulation and instances become impractical.

Core commands and instance parameters

The command set is deliberately small and covers the whole instance lifecycle from discovery to purge. Most daily work uses fewer than ten verbs.

CommandPurposeTypical use
multipass findList available images and aliasesCheck which Ubuntu releases can be launched
multipass launchCreate and start an instancemultipass launch 24.04 --name dev
multipass shellOpen an interactive SSH sessionWork inside the guest
multipass execRun one command in the guestScripted checks and CI steps
multipass mountShare a host directoryEdit code on the host, build in the guest
multipass transferCopy files in or outMove artifacts without a mount
multipass snapshotSave the stopped instance stateCheckpoint before a risky change
multipass delete and purgeMark for removal, then free diskClean up finished experiments
Frequently used Multipass commands

Resources are set at launch with --cpus, --memory and --disk. The conservative defaults are one virtual CPU, 1 GiB of memory and 5 GiB of disk, which suits a shell session but not a compiler toolchain or a container runtime, so most real workloads need explicit values. Recent releases allow resizing a stopped instance with multipass set local.<name>.cpus=4 and similar keys, although disk can only grow, never shrink.

The special primary instance is created automatically by multipass shell when no name is given, and it mounts the user’s home directory by default. This is convenient on desktops but means host files are writable from the guest, which matters when testing untrusted code.

Multipass compared with neighboring Linux tools

Multipass occupies a narrow niche between full hypervisor managers and container tools. It reuses the same kernel virtualization stack as libvirt, but it trades configurability for speed of use.

ToolIsolation modelGuest systemsMain strength
MultipassFull virtual machineUbuntu onlyOne-command Ubuntu instances on any desktop OS
libvirt with virt-managerFull virtual machineAlmost any OSFine-grained hardware and network control
LXD or IncusSystem containers and VMsMany Linux distributionsDense, fast instances and clustering
QuickemuFull virtual machineMany desktop systemsReady-made desktop VM profiles
DistroboxShared-kernel containerMany Linux userlandsTight desktop integration on Linux
How Multipass differs from related tools

The decisive difference is cross-platform parity: the same commands and cloud-init files work on a Linux workstation, a Windows laptop and a Mac, which libvirt, LXD and Distrobox cannot offer. In exchange, Multipass gives no graphical console by default, limited device passthrough and no support for non-Ubuntu guests through its official image catalog.

Networking, mounts and cloud-init in practice

By default every instance gets a private NAT address reachable from the host but not from the local network. The --network option adds a bridged interface on supported drivers, which places the guest on the physical LAN with its own DHCP lease; this is the usual way to expose a test web server to other devices.

Directory sharing uses SSHFS mounts by default, which work everywhere but are noticeably slower for many small files, such as a node_modules tree. On some drivers a native mount type passes the share through the hypervisor and improves throughput considerably, at the cost of requiring the instance to be stopped when the mount is created.

The most valuable feature for automation is --cloud-init, which accepts a cloud-config YAML file at launch. Packages, users, files and run commands declared there are applied on first boot, so a team can keep one file in version control and obtain identical development machines on every host platform.

Limitations and common mistakes

Multipass is fast to adopt, and most problems come from treating it as a general-purpose hypervisor. The table lists typical symptoms with their usual cause and remedy.

SymptomLikely causeFix
Launch times out or is very slowKVM unavailable or nested virtualization disabledEnable VT-x or AMD-V and check /dev/kvm
Build fails with out-of-memory errorsDefault 1 GiB memoryRelaunch or resize with more memory
Disk fills during package installsDefault 5 GiB diskSet --disk to 20G or more
Slow file access in a mounted projectSSHFS overhead on many small filesUse a native mount or transfer
Instance unreachable from other machinesNAT-only networkingAdd a bridged network
Conflict with another hypervisor on WindowsHyper-V and VirtualBox competingChoose one driver consistently
Frequent problems and fixes
  • Only Ubuntu images are official; other distributions require custom image URLs and are not guaranteed to boot.
  • Snapshots are not backups: they live on the same host disk and disappear with a purge.
  • Deleted instances still occupy space until multipass purge runs.
  • The tool is not designed for production hosting; long-lived servers belong on libvirt, LXD, Incus or a cloud platform.

The simple explanation

Multipass lets a person create a spare Ubuntu computer inside their own computer with one short command. That spare machine has its own operating system, memory and disk, so experiments inside it cannot damage the main system.

Think of it as a rented practice room that appears instantly and disappears when it is no longer needed. It works the same way on Linux, Windows and Mac, which makes it a simple way to get a clean Ubuntu system for learning, testing or development.

How it is used in practice

A backend developer on a MacBook needs to confirm that a service builds on two Ubuntu LTS releases before a release. She keeps a short cloud-init file in the repository that installs the compiler, a database client and the project dependencies, then runs multipass launch 22.04 --name build22 --cpus 4 --memory 8G --disk 30G --cloud-init dev.yaml and the same command for 24.04.

Within a few minutes both instances are ready. She mounts the project directory, runs the test suite in each guest with multipass exec, and finds that one library is missing on the older release. After fixing the packaging, she deletes and purges both instances. The whole check takes under half an hour, and a Windows colleague later reproduces it exactly with the same file, which is the practical benefit of identical environments across host platforms.