How to Quickly Spin Up Ubuntu VMs on macOS with Multipass
This guide walks you through installing Multipass on macOS, creating and managing lightweight Ubuntu virtual machines via the command line, including mounting directories, transferring files, automating setup with cloud‑init, and comparing its simplicity to Docker‑style workflows.
Reading font

Getting Started with Multipass
After trying paid virtual‑machine solutions on macOS, the author discovered Multipass, an open‑source lightweight VM manager from Canonical that runs on Linux, Windows and macOS using KVM, Hyper‑V or HyperKit.
Installation
Download the macOS installer from Multipass website or install via Homebrew: brew cask install multipass Verify the installation:
multipass --version
Creating an Ubuntu Instance
List available Ubuntu images: multipass find Launch a VM named vm01 with 1 CPU, 1 GB RAM and 10 GB disk:
multipass launch -n vm01 -c 1 -m 1G -d 10GManaging the VM
View running instances: multipass list Execute a command inside the VM: multipass exec vm01 pwd Show detailed information: multipass info vm01 Open an interactive shell:
multipass shell vm01Basic Operations Inside the VM
Set a root password and install nginx:
sudo passwd
su root
apt-get update
apt-get install nginxAfter installation, the web server can be accessed from the host at the VM’s IP address (e.g., 192.168.64.2).
Mounting and Transferring Files
Mount a host directory into the VM:
multipass mount /Users/yourname/hello vm01:/helloTransfer a single file: multipass transfer hello.txt vm01:/home/ubuntu/ Unmount when no longer needed:
multipass umount vm01Lifecycle Commands
Start, stop, delete or purge an instance:
multipass start vm01
multipass stop vm01
multipass delete vm01
multipass purge vm01Automating with cloud‑init
Use the --cloud-init flag to run a YAML configuration on first boot, for example to install Node.js automatically.
Conclusion
Multipass provides a fast, lightweight way to run Ubuntu VMs on macOS, with a Docker‑like workflow and simple CLI commands, making it suitable for development and learning environments.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.