QEMU Guest Agent

Install and configure the QEMU Guest Agent on Ubuntu virtual machines running in Proxmox.

Overview

The QEMU Guest Agent is an important service that should be installed on all virtual machines running in Proxmox. It acts as a communication bridge between the Proxmox host and the guest operating system.

Benefits

  • Graceful Shutdown and Reboot Allows Proxmox to properly shut down or reboot the VM from the web interface without forcing a power off, reducing the risk of data corruption.
  • Live Snapshots Enables consistent live snapshots by quiescing the guest file system during backups.
  • Accurate Information Allows the Proxmox host to retrieve detailed VM information such as IP addresses, which appear in the Proxmox Summary panel.
  • Improved Resource Management Supports advanced features like memory ballooning.

Enable Guest Agent in Proxmox

Before installing the agent, ensure the Guest Agent option is enabled in the VM’s Options tab within the Proxmox web interface.

Install the Guest Agent

sudo apt update
sudo apt install qemu-guest-agent -y

Start the Service

sudo systemctl start qemu-guest-agent

Enable Service at Boot

sudo systemctl enable qemu-guest-agent

Verify Installation

sudo systemctl status qemu-guest-agent

Reboot

After rebooting, the VM’s IP address should appear in the Summary tab within the Proxmox interface.

sudo reboot