Installing Ubuntu 22.04 on VMware virtual machine¶
Platforms: Windows, macOS (Intel chips), macOS (Apple Silicon chips)
Note that for the purpose of our workshops, if you have
Ubuntu 22.04installed through other methods, such as WSL, Other Virtual Machine, Dual Boot, or Native Ubuntu 22.04, then it is not necessary to use this Virtual Machine
Objective¶
In this tutorial, you will:
- Install VMware virtual machine on your computer
- Create a virtual machine (VM) environment
- Install Ubuntu 22.04
- Verify a working Ubuntu desktop environment
Requirements¶
- A computer running Windows, macOS (Intel), or macOS (Apple Silicon)
- At least 8 GB RAM recommended
- At least 50 GB free disk space
- Internet connection
Step 1: Install VMware (Differs by Platform)¶
Windows¶
- VMware product: VMware Workstation Pro (Free for personal use)
- Download from: https://www.techpowerup.com/download/vmware-workstation-pro/
- Click on the
Downloadbutton for Windows (This tutorial is tested on the25H2version, but feel free to try a newer version if available) - Select a server to download it from, and the download should start automatically (the server closest to you is usually a good choice)
Install steps:
- Run the downloaded
.exe - Click Next
- Accept license agreement
- Use default options
- Click Install
- Restart if prompted
macOS (Intel & Apple Silicon)¶
- VMware product: VMware Fusion Pro (Free for personal use)
- Download from: https://www.techspot.com/downloads/2755-vmware-fusion-mac.html
- From the download options, click on a version, and the download should start automatically (This tutorial is tested on the
25H2version, but feel free to try a newer version if available)
Install steps:
- Open the downloaded
.dmg - Double click VMware Fusion or drag it to Applications (depends on installer)
- Launch VMware Fusion if not automatically launched
- Approve permissions in System Settings → Privacy & Security → Accessibility
- Restart if requested
VMware Fusion automatically installs the correct version for Intel or Apple Silicon Macs.
Step 2: Download Ubuntu 22.04 (Critical Differences)¶
Windows & macOS Intel¶
Download Ubuntu 22.04 Desktop (amd64): https://releases.ubuntu.com/jammy/
On the Desktop image section, click on 64-bit PC (AMD64) desktop image, and the download should start automatically
File name example:
ubuntu-22.04.x-desktop-amd64.iso
This is the official Ubuntu Desktop ISO.
macOS Apple Silicon Chips¶
Important: Ubuntu does not provide an official Desktop ARM ISO.
Instead, download Ubuntu 22.04 Server (ARM): https://cdimage.ubuntu.com/releases/jammy/release/
On the Server install image section, click on 64-bit ARM (ARMv8/AArch64) server install image, and the download should start automatically
File name example:
ubuntu-22.04.x-live-server-arm64.iso
You will install the desktop later.
Step 3: Create the Virtual Machine¶
Windows (VMware Workstation Pro)¶
- Open VMware Workstation Pro
- Click Create a New Virtual Machine
- Select Installer disc image file (iso)
- Browse to the Ubuntu ISO file you downloaded earlier
- Click Next
- Follow the recommended setting options
- Name the VM (e.g.,
Ubuntu 22.04) -
Disk size:
-
Recommended: 50 GB
- Click Finish
macOS (VMware Fusion – Intel & Apple Silicon)¶
- Open VMware Fusion Pro
- Click Create New if prompted
- Select Install from disc or image then press
Continue - Drag the Ubuntu ISO file recently downloaded or click on
Use another disc or disc image...to choose the Ubuntu ISO file downloaded - Click Continue
- Follow the recommended setting options (Disk size: 50 GB)
- Finish setup
Step 4: Install Ubuntu¶
Windows & macOS Intel (Desktop Installer)¶
- Press
Okon the annoucement pop up notifications - VM boots into Ubuntu installer
- Select Try or Install Ubuntu if prompted
- Choose language
- Keyboard layout → Continue
-
Updates & other software:
-
Normal installation
- Download updates while installing Ubuntu
- Install third-party software ...
-
Installation type:
-
Erase disk and install Ubuntu (This affects only the space you had given the virtual machine, not your entire computer)
- Click on
Install Nowfollowed byContinueif promted toWrite the changes to disks? - Select time zone
- Create user account
- Click Install
- Restart when prompted
When asked to upgrade Ubuntu, such as going from the 22.04 installed to 24.04, it is imperative that you do not upgrade
macOS Apple Silicon (Server Installer)¶
- Select Try or Install Ubuntu if prompted (use the arrow keys to change options and press
Enterto select options) - VM boots into text-based Ubuntu Server installer
-
Choose:
-
Language
- Keyboard layout
- If prompted to update the installer, feel free to do so
- Choose the base for the installation:
- Ubuntu Server
- Search for third-party drivers
-
Network:
-
Accept default (automatic)
-
Storage:
-
Use entire disk (This affects only the space you had given the virtual machine, not your entire computer)
- Accept defaults
- Click on
Continueif prompted about destructive action on the disk (This affects only the space you had given the virtual machine, not your entire computer) -
Profile setup:
-
Username
- Password
- Skip Ubuntu Pro
-
SSH:
-
Optional (can skip)
- Can skip any additional options
- Finish installation (might take a while)
- Reboot
- Press
Enterif prompted to remove installation media - Log in at the terminal
At this point, no desktop is installed yet.
Step 5: Install Ubuntu Desktop (Apple Silicon Only)¶
After logging in, run:
sudo apt update
sudo apt upgrade -y
sudo apt install ubuntu-desktop -y
Press enter if asked Which services should be restarted
This may take several minutes.
When finished:
sudo reboot
After reboot, the Ubuntu 22.04 Desktop (GNOME) will load.
When asked to upgrade Ubuntu, such as going from the 22.04 installed to 24.04, it is imperative that you do not upgrade
Step 6: Install VMware Tools (All Platforms)¶
VMware Tools improves:
- Display resolution
- Mouse integration
- Performance
Inside the Ubuntu VM¶
In Ubuntu, open a terminal (go on apps and look for Terminal and run:
sudo apt install open-vm-tools-desktop -y
sudo reboot
Step 7: Verification¶
After reboot, confirm:
- Ubuntu desktop loads successfully
- Screen resizes automatically
- Mouse moves smoothly in and out of the VM
- Feel free to play around with the display settings to optimize it
Platform Summary (Verified)¶
| Platform | Ubuntu Method |
|---|---|
| Windows | Ubuntu 22.04 Desktop (amd64 ISO) |
| macOS Intel | Ubuntu 22.04 Desktop (amd64 ISO) |
| macOS Apple Silicon | Ubuntu 22.04 Server (ARM) + ubuntu-desktop |
Notes¶
- Installing Ubuntu in a VM does not affect your real operating system
- Apple Silicon Macs require ARM-based Linux
- Using Ubuntu Server + desktop is fully supported and standard practice
Verify Ubuntu Version¶
Open a terminal in your Ubuntu 22 environment and run:
lsb_release -a
You should see information about which Ubuntu version you have installed