Installing CITS3007 development environment prerequisites on M-series Mac laptops

If you’re running an M-series Mac, the following instructions should allow you to install the Homebrew package manager, the Vagrant development environment manager, and UTM. (We also install VirtualBox; we don’t invoke it directly – it can’t be run on M-series Macs – but we do make use some of VirtualBox tools in later tutorials.)

  1. Install Homebrew on MacOS

    Homebrew is a package manager for MacOS, which allows new software packages to be easily installed (and removed). Using it is typically much more straightforward than downloading and configuring DMG (disk image) files.

    (Note: For Apple Silicon, Homebrew is installed under /opt/homebrew.)

  2. Set up Homebrew environment

  3. Install Vagrant, UTM, and VirtualBox

    (Note: The “brew cask” command for installing GUI applications previously was used, but now has been deprecated. Instead, we now use “brew install --cask” for GUI apps.)

  4. Install Vagrant plugins

    Install the “vagrant_utm” and “vagrant-disksize” plugins, which are used by later steps.

  5. Create your main environment directory

  6. Tips on using UTM

    In CITS3007, we will be using UTM via Vagrant. If you want to experiment with running UTM, however, it’s also possible to run UTM directly. You can find documentation for UTM here, and a “gallery” of predefined UTM virtual machine images here.


Credits

This tutorial was written by Steve Beaver, with additions from Arran Stewart.