Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mj_

macrumors 68000
Original poster
May 18, 2017
1,618
1,281
Austin, TX
I need to virtualize Ubuntu 18.04 LTS for a major project at work. ISA doesn't matter, which means it can be both x86_64 or ARMv8, but I would really prefer to run the VM on my M1 Air instead of my iMac since I might need it when out and about. On my iMac I normally use either Parallels, VMware Fusion, or Oracle VirtualBox to run my numerous Linux, UNIX, and BSD VMs. What's currently available to virtualize Ubuntu 18.04 LTS ARMv8 on my M1 Air? Parallels Preview for ARM? UTM? Anything else?
 

LuisN

macrumors 6502a
Mar 30, 2013
737
688
Torres Vedras, Portugal
I need to virtualize Ubuntu 18.04 LTS for a major project at work. ISA doesn't matter, which means it can be both x86_64 or ARMv8, but I would really prefer to run the VM on my M1 Air instead of my iMac since I might need it when out and about. On my iMac I normally use either Parallels, VMware Fusion, or Oracle VirtualBox to run my numerous Linux, UNIX, and BSD VMs. What's currently available to virtualize Ubuntu 18.04 LTS ARMv8 on my M1 Air? Parallels Preview for ARM? UTM? Anything else?
Parallels Preview for ARM runs very well.
Captura de ecrã 2021-03-23, às 21.22.29.png
 

mj_

macrumors 68000
Original poster
May 18, 2017
1,618
1,281
Austin, TX
I might be SOL here... tried both Parallels Preview for M1 and UTM today and neither is capable of virtualizing Ubuntu 18.04 LTS ARMv8. I get it to boot into EFI and even load the boot menu but no luck booting the installer itself. Both will allegedly run 20.04 LTS but that won't help as I need 18.04 for this project.

The only solution I found was emulating an x86_64 CPU via UTM and running Ubuntu 18.04 LTS AMD64 instead, which seems to be working alright. A bit slow, maybe, but it is running just fine.
 
  • Like
Reactions: LuisN

vigilant

macrumors 6502a
Aug 7, 2007
715
288
Nashville, TN
I might be SOL here... tried both Parallels Preview for M1 and UTM today and neither is capable of virtualizing Ubuntu 18.04 LTS ARMv8. I get it to boot into EFI and even load the boot menu but no luck booting the installer itself. Both will allegedly run 20.04 LTS but that won't help as I need 18.04 for this project.

The only solution I found was emulating an x86_64 CPU via UTM and running Ubuntu 18.04 LTS AMD64 instead, which seems to be working alright. A bit slow, maybe, but it is running just fine.
Is there a Server build for ARM for the specific version of Ubuntu that you can install?

To get Ubuntu to run in Parallels, I installed the Server version, then manually installed the GUI. I kept the Server install as minimal as possible to alleviate any bloat that maybe installed as part of a Server installation vs. Desktop.

For me it works great.
 
  • Like
Reactions: jdb8167

mj_

macrumors 68000
Original poster
May 18, 2017
1,618
1,281
Austin, TX
Yes, there is a server build of 18.04 LTS ARMv8/AArch64, which is exactly what I was trying to install: https://cdimage.ubuntu.com/releases/18.04/release/. I don't really need a desktop for this, a barebones minimal server with sshd will suffice.

Unfortunately, I cannot get the ISO to boot in neither Paralles 16 for M1 nor UTM 2.0.25. On both I get the Grub2 selection screen but once I attempt to actually boot the installer, either in normal or in text-only mode, it will simply go either blank (Parallels) or leave me with a blinking cursor in the top left corner (UTM). I have not yet found a way to get the 18.04 LTS ARMv8/AArch64 installer to boot on my M1 Air.
 

bobcomer

macrumors 601
May 18, 2015
4,949
3,699
Yes, there is a server build of 18.04 LTS ARMv8/AArch64, which is exactly what I was trying to install: https://cdimage.ubuntu.com/releases/18.04/release/. I don't really need a desktop for this, a barebones minimal server with sshd will suffice.

Unfortunately, I cannot get the ISO to boot in neither Paralles 16 for M1 nor UTM 2.0.25. On both I get the Grub2 selection screen but once I attempt to actually boot the installer, either in normal or in text-only mode, it will simply go either blank (Parallels) or leave me with a blinking cursor in the top left corner (UTM). I have not yet found a way to get the 18.04 LTS ARMv8/AArch64 installer to boot on my M1 Air.
That's odd. I was able to install 18.04 in parallels. It doesn't run all that great, but it runs. (having Java problems.)

How do you have your VM configured?
 

mj_

macrumors 68000
Original poster
May 18, 2017
1,618
1,281
Austin, TX
That's very odd indeed. I went with the default settings, no customizations. Upon first launch Parallels found the ISO file in my Downloads folder and offered to create a VM for me. I also tried redownloading the ISO file just to make sure it didn't get corrupted but no dice.

I do have to apologize for giving an incorrect statement in my post above as I get the same flashing cursor in the top left corner in Parallels as well. I simply didn't see it yesterday because the 80x24 boot screen isn't scaled and consequently the cursors is not in the top left corner but moved inwards:

Screen Shot 2021-03-24 at 3.40.30 PM.png


When I select "Install Ubuntu Server" this happens:
Screen Shot 2021-03-24 at 3.40.35 PM.png

When I select "Rescue a broken system" this happens:
Screen Shot 2021-03-24 at 3.40.49 PM.png
It will just sit there indefinitely. I am running the latest version of Parallels Technical Preview, Version 16.3.2 (50531)
 

bobcomer

macrumors 601
May 18, 2015
4,949
3,699
I installed the desktop, so that's different.

I set it for 6G of RAM and 2 Processors in the VM's settings, and to use my external USB Nic in a bridged networking scheme.
 

mikeboss

macrumors 68000
Aug 13, 2009
1,546
862
switzerland
maybe Docker could be the solution? Docker Desktop RC1 was released a few days ago:
Ubuntu Bionic Beaver seems to be available for Docker/AArch64:
 
  • Like
Reactions: mj_

mj_

macrumors 68000
Original poster
May 18, 2017
1,618
1,281
Austin, TX
I need to run Docker and Kubernetes in that particular VM as well as a bunch of other self-written services and daemons to replicate a specific environment for a migration project. Not sure if Dockerception is the best way to go about this :D

Thanks for the suggestion though. I wasn't aware that Docker desktop for M1 had already been released. Need to take a closer look, thank you.
 
  • Like
Reactions: mikeboss

bobcomer

macrumors 601
May 18, 2015
4,949
3,699
Where did you find the ISO for the desktop version? I can only find the server ISO
It's been a while since I installed it, but I don't remember where I got it. I don't have my MBA with me today, but I'll see if I can find anything tonight. I think it was a live CD version that I used to do the install.

One thing I think I remember is that booting it the first time to do the install took a long time with nothing happening on the screen.
 
  • Like
Reactions: mj_

bobcomer

macrumors 601
May 18, 2015
4,949
3,699
Where did you find the ISO for the desktop version? I can only find the server ISO
Sorry, I was wrong, I was mixing up my versions. The M1 Mac is running 20.04, sorry! I have 18.04 on my intel Mac.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.