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
- Dell Precision 3660, CPU I7-12700, RAM 16G, SSD M2 2TB
- Proxmox 8.0.4
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
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.
Select hash algorithm SHA-256, insert checksum from previous step and click Download.
If download finish successfully you will see somethimg like this:
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.
Select Ubuntu Server ISO image from Proxmox storage.
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 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.
Enter Memory and Minimum memory 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. Leave all options default.
Review configuration and click Finish.
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.
Select Try or Install Ubuntu Server
Select UI Language
Select Keyboard layout.
Choose type of install Ubuntu Server
Setup network configuration. I use DHCP to get my configurating. 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
Now Ubuntu will 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
Unmount partition with size 100Gb.
Delete partition with size 100Gb.
Create new logical volume.
To use all disk space enter max size that you see on your screen and press Create.
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.
Create new user.
On the screen Upgrade to Ubuntu Pro select Skip for now and press Continue.
On the next screen SSH Setup select Install OpenSSH Server
On the next screen SSH Setup 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 and press Reboot Now
If you get error Failed unmounting /cdrom just press Enter one more time.
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.
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.
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.