---
title: How to Create and Manage KVM Virtual Machines on Proxmox VE
url: https://docs.vultr.com/how-to-create-and-manage-kvm-virtual-machines-on-proxmox-ve
description: Create and manage KVM virtual machines on a Vultr Bare Metal server running Proxmox VE, with ISO uploads, a NAT bridge, guest OS installs, and the QEMU agent.
publish_date: 2026-11-27T16:46:47.897000Z
last_updated: 2026-11-27T18:27:59.890700Z
author: Jivendra Sah
header_image: https://docs.vultr.com/public/doc-assets/2687/0024e4b6-d8ac-4497-a909-b33471b21935.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

[Proxmox Virtual Environment (VE)](https://pve.proxmox.com/pve-docs/) 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.

## Prerequisites

Before you begin:

* Have access to a [Vultr Bare Metal server](https://www.vultr.com/products/bare-metal/).
* [Install Proxmox VE](https://docs.vultr.com/how-to-install-proxmox-ve-on-a-vultr-bare-metal-server) on the server.
* Create a [non-root user with sudo privileges](https://docs.vultr.com/how-to-create-a-sudo-user-in-linux).

## 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. 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.
1. 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.

### Download the ISO Image from a URL

1. Click **Download from URL**.
1. 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](https://releases.ubuntu.com/26.04/).
1. Click **Query URL**.
1. 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 `SHA256SUMS` file on the Ubuntu releases page.
1. Click **Download**.
1. Wait until the **Task viewer** dialog shows `TASK OK`, then close the dialog.

### Upload the ISO Image from Your Computer

1. Click **Upload**.
1. Click **Select File** and choose the ISO image on your computer.
1. 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.
1. Click **Upload** in the upload dialog.
1. 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. Select your node in the resource tree and click **Shell**.
1. Open the network configuration file in the `nano` text editor.

    ```console
    $ sudo nano /etc/network/interfaces
    ```

1. Add the following bridge definition at the end of the file:

    ```ini
    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`.

1. Enable IPv4 forwarding for the host.

    ```console
    $ echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/99-ip-forward.conf
    ```

1. Apply the forwarding setting.

    ```console
    $ sudo sysctl -p /etc/sysctl.d/99-ip-forward.conf
    ```

1. Apply the network configuration.

    ```console
    $ sudo ifreload -a
    ```

1. Display the address of the bridge.

    ```console
    $ ip -br addr show vmbr1
    ```

    Verify that the output lists `10.10.10.1/24` for `vmbr1`.

1. If you enabled the Uncomplicated Firewall (UFW) as described in the Vultr installation guide, allow forwarded traffic from the bridge.

    ```console
    $ 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. Click **Create VM** and configure the following settings in the **General** tab:
    * **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`.
1. 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**.
1. 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.
1. 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.
1. 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.
1. 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.
1. 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.
1. Click **Next** to open the **Confirm** tab.
1. 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. Select the VM in the resource tree and click **Start**.
1. Click **Console** in the toolbar to access the VM's display.
1. Wait for the Ubuntu Server installer to load. Select **Try or Install Ubuntu Server** in the boot menu and press :key_enter:.
1. On the language selection screen, select your language.
1. On the keyboard configuration screen, select your **Layout** and **Variant**, and then click **Done**.
1. On the type of installation screen, keep the **Ubuntu Server** radio button selected and click **Done**.
1. 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 the `vmbr1` bridge.
    * **Address**: Enter an unused address in the subnet, such as `10.10.10.100`.
    * **Gateway**: Enter `10.10.10.1`, the address of the `vmbr1` bridge.
    * **Name servers**: Enter the Domain Name System (DNS) resolver that the host uses. The host lists it in `/etc/resolv.conf`.
1. Click **Save**, and then click **Done**.
1. On the proxy configuration screen, leave the **Proxy address** field empty unless your network requires a proxy, then click **Done**.
1. On the Ubuntu archive mirror configuration screen, verify that the mirror test passes, and click **Done**.
1. 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.
1. Review the proposed storage layout and click **Done**.
1. In the confirmation dialog, click **Continue**. This operation erases all data on the virtual disk.
1. 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 `sudo` access.
    * **Choose a password** and **Confirm your password**: The password for the account. You use it to log in and to run `sudo` commands.
1. Click **Done**
1. On the Upgrade to Ubuntu Pro screen, keep the **Skip for now** radio button selected and click **Continue**.
1. On the Secure Shell (SSH) configuration screen, click **Done**. This guide uses the VM console, so it does not need OpenSSH.
1. On the Featured server snaps screen, click **Done**.
1. Wait for the installation to complete and click **Reboot Now**.
1. When the console shows `Please remove the installation medium, then press ENTER:`, press :key_enter:.
1. Log in with the username and password you created during the installation.
1. Test the connection from the VM to the Ubuntu package archive through the NAT bridge.

    ```console
    $ 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.

    ```console
    $ sudo apt update
    ```

1. Install the QEMU Guest Agent package.

    ```console
    $ 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`.

1. 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.

1. Select your node in the resource tree and click **Shell**.
1. List the VMs on the node.

    ```console
    $ sudo qm list
    ```

    Verify that your VM appears in the output with the `running` status.

1. Shut down the VM.

    ```console
    $ sudo qm shutdown VMID
    ```

1. Check the status of the VM.

    ```console
    $ sudo qm status VMID
    ```

    Verify that the output shows `status: stopped`.

1. Start the VM.

    ```console
    $ sudo qm start VMID
    ```

1. Check the status of the VM.

    ```console
    $ sudo qm status VMID
    ```

    Verify that the output shows `status: running`.

1. Check that the QEMU Guest Agent in the VM responds.

    ```console
    $ 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.

1. Reboot the VM.

    ```console
    $ sudo qm reboot VMID
    ```

1. View the VM configuration.

    ```console
    $ sudo qm config VMID
    ```

1. Force the VM to stop if it does not respond to a shutdown request.

    ```console
    $ 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.

## Conclusion

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](https://pve.proxmox.com/pve-docs/pve-admin-guide.html).
