Linux distribution

Ubuntu VMs on Apple Silicon Macs

Run mvz create ubuntu dev and MacVisor downloads Ubuntu 26.04 LTS for ARM64, verifies it, and makes a VM with your account and SSH keys. Ubuntu 24.04 LTS is in the catalogue too, and Ubuntu is the one distribution the New VM form can set up with the Ubuntu Desktop.

  • Apple Silicon (M1 or later)
  • macOS 27 on the Mac
  • Ubuntu 26.04 or 24.04 LTS, ARM64

30 days free, no key or payment details. Apple Silicon with macOS 27.

A stylised MacVisor window running an Ubuntu VM, with a terminal on one side and the GNOME desktop on the other.

Create an Ubuntu VM

In the app, choose New VM → Linux → Cloud Image → Ubuntu 26.04 LTS. From Terminal:

mvz create ubuntu dev                       # Ubuntu 26.04 LTS (aliases: ubuntu, ubuntu-lts)
mvz create ubuntu-24.04 noble               # Ubuntu 24.04 LTS
mvz shell dev --start

Both images are Canonical's ARM64 server cloud images from cloud-images.ubuntu.com, checked against Ubuntu's SHA256SUMS. The catalogue tracks Canonical's newest build, and mvz images pull ubuntu fetches a newer one for later VMs.

What you get

Your account has your Mac user name, your SSH keys, bash, and sudo without a password. The MacVisor Agent, Rosetta and automatic port forwarding are set up on the first boot. mvz ssh-config --install once, and ssh dev.mvz and VS Code Remote-SSH work by name.

Ubuntu LTS is a sensible default for a dev VM. Each LTS release gets five years of standard security updates, and most Linux tools publish Ubuntu packages or instructions.

Containers

Every runtime works on Ubuntu. MacVisor installs Docker Engine from Ubuntu's own docker.io package, Podman from Ubuntu's archive, and containerd as a rootless nerdctl setup with BuildKit, so nerdctl run needs no sudo.

mvz create ubuntu web --runtime docker --home
mvz create ubuntu k8s --runtime k3s --memory 8

Ubuntu Desktop

Only Ubuntu images offer Install Ubuntu Desktop, in the New VM form's Account section. With it on:

  • The first boot installs GNOME from Ubuntu's archive and the Snap Store, about 1 GB, and the window shows the desktop when it's done, without a restart.
  • Your account signs in by itself. Its password, random unless you type one, is for the lock screen and admin prompts: Show Password on the Overview, or mvz password dev.
  • The VM gets 6 GiB of memory and 4 vCPUs. Its resolution follows the window, and it has a microphone.
  • NetworkManager runs the network, as on a stock Ubuntu Desktop.

See Ubuntu Desktop for the clipboard and password details.

A TPM for disk encryption

Turn on a TPM 2.0 with mvz set dev --tpm on, or under VM Settings → System → Firmware. MacVisor tested it on Ubuntu 26.04, where systemd-analyze has-tpm2 says yes and systemd-cryptenroll --tpm2-device can seal a LUKS key to it. The TPM is sealed to your Mac. See A TPM for Linux VMs.

Quirks

  • First boot waits on apt. Ubuntu's unattended upgrades often hold the package lock right after boot. A runtime install waits for the lock, up to 10 minutes, instead of failing.
  • Tart's Ubuntu image works too. mvz create ghcr.io/cirruslabs/ubuntu:latest u1 pulls it from the registry. It signs in as admin with the password admin, so change that if other people can reach the VM.
  • ARM64 only. An x86-64 Ubuntu ISO or image won't boot. Ubuntu's ARM64 ISOs install with Linux → Installer ISO.

FAQ

Common questions

More in the documentation and known limitations.

Which Ubuntu version does mvz create ubuntu make?

Ubuntu 26.04 LTS. The aliases ubuntu and ubuntu-lts both point to ubuntu-26.04. For Ubuntu 24.04 LTS, run mvz create ubuntu-24.04 followed by a name.

Can I run the Ubuntu desktop in a MacVisor VM?

Yes. In the New VM form, pick an Ubuntu image and turn on Install Ubuntu Desktop. The first boot installs GNOME, about 1 GB, and takes 10 to 20 minutes longer. The switch is in the app only; mvz create has no option for it. Linux VMs have no GPU acceleration, so GNOME draws with the Mac's CPU.

What is the password for my Ubuntu VM?

A server VM's account has no password; you sign in with your SSH keys and sudo needs no password. A desktop VM signs in by itself and has a password for the lock screen and admin prompts, which mvz password shows.

Can Ubuntu on an M4 Mac run x86-64 programs?

Yes, through Rosetta, when Rosetta is installed on the Mac. MacVisor registers it in the guest for x86-64 Linux programs. The Ubuntu system itself is ARM64, since MacVisor doesn't emulate x86.

Does Docker work in an Ubuntu VM?

Yes. All four runtimes work on Ubuntu: containerd with nerdctl, Docker Engine, Podman and k3s. Pass --runtime docker to mvz create, and the VM's Docker API is forwarded to the Mac as the docker context macvisor-<vm>.

Run your Mac like a virtualization host.

macOS, Windows 11, Linux and FreeBSD VMs that keep running with the app closed, with snapshots, networks, backups and the mvz command line.