Going Ubuntu on an M1 Mac with Multipass: Thanks VM, it's Linux on the desktop
- Reference: 1636466686
- News link: https://www.theregister.co.uk/2021/11/09/multipass_m1/
- Source link:
Although getting a full desktop on an M1 Mac is tricky at present ( [1]although not too far off ) firing up a virtual machine on the platform allows developers to code against the operating system from the comfort of their new gizmos.
[2]We first looked at Multipass in 2019 , and found it a handy tool in Windows 10 for when a full-fat Hyper-V session was overkill and Windows System for Linux failed to cut the mustard. While the evolution of WSL into a lightweight VM-based Linux platform might have somewhat cut the need for Multipass on Windows, the arrival of the M1 chip has opened up another front. Hence Multipass on the M1 Mac.
[3]
M1 users haven't had many options for running Linux," said Canonical, "Popular VM tools such as VirtualBox and VMWare either do not support the new architecture or are still in the preview stage."
[4]
[5]
Hmm. We fired up Parallels Desktop 17, which offered a choice of Linux distribution. The Arm64 build of [6]Ubuntu 20.04 took around five minutes to install from scratch. So that's at least one alternative option.
[7]Want to spin up Ubuntu VMs from Windows 10's command line, eh? We'll need to see a Multipass
[8]Linux 5.16 to bring mainline support to Raspberry Pi 4 Compute Module – and the nifty devices built around it
[9]Desktop 17 for Mac: In a Parallels universe with Windows 11 on M1 silicon
[10]The future: Windows streaming through notched Apple screens
Multipass is free, though, which will tempt many, and getting to an Ubuntu (naturally) command prompt took us a matter of seconds. With support for cloud-init metadata, simulating a cloud deployment on one's M1 Macbook is a straightforward process. A multipass find showed a pair of Ubuntu LTS images available, as well the more cutting edge [11]21.04 and [12]21.10 . You will also find the inevitable minikube Kubernetes distribution (a single node Kubernetes cluster in a VM).
Also in the list is the Anbox Cloud appliance, which permits the running of Android apps in Multipass, according to Canonical. The inevitable "Would you like to help Multipass developers by sending anonymous usage data?" is also present and correct upon launch.
We took version 1.8 for a spin on an 8GB M1 Mac Mini and can confirm Canonical's claims regarding the speed to get started. Then again, the Arm64 version of Ubuntu 20.04 in Parallels Desktop 17 was also impressively snappy once installed. Multipass, however, dispenses with all the GUI frippery in favour of a command line interface. It also permits users to tie commands within a VM to commands on the host OS via the new Alias functionality.
[13]
In 2020, Canonical told us that "many Mac users" were keen on Multipass. The M1 version, despite a heftier installation thanks to the use of universal packages, is unlikely to lose it any friends. ®
Get our [14]Tech Resources
[1] https://www.theregister.com/2021/11/09/linux_pi_compute/
[2] https://www.theregister.com/2019/01/22/multipass/
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YYqpSb2b73bnUHk5SiN1vAAAANE&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YYqpSb2b73bnUHk5SiN1vAAAANE&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YYqpSb2b73bnUHk5SiN1vAAAANE&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[6] https://www.theregister.com/2020/04/23/canonical_releases_ubuntu_2004_claims
[7] https://www.theregister.com/2019/01/22/multipass/
[8] https://www.theregister.com/2021/11/09/linux_pi_compute/
[9] https://www.theregister.com/2021/08/10/parallels_17/
[10] https://www.theregister.com/2021/10/25/jamf_interview/
[11] https://www.theregister.com/2021/04/22/ubuntu_21_04/
[12] https://www.theregister.com/2021/10/18/ubuntu_2110_review/
[13] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YYqpSb2b73bnUHk5SiN1vAAAANE&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[14] https://whitepapers.theregister.com/
Why?
"Mac is Unix enough" -- Mac IS UNIX: https://www.opengroup.org/openbrand/register/brand3678.htm
As to why, well there are a few Linux-only oddities that will not compile on a POSIX system, so I may give this a spin...
Re: Why?
For licensing reasons, MacOS was based on a very old BSD implementation. Apple then slathered a load of shite on top to hide everything behind a bunch of black box GUIs. If you want a half decent Unix like experience on MacOS then you will need to download all the modern implementations of the command line tools from brew. Even then, don't expect to be able to update system files and have anything useful happen.
"While the evolution of WSL... cut the need for Multipass on Windows"
What's the need to begin with? Is anyone doing anything real with WSL besides "porting" things you can already run? Am I to go and install Windows because WSL will now run... actually I don't know. Now a super-duper Windows and Mac emulator for Linux would be nice, but the current trend is to achieve Linux without having to contribute to Linux by feigning "OSS" support while doing nothing but making their own OS's better (Mac & Windows). What I can't understand is that if bridging a divide requires more things Linux, why doesn't Linux just bring them both to it?
While Multipass seems like a 5th element, I'm not sure I'd bother as Mac is Unix enough (although I don't have a MAC so :-/).