Skip to content

Instantly share code, notes, and snippets.

@MattVonVielen
Last active October 17, 2024 19:17
Show Gist options
  • Save MattVonVielen/8eeada8cd41d9c63a1bd8ff0f0dcd823 to your computer and use it in GitHub Desktop.
Save MattVonVielen/8eeada8cd41d9c63a1bd8ff0f0dcd823 to your computer and use it in GitHub Desktop.
Creating an Ubuntu Desktop 22.04 (ARM64) VM on an M3 Mac

Creating an Ubuntu Desktop 22.04 (ARM64) VM on an M3 Mac

n.b. You'll likely need 3D Hardware Acceleration in order to make screen resizing work without making the VM freeze or become unstable; this seemed to be the case Under Virtualbox 7, however enabling 3D acceleration there causes the VM to hard-crash the hypervisor (or at least the VM instance) during boot. I was eventually able to successfully create a usable VM in both UTM and VMWware Fusion.

  1. Download the latest ARM64 Ubuntu Server installer ISO and use it to install Ubuntu Server with no workloads selected.

  2. sudo apt update

  3. sudo apt -y upgrade

  4. Because the Server and Desktop OS'es use conflicting network management systems, we must disable the Server one or else the system will hang for several minutes during boot. Do this with:

    sudo systemctl disable --now systemd-networkd.service

  5. Install the Desktop system with

    sudo apt -y install ubuntu-desktop

  6. Ensure the correct VM guest drivers are installed.

  • For UTM, run sudo apt -y install spice-vdagent
  • For VMWare Fusion, run sudo apt -y install open-vm-tools-desktop
  1. Reboot with the command sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment