- 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 “Next” to continue.
- Pick the amount of RAM and CPU cores you wish to give access to the VM. Press “Next” to continue.
- Specify the maximum amount of drive space to allocate. Press “Next” 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 “Next” 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.
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
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 says
CD/DVD (ISO) Image (usb): none, then highlight that menu and choose
Changeand 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 Shellthen 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.efiand you should see GRUB. Then select
Ubuntu Serverto continue with the install.
If the hardware enumeration order changes, your network settings may need to be updated.
ip link showand look at the last adapter name. For example, it may be listed as
/etc/netplan/00-installer-config.yamland copy your configuration for
enp0s8(or whatever the old adapter was named) and paste it immediately after for
enp0s1(or whatever the new adapter is named).
- Reboot and you should be able to use networking again.