How to Run a AMD64 Bit Linux VM on a Mac M1

This tutorial will show you how you can run 64bit Ubuntu Linux Virtual Machines on a Apple Mac M1 arm64 architecture macbook using UTM.

Installation

Head over to their documentation and download the UTM.dmg file and install it, once it is installed and you have opened UTM, you should see this screen:

linux-64bit-vms-on-apple-mac-m1

Creating a Virtual Machine

In my case I would like to run a Ubuntu VM, so head over to the Ubuntu Server Download page and download the version of choice, I will be downloading Ubuntu Server 22.04, once you have your ISO image downloaded, you can head over to the next step which is to "Create a New Virtual Machine":

linux-64bit-vms-on-apple-mac-m1

I will select "Emulate" as I want to run a amd64 bit architecture, then select "Linux":

linux-64bit-vms-on-apple-mac-m1

In the next step we want to select the Ubuntu ISO image that we downloaded, which we want to use to boot our VM from:

linux-64bit-vms-on-apple-mac-m1

Browse and select the image that you downloaded, once you selected it, it should show something like this:

linux-64bit-vms-on-apple-mac-m1

Select continue, then select the architecture to x86_64, the system I kept on defaults and the memory I have set to 2048MB and cores to 2 but that is just my preference:

linux-64bit-vms-on-apple-mac-m1

The next screen is to configure storage, as this is for testing I am setting mine to 8GB:

linux-64bit-vms-on-apple-mac-m1

The next screen is shared directories, this is purely optional, I have created a directory for this:

mkdir ~/utm

Which I've then defined for a shared directory, but this depends if you need to have shared directories from your local workstation.

The next screen is a summary of your choices and you can name your vm here:

linux-64bit-vms-on-apple-mac-m1

Once you are happy select save, and you should see something like this:

linux-64bit-vms-on-apple-mac-m1

You can then select the play button to start your VM.

The console should appear and you can select install or try this vm:

linux-64bit-vms-on-apple-mac-m1

This will start the installation process of a Linux Server:

linux-64bit-vms-on-apple-mac-m1

Here you can select the options that you would like, I would just recommend to ensure that you select Install OpenSSH Server so that you can connect to your VM via SSH.

Once you get to this screen:

linux-64bit-vms-on-apple-mac-m1

The installation process is busy and you will have to wait a couple of minutes for it to complete. Once you see the following screen the installation is complete:

linux-64bit-vms-on-apple-mac-m1

On the right hand side select the circle, then select CD/DVD and select the ubuntu iso and select eject:

linux-64bit-vms-on-apple-mac-m1

Starting your VM

Then power off the guest and power on again, then you should get a console login, then you can proceed to login, and view the ip address:

linux-64bit-vms-on-apple-mac-m1

SSH to your VM

Now from your terminal you should be able to ssh to the VM:

linux-64bit-vms-on-apple-mac-m1

We can also verify that we are running a 64bit vm, by running uname --processor:

linux-64bit-vms-on-apple-mac-m1

Thank You

Thanks for reading, feel free to check out my website, feel free to subscribe to my newsletter or follow me at @ruanbekker on Twitter.