Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Cloud Computing 10 min read

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.

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
Multipass website screenshot
Multipass website screenshot

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 10G

Managing 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 vm01

Basic Operations Inside the VM

Set a root password and install nginx:

sudo passwd
su root
apt-get update
apt-get install nginx

After installation, the web server can be accessed from the host at the VM’s IP address (e.g., 192.168.64.2).

Multipass client UI
Multipass client UI

Mounting and Transferring Files

Mount a host directory into the VM:

multipass mount /Users/yourname/hello vm01:/hello

Transfer a single file: multipass transfer hello.txt vm01:/home/ubuntu/ Unmount when no longer needed:

multipass umount vm01

Lifecycle Commands

Start, stop, delete or purge an instance:

multipass start vm01
multipass stop vm01
multipass delete vm01
multipass purge vm01

Automating 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.

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

Cloud ComputingVirtualizationmacOSMultipassUbuntu VM

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion