In this guide, I will show you how to install the latest Ubuntu Server 24.04 Long Term Support (LTS) edition on a virtual machine. This tutorial includes downloading the ISO, configuring the VM hardware, setting a static IP during installation, and performing the initial system update.
First, navigate to the official ubuntu.com website and download the Ubuntu Server 24.04 LTS ISO file (approx. 2.2 GB).
Ubuntu Server 24.04 LTS).Start the VM and select "Try or Install Ubuntu Server". Follow the text-based wizard:
During the network configuration step, you can switch from DHCP to a static IP:
10.0.0.0/24).10.0.0.52).10.0.0.1).10.0.0.1, 8.8.8.8).Uncheck LVM encryption unless required. Use the entire disk for installation. Confirm the partition layout and select "Continue" to erase the disk.
Enter your name, server name (hostname), username, and password. You can choose to skip Ubuntu Pro for now.
Recommendation: Ensure you check the box to Install OpenSSH server so you can connect remotely via SSH later.
Once the installation finishes, reboot the server and log in with your created credentials.
Check your IP address to confirm the static IP configuration:
ip a | grep inet
Test connectivity by pinging an external site:
ping google.com
It is best practice to update the package repository and upgrade installed packages immediately:
sudo apt update && sudo apt upgrade -y