Multipass released by Canonical has presented itself as a fresh and easy to use tool inside of this domain. Which I now use on a daily basis over similar tools for VMs! So what exactly makes it so great? (Beyond VMs for M1 MacBooks!)
Simple to install
It is a one-liner to install in most cases:
- Linux:
sudo snap install multipass
- Mac:
brew install multipass
- Windows: there is a link Download Multipass for Windows
Simple to use
You can manage the entire VM lifecycle with 3 commands:
- Spin up an ubuntu 20.04 VM
multipass launch 20.04
- Enter the VM terminal prompt
multipass shell <vm name>
- Delete the VM
multipass delete <vm name>
Simple VM customisation
- launch VM with 2 cpus
multipass launch 20.04 --cpus 2
- launch VM with 1GB memory
multipass launch 20.04 --mem 1G
- launch VM with 5GB disk
multipass launch 20.04 --disk 5G
Simple file transfers
- mount a host directory to VM
multipass mount /host/path <vm name>:/some/path
- transfer a file from host to VM
multipass transfer script.sh <vm name>:/tmp/script.sh
- transfer a file from VM to host
multipass transfer <vm name>:/root/script.sh /path/on/host
Simple clean up (and recovery)
- Delete a VM
multipass delete <vm name>
- Permanently delete all VMs
multipass purge
- Recover a deleted VM
multipass recover <vm name>
Multipass in Action
Here is a demo of multipass in action to show how simple it is.