How to install Ubuntu Server 22.04 on Proxmox

Ubuntu is the modern, open source operating system on Linux for the enterprise server, desktop, cloud, and IoT. You can read more about Ubuntu here

Proxmox Virtual Environment is a complete open-source platform for enterprise virtualization. With the built-in web interface you can easily manage VMs and containers, software-defined storage and networking, high-availability clustering, and multiple out-of-the-box tools using a single solution. Proxmox VE Homepage

Here you'll find how to virtualize Ubuntu Server with Proxmox.

Test environment

1. Download Ubuntu Server ISO image

Download Ubuntu Server ISO from this page Get Ubuntu Server Choose right version for you architecture. I'll install version 22.04.3 LTS. If you want receive OS updates for at least 5 years select LTS version. You can read more about Ubuntu lifecycle and release cadence.

Click Download Ubuntu Server 22.04.03 LTS Click Download Ubuntu Server

Copy ISO url and SHA256 checksum Copy ISO Url and SHA256 checksum

Now let's download ISO image to Proxmox storage. Insert ISO URL to Download from URL dialog and press Query URL. Copy ISO Url and SHA256 checksum

Select hash algorithm SHA-256, insert checksum from previous step and click Download.Select hash algorithm and insert checksum

If download finish successfully you will see somethimg like this: Successefull download

2. Creating a Proxmox VM

Now we ready to create VM. Click on Create VM and follow next steps.

On the first tab General enter VM Name. Here you also can set VM ID. VM ID is a unique number in this Proxmox VE installation used to identify your VM. Configure VM

Select Ubuntu Server ISO image from Proxmox storage. Select ISO image from storage

Check Qemu Agent option. Check Qemu Agent option

Set disk size, disk will be created with minimum size and expand if needed. Also you can add more disk if need to. Set maximum disk size

Set Sockets and Cores count, cores multiply sockets count must not exceed tootal cores on your host. Next select Type:host, it will give maximum possible CPU performance on your host. Set Sockets, Cores count and CPU Type

Enter Memory and Minimum memory for VM. Set RAM for VM If you set different values for Memory and Minimum memory, Proxmox will dynamically allocate memory for VM based on current RAM usage of the host.

Configure Networking. Configure Networking Leave all options default.

Review configuration and click Finish. Review configuration

3. Installing OS

Install Ubuntu Server by following the setup process.
Use Tab and Arrows keys to navigate in ui.

Start VM and open Console to VM. Start VM

Select Try or Install Ubuntu Server Select Try or Install Ubuntu Server

Select UI Language Select UI Language

Select Keyboard layout. Select Keyboard layout

Choose type of install Ubuntu Server Choose type of install

Setup network configuration. I use DHCP to get my configurating. Setup network configuration If you want set network configuration manually select network interface and choose Edit IPv4 menu, then set IPv4 Method: Manual and enter your configuration. After you finish select Done option at the bottom of the screen.

Set Proxy server then select Done Set Proxy server

Now Ubuntu will select nearest mirror Select nearest mirror

On this step we should configure hard drive. And for drive with size less then 100Gb setup process do all automaticaly. But in our case hard drive size is 1Tb. Select Use an antire disk and press Done
Сonfigure hard drive

Unmount partition with size 100Gb. Unmount partition

Delete partition with size 100Gb.
Delete partition

Create new logical volume.
Create new logical volume

To use all disk space enter max size that you see on your screen and press Create.
Use all disk space

Now we doesn't have any devices with free space. All hard drive space will be available at mount point /. Next select and press Done and then on question Are you sure you want to continue? select Continue. All drive space is used by OS

Create new user.
Create new user

On the screen Upgrade to Ubuntu Pro select Skip for now and press Continue.
Skip Upgrade to Ubuntu Pro

On the next screen SSH Setup select Install OpenSSH Server
Select - Install OpenSSH Server

On the next screen SSH Setup select Install OpenSSH Server
Select - Install OpenSSH Server

On this screen you can select any server features which you want install now. All these features you can install later. I'll install only OS. Select server features

Select and press Reboot Now
Now install completed

If you get error Failed unmounting /cdrom just press Enter one more time.
Error: Failed unmounting /cdrom

Now let's remove Ubuntu ISO image from cd-rom. Open VM Hadware tab and edit CD/DVD Drive properties. Select Do not use any media and click OK.
Remove Ubuntu ISO image from cd-rom

At this point install is complete. Open Console to VM from Proxmox and login with user created during installation process. After login we can see VM IP address which we can use to login remotelly. Login to system To run commands as root user use sudo <command>

4. Post-install

Execute these commands to update operating system.

sudo apt update
sudo apt upgrade

And last command will install QEMU Agent. This agent need for communication beween Proxmox host and Ubuntu VM.

sudo apt install qemu-guest-agent

At this stage you have fully functional Ubuntu Server VM and next, you can create Proxmox VM template or just clone this VM every time when you need new Ubuntu VM.