macOS
Sections
Downloads
Creating a new virtual machine
- Open UTM and click the “+” button to open the VM creation wizard.
- Select “Virtualize”.
- Select “Linux”.
- Click “Browse” and select the Ubuntu Server ISO downloaded from the link above. Press “Continue” to continue.
- Pick the amount of RAM and CPU cores you wish to give access to the VM. Press “Continue” to continue.
- Specify the maximum amount of drive space to allocate. Press “Continue” to continue.
- If you have a directory you want to mount in the VM, you can select it here. Alternatively, you can skip this and select the directory later from the VM window’s toolbar. The shared directory will be available after installing SPICE tools (see below). Press “Continue” to continue.
- Press “Save” to create the VM and press the Run button to start the VM.
- Go through the Ubuntu installer. If the reboot fails, you can manually quit the VM, unmount the installer ISO, and start the VM again to boot into your new installation.
Installing Ubuntu Desktop
If you installed Ubuntu Server, then at the end of the installation, you will not have any GUI. To install Ubuntu Desktop, log in and run:
$ sudo apt update
$ sudo apt install ubuntu-desktop
$ sudo reboot
Enable clipboard and directory sharing
Follow the instructions in this page.
Troubleshooting
Cannot boot into installer
If you start the VM and are stuck at the EFI screen (BdsDxe: failed to load Boot0001
or UEFI Interactive Shell
), try the following in order.
- Make sure you have the installer ISO selected. Click the disk icon on the toolbar and check that there is a menu option for
CD/DVD (ISO) Image (usb): ubuntu-xxx.iso
. If it saysCD/DVD (ISO) Image (usb): none
, then highlight that menu and chooseChange
and then select the ISO. If you don’t have any selectable menu option, follow the guide again and make sure you have added a removable drive. Then restart the VM. - Next, try to get into the EFI Shell. If you see
UEFI Interactive Shell
then you are already in the shell. Otherwise, restart the VM and quickly press the Esc key to enter the shell. - In the EFI shell make sure you see
FS0: Alias(s):CD0h0a0a::BLK1:
near the top or something similar. If not, then double check your configuration and make sure you have a removable drive configured and the installer ISO mounted. Also check that your ISO is valid. - Type in:
fs0:\efi\boot\bootaa64.efi
and you should see GRUB. Then selectUbuntu Server
to continue with the install.
Networking is unavailable
If the hardware enumeration order changes, your network settings may need to be updated.
- Run
ip link show
and look at the last adapter name. For example, it may be listed asenp0s1
. - Edit
/etc/netplan/00-installer-config.yaml
and copy your configuration forenp0s8
(or whatever the old adapter was named) and paste it immediately after forenp0s1
(or whatever the new adapter is named). - Reboot and you should be able to use networking again.