
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 explains how to create and manage KVM VMs on a Vultr Bare Metal server with Proxmox VE. It 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.
Before you begin:
Proxmox VE reads .iso and .img installation media from storage that has the ISO image content type. The local storage has it by default.
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.
ubuntu-26.04.1-live-server-amd64.iso, from the Ubuntu releases page.SHA256SUMS file on the Ubuntu releases page.TASK OK, then close the dialog.TASK OK, then close the dialog.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.
Select your node in the resource tree and click Shell.
Open the network configuration file in the nano text editor.
Add the following bridge definition at the end of the file:
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.
Enable IPv4 forwarding for the host.
Apply the forwarding setting.
Apply the network configuration.
Display the address of the bridge.
Verify that the output lists 10.10.10.1/24 for vmbr1.
If you enabled the Uncomplicated Firewall (UFW) as described in the Vultr installation guide, allow forwarded traffic from the bridge.
UFW denies routed traffic by default. This rule allows traffic that enters on vmbr1 and leaves on vmbr0.
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.
ubuntu-server.0.32, or enter a larger size if the VM stores more data.1.2, and do not assign more cores than the host provides.4096, and leave at least 1 GiB of host memory free for Proxmox VE.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.
Select the VM in the resource tree and click Start.
Click Console in the toolbar to access the VM's display.
Wait for the Ubuntu Server installer to load. Select Try or Install Ubuntu Server in the boot menu and press Enter.
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.
On the network configuration screen, select the network interface, open Edit IPv4, and configure the following settings:
10.10.10.0/24, the subnet of the vmbr1 bridge.10.10.10.100.10.10.10.1, the address of the vmbr1 bridge./etc/resolv.conf.Click Save, and then click Done.
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.
On the profile configuration screen, configure the following settings:
ubuntu-server.sudo access.sudo commands.Click Done
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 Enter.
Log in with the username and password you created during the installation.
Test the connection from the VM to the Ubuntu package archive through the NAT bridge.
Verify that the output shows 0% packet loss.
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.
Update the package index in the VM console.
Install the QEMU Guest Agent package.
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.
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.
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.
Select the VM in the resource tree, and use the following toolbar buttons:
Use the following items in the VM menu:
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.
List the VMs on the node.
Verify that your VM appears in the output with the running status.
Shut down the VM.
Check the status of the VM.
Verify that the output shows status: stopped.
Start the VM.
Check the status of the VM.
Verify that the output shows status: running.
Check that the QEMU Guest Agent in the VM responds.
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.
Reboot the VM.
View the VM configuration.
Force the VM to stop if it does not respond to a shutdown request.
The qm stop command ends the VM process immediately, similar to powering off a physical machine. It can cause data loss or filesystem corruption.
You have created a KVM VM on your Bare Metal server with Proxmox VE, installed Ubuntu Server 26.04 LTS, and configured the QEMU Guest Agent. You can now manage the VM from the web interface or with the qm command-line utility. For more information, refer to the Proxmox VE Administration Guide.
0 Comments
Be the first to comment and share your perspective with the community.