How to Install QEMU Guest Agent on Proxmox VMs (Debian/Ubuntu)
If you are running virtual machines on Proxmox VE, one of the most important utilities you can install is theqemu-guest-agent.This small service creates a vital communication link between the Proxmox host (hypervisor) and the guest VM (your operating system). Without it, Proxmox is "blind" to what's happening inside the VM.
By installing the agent, you unlock several key features:
- Accurate Resource Monitoring: Proxmox's "Summary" tab will correctly display the VM's memory usage and IP addresses.
- Graceful Shutdowns: When you click "Shutdown" in the Proxmox UI, it will send a proper shutdown command to the VM's OS, just like pressing the power button, preventing data corruption.
- Live Snapshots: It allows for cleaner, more consistent live snapshots.
1. 🖥️ Step 1: Install the Agent (Inside the VM)
First, log in to your VM using SSH or the Proxmox console.It's always a good idea to ensure your package lists are up to date before installing new software.
Bash:
sudo apt update
-y flag automatically confirms the installation, saving you a step.
Bash:
sudo apt -y install qemu-guest-agent
2. 🚀 Step 2: Start and Enable the Agent Service
In most modern systems, the service should start automatically after installation, but it's best to be certain. We will use systemctl to manually start it and, more importantly, enable it. Enabling ensures the agent starts automatically every time your VM reboots.
Bash:
sudo systemctl start qemu-guest-agent
3. ✅ Step 3: Verify the Service is Running
You can confirm that the agent is running correctly by checking its status.
Bash:
sudo systemctl status qemu-guest-agent
active (running) message. This confirms the agent is operational inside the VM. If it's not running, try a full reboot of the VM.4. 🖱️ Step 4: Enable the Agent in Proxmox
Installing the software is only half the job. You must now tell Proxmox to actually use this agent for the VM.- Log in to your Proxmox Web UI.
- Select the virtual machine you just installed the agent on.
- Go to the Options tab for that VM.
- Find "QEMU Guest Agent" in the list and double-click it.
- A pop-up window will appear. Check the box labeled "Use QEMU Guest Agent" (it may be "Enabled").
- Click OK.