Proxmox Virtual Environment (VE) is an open-source virtualization platform built on Debian that divides one physical server into several isolated Kernel-based Virtual Machine (KVM) virtual machines (VMs). Each VM has its own virtual CPU, memory, disk, and network interface and runs its own operating system. Proxmox VE manages the VMs through a browser-based web interface and the qm command-line utility on the host. This guide covers adding an ISO image to Proxmox storage, configuring a Network Address Translation (NAT) bridge, creating a VM, installing Ubuntu Server 26.04 LTS as the guest operating system, configuring the QEMU Guest Agent, and managing the VM from the web interface and the command line. By the end, you'll have a running KVM VM on your Proxmox VE server that you can manage from the web interface or with qm.
Prerequisites
- A bare metal server with Proxmox VE installed (see Install Proxmox VE on a bare metal server)
- A non-root user with sudo privileges
Add an ISO Image to Proxmox Storage
Proxmox VE reads .iso and .img installation media from storage that has the ISO image content type. The local storage has it by default.
1. Open the ISO storage:
Log in to the Proxmox web interface, click OK in the No valid subscription dialog, and expand your node, which the resource tree lists by the server's hostname. Select the local storage under your node, and then open ISO Images.
Add the ISO image with one of the following methods. Download from URL transfers the file directly from the Ubuntu servers to your server, so it does not depend on your local internet connection. Upload transfers the file from your computer through the browser.
2. Download the ISO image from a URL:
- Click Download from URL.
- In URL, enter the link to the Ubuntu Server 26.04 LTS ISO image, such as
ubuntu-26.04.1-live-server-amd64.iso, from the Ubuntu releases page. - Click Query URL.
- Select the Advanced checkbox and configure the following settings to verify the integrity of the download:
- Hash algorithm: Select SHA-256.
-
Checksum: Enter the SHA-256 value for the ISO image from the
SHA256SUMSfile on the Ubuntu releases page.
- Click Download.
- Wait until the Task viewer dialog shows
TASK OK, then close the dialog.
3. Or upload the ISO image from your computer:
- Click Upload.
- Click Select File and choose the ISO image on your computer.
- Configure the following settings to verify the integrity of the upload:
- Hash algorithm: Select the algorithm that matches your checksum, such as SHA-256. Keep None to skip the check.
- Checksum: Enter the checksum value for the ISO image.
- Click Upload in the upload dialog.
- Wait until the Task viewer dialog shows
TASK OK, then close the dialog.
Configure a NAT Bridge for Virtual Machines
A virtual machine attached to the vmbr0 bridge shares your server's public network and receives no IP address via Dynamic Host Configuration Protocol (DHCP). A NAT bridge provides virtual machines with a private subnet and routes their outbound traffic through vmbr0 using the server's address.
1. Open the node shell:
Select your node in the resource tree and click Shell.
2. Open the network configuration file in the nano text editor:
$ sudo nano /etc/network/interfaces
3. Add the following bridge definition at the end of the file:
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -C POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE || iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
Save and close the file. The bridge has no physical port and uses 10.10.10.1 as the gateway address of the 10.10.10.0/24 subnet. The post-up rule routes traffic from the subnet through vmbr0.
4. Enable IPv4 forwarding for the host:
$ echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/99-ip-forward.conf
5. Apply the forwarding setting:
$ sudo sysctl -p /etc/sysctl.d/99-ip-forward.conf
6. Apply the network configuration:
$ sudo ifreload -a
7. Display the address of the bridge:
$ ip -br addr show vmbr1
Verify that the output lists 10.10.10.1/24 for vmbr1.
8. If you enabled the Uncomplicated Firewall (UFW) on the host, allow forwarded traffic from the bridge:
$ sudo ufw route allow in on vmbr1 out on vmbr0
UFW denies routed traffic by default. This rule allows traffic that enters on vmbr1 and leaves on vmbr0.
Create a Virtual Machine
Proxmox VE presents virtual hardware to each guest operating system, and the Create VM wizard defines that hardware. The following settings provide a starting configuration for Ubuntu Server.
1. Configure the General tab:
Click Create VM and configure the following settings:
- Node: The host that runs the VM. Select your node.
- VM ID: The unique numeric ID of the VM. Keep the suggested ID or enter an unused one.
-
Name: The label that identifies the VM in the resource tree. Enter a name such as
ubuntu-server.
2. Configure the OS tab:
Click Next to open the OS tab and configure the following settings:
- Use CD/DVD disc image file (iso): Keep this radio button selected to start the VM from an ISO image.
- Storage: The storage that holds the ISO image. Select local.
- ISO image: Select the Ubuntu Server ISO image you added.
- Type and Version: Proxmox VE uses these values to apply guest-specific defaults. Keep Linux and the default Version.
3. Configure the System tab:
Click Next to open the System tab and configure the following settings:
- Machine: The virtual chipset. Keep Default (i440fx). Select q35 if the VM requires Peripheral Component Interconnect Express (PCIe) passthrough.
- BIOS: The firmware that starts the VM. Keep Default (SeaBIOS) for a legacy BIOS boot. Select OVMF (UEFI) if the guest operating system requires Unified Extensible Firmware Interface (UEFI) firmware, and keep the Add EFI Disk checkbox selected.
- SCSI Controller: The virtual disk controller. Keep VirtIO SCSI single, the default for Linux guests.
- Qemu Agent: Select the checkbox so that Proxmox VE can read the VM's IP address and send shutdown commands through the QEMU Guest Agent.
4. Configure the Disks tab:
Click Next to open the Disks tab and configure the following settings:
-
Bus/Device: The virtual bus that connects the disk. Keep SCSI and device number
0. - Storage: The storage that holds the disk image. Select a storage with enough free space for the disk, such as local-lvm.
-
Disk size (GiB): The capacity of the virtual disk. Keep the default
32, or enter a larger size if the VM stores more data. - Format: The disk image format. local-lvm stores disks as Raw disk image (raw), and the field is read-only. In Directory storage, select the QEMU image format (qcow2) to support snapshots.
5. Configure the CPU tab:
Click Next to open the CPU tab and configure the following settings:
-
Sockets: The number of virtual CPU sockets. Keep
1. -
Cores: The number of virtual CPU cores. Enter
2, and do not assign more cores than the host provides. - Type: The CPU model that the VM sees. Keep Default (x86-64-v2-AES) for compatibility, or select host to expose all host CPU features to the VM.
6. Configure the Memory tab:
Click Next to open the Memory tab and configure the following setting:
-
Memory (MiB): The RAM allocated to the VM. Enter
4096, and leave at least 1 GiB of host memory free for Proxmox VE.
7. Configure the Network tab:
Click Next to open the Network tab and configure the following settings:
- Bridge: The virtual switch that connects the VM. Select vmbr1, the NAT bridge you created.
- Model: The type of virtual network card. Keep VirtIO (paravirtualized), which Linux supports natively.
- Firewall: Applies Proxmox VE firewall rules to the network interface. Keep the checkbox selected.
8. Create the VM:
Click Next to open the Confirm tab, and then click Finish.
Install the Guest Operating System
The Ubuntu Server installer runs from the ISO image attached to the VM, and Proxmox VE shows its screen in the VM console. The installer needs network access to test the package mirror and download security updates.
1. Start the VM and open the console:
Select the VM in the resource tree and click Start. Then click Console in the toolbar to access the VM's display.
2. Start the installer:
Wait for the Ubuntu Server installer to load. Select Try or Install Ubuntu Server in the boot menu and press the Enter key.
3. Choose the language, keyboard, and installation type:
- On the language selection screen, select your language.
- On the keyboard configuration screen, select your Layout and Variant, and then click Done.
- On the type of installation screen, keep the Ubuntu Server radio button selected and click Done.
4. Configure the network:
On the network configuration screen, select the network interface, open Edit IPv4, and configure the following settings:
- IPv4 Method: Select Manual. The NAT bridge does not run a DHCP server.
-
Subnet: Enter
10.10.10.0/24, the subnet of thevmbr1bridge. -
Address: Enter an unused address in the subnet, such as
10.10.10.100. -
Gateway: Enter
10.10.10.1, the address of thevmbr1bridge. -
Name servers: Enter the Domain Name System (DNS) resolver that the host uses. The host lists it in
/etc/resolv.conf.
Click Save, and then click Done.
5. Configure the proxy, mirror, and storage:
- On the proxy configuration screen, leave the Proxy address field empty unless your network requires a proxy, then click Done.
- On the Ubuntu archive mirror configuration screen, verify that the mirror test passes, and click Done.
- On the guided storage configuration screen, keep the Use an entire disk radio button and the Set up this disk as an LVM group checkbox selected, and then click Done. The Logical Volume Manager (LVM) layout assigns about half of the disk to the root volume and leaves the rest unallocated in the volume group.
- Review the proposed storage layout and click Done.
- In the confirmation dialog, click Continue. This operation erases all data on the virtual disk.
6. Configure the profile:
On the profile configuration screen, configure the following settings:
- Your name: The full name of the administrator account.
-
Your servers name: The hostname of the VM, such as
ubuntu-server. -
Pick a username: The login name of the administrator account, which has
sudoaccess. -
Choose a password and Confirm your password: The password for the account. You use it to log in and to run
sudocommands.
Click Done.
7. Finish the installer:
- On the Upgrade to Ubuntu Pro screen, keep the Skip for now radio button selected and click Continue.
- On the Secure Shell (SSH) configuration screen, click Done. This guide uses the VM console, so it does not need OpenSSH.
- On the Featured server snaps screen, click Done.
- Wait for the installation to complete and click Reboot Now.
- When the console shows
Please remove the installation medium, then press ENTER:, press the Enter key.
8. Log in with the username and password you created during the installation.
9. Test the connection from the VM to the Ubuntu package archive through the NAT bridge:
$ ping -c 3 archive.ubuntu.com
Verify that the output shows 0% packet loss.
Install the QEMU Guest Agent
The QEMU Guest Agent allows Proxmox VE to communicate with the guest operating system. It provides information such as the VM's IP addresses and supports operations such as graceful shutdown and reboot.
1. Update the package index in the VM console:
$ sudo apt update
2. Install the QEMU Guest Agent package:
$ sudo apt install qemu-guest-agent -y
The package starts the agent automatically because the VM has the Qemu Agent option enabled, even if the output reports qemu-guest-agent.service is a disabled or a static unit, not starting it.
3. Verify the agent in the web interface:
In the Proxmox web interface, select the VM in the resource tree and open Summary. Verify that IPs lists the IPv4 address that you entered in the installer.
Manage Virtual Machines
Proxmox VE provides a web interface and command-line tools to manage VMs. Use the web interface for common VM operations, or use the qm command-line utility from the node shell.
Manage Virtual Machines Using the Web Interface
Select the VM in the resource tree, and use the following toolbar buttons:
- Start: Starts a stopped VM.
-
Shutdown: Sends a shutdown request to the guest operating system. The arrow next to the button opens a drop-down menu with the following items:
- Reboot: Shuts down the VM, starts it again, and applies pending hardware changes.
- Stop: Powers off the VM immediately.
Use the following items in the VM menu:
- Summary: Shows the VM status, resource usage, and other information.
- Hardware: Shows and modifies the virtual hardware, including processors, memory, storage, and network devices. Changes to a running VM can stay pending until a restart.
Manage Virtual Machines Using the Command Line
The qm command-line utility manages KVM VMs from the node shell. The following commands use VMID as a placeholder for the ID of your VM, which qm list displays. Select your node in the resource tree and click Shell first.
1. List the VMs on the node:
$ sudo qm list
Verify that your VM appears in the output with the running status.
2. Shut down the VM:
$ sudo qm shutdown VMID
3. Check the status of the VM:
$ sudo qm status VMID
Verify that the output shows status: stopped.
4. Start the VM:
$ sudo qm start VMID
5. Check the status of the VM again:
$ sudo qm status VMID
Verify that the output shows status: running.
6. Check that the QEMU Guest Agent in the VM responds:
$ sudo qm agent VMID ping
Verify that the command returns no output. If the command returns an error, the VM is still booting. Wait a few seconds and run the command again.
7. Reboot the VM:
$ sudo qm reboot VMID
8. View the VM configuration:
$ sudo qm config VMID
9. Force the VM to stop if it does not respond to a shutdown request:
$ sudo qm stop VMID
The qm stop command ends the VM process immediately, similar to powering off a physical machine. It can cause data loss or filesystem corruption.
Next Steps
Your Ubuntu Server VM is running behind a NAT bridge with the QEMU Guest Agent reporting to Proxmox VE. From here you can:
- Create snapshots and backups of the VM before making risky changes
- Add port-forwarding rules on the host so services in the VM are reachable from outside
- Convert the VM into a template and clone it to provision new guests quickly
- Review the Proxmox VE Administration Guide for storage, clustering, and firewall options
For the full guide with additional tips, visit the original article on Vultr Docs.
Top comments (0)