VM Setup Guide for Apple Silicon Machines (Mac M1/M2/M3)

Step 1: Download UTM.
UTM0.png

Step 2: Download the SeedLabs Ubuntu 20.04 VM. Do NOT download the one for Apple Silicon, since we are using an emulator instead. Download the Ubuntu 20.04 image for Intel/AMD

UTM13.png

Step 3: Unzip the file you downloaded in step 2, and save it someplace safe that you can remember. I recommend your documents folder.

Step 4: Launch UTM, and Click on new VM
UTM1.png

Step 5: Select Emulate
UTM2.png

Step 6: Select Linux
UTM3.png

Step 7: Select Intel ICH9, and pick 4 cores
UTM4.png

Step 8: Select "Import existing drive", and then use the browse button to find the file you saved in step 3 (SEED-Ubuntu).
UTM5.png

Step 9: Just select continue on tne Shared Directory screen
UTM6.png

Step 10: Enter a name you will remember under "Name" and click save
UTM7.png

Step 11: Verify that the VM name you picked appears on the left hand side of the UTM app, and click on the settings icon in the upper right corner
UTM8.png

Step 12: Click on QEMU in the left menu, and DESELECT the UEFI Boot option
UTM9.png

Step 13: Click "Play" on the VM. You will see the VM start, but likely you will just see the following for quite a long time
UTM10.png

Step 14: You will eventually get to the following screen. Click on the user SEED, and type in the password "dees" (all lower case)
UTM11.png

Step 15: You will again be faced with a blank screen for what feels like an unreasonable amount of time (for me it was about 45 seconds). Eventually, you will see the following desktop
UTM12.png

Step 16: Open up the terminal (1) and type the command (2)

cp ~/.bashrc .bashrc_backup

image.png

Step 17: Open your browser(1) and go to https://cse365.cse.buffalo.edu/newbash.txt, then download the file by clicking the three horizontal lines in the top right of the page and picking "Save Page as...".

Step 18: Open your file explorer (1), navigate to the downloads folder (2), move the downloaded file (3) into your home directory (4).
image.png

Step 19: In your terminal type and run the following command:

gedit newbash.txt

image.png

Step 20: A text editor will open up, press CTRL + F and type in UBIT (1). It should take you to line 73. Replace the UBIT with your UBIT (2)
image.png

Step 21: Save and close the file.

Step 22: In your terminal type and run the following command

mv newbash.txt ~/.bashrc

image.png

Step 23: Right click on the terminal icon (1) and then click new window (2).
image.png
A new terminal should pop up that looks something like this:
image.png

Step 24: Shut down the VM. UTM15.png

Step 25: Make a copy of the VM image. Unfortunatly, UTM does not allow snapshots like many virtual machine managers, so you can only clone the VM. This will allow you to have a backup copy to return to if you break your VM, however, rather than having to do this whole setup process again!

UTM14.png