Jump to content

How to Install QEMU Guest Agent on Proxmox VE Linux Virtual Machines


Recommended Posts

On Proxmox VE, QEMU Guest Agent is installed on the virtual machines (VMs) for the following reasons:

  • To send ACPI commands to Proxmox VE virtual machines to properly shutdown the virtual machines from the Proxmox VE web UI.
  • To freeze/suspend the Proxmox VE virtual machines while taking backup and snapshots to make sure that no files are changed while taking backups/snapshots.
  • To resume suspended Proxmox VE virtual machines correctly.
  • To collect CPU, memory, disk I/O, and network usage information of Proxmox VE virtual machines for graphing the usage information in the Proxmox VE web UI.
  • To perform dynamic memory management on Proxmox VE virtual machines.

 

In this article, I am going to show you how to install QEMU Guest Agent on some of the most popular Linux distributions.

 

 

How to Enable QEMU Guest Agent for a Proxmox VE Virtual Machine

Before installing QEMU Guest Agent on a Proxmox VE Linux virtual machine, you must enable QEMU Guest Agent for the virtual machine.

 

Installing QEMU Guest Agent on Ubuntu/Debian/Linux Mint/Kali Linux/KDE Neon

On Ubuntu/Debian and Ubuntu/Debian-based Linux distributions (i.e. Linux Mint, Kali Linux, KDE Neon, Elementary OS, Deepin Linux, Pop OS!), QEMU Guest Agent can be installed with the following commands:

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

 

QEMU Guest Agent should be installed.

how-to-install-qemu-guest-agent-on-proxm

 

Once QEMU Guest Agent is installed on the Proxmox VE virtual machine, reboot the virtual machine for the changes to take effect with the following command:

$ sudo reboot

 

Once the Proxmox VE virtual machine boots, check if the QEMU Guest Agent service is working correctly.

 

Installing QEMU Guest Agent on Fedora/RHEL/CentOS Stream/Alma Linux/Rocky Linux/Oracle Linux

On Fedora, RHEL, CentOS, and other RHEL-based Linux distributions (i.e. Alma Linux, Rocky Linux, Oracle Linux), QEMU Guest Agent can be installed with the following commands:

$ sudo dnf makecache

$ sudo dnf install qemu-guest-agent

 

To confirm the installation, press Y and then press <Enter>.

how-to-install-qemu-guest-agent-on-proxm

 

QEMU Guest Agent should be installed.

how-to-install-qemu-guest-agent-on-proxm

 

Once QEMU Guest Agent is installed on the Proxmox VE virtual machine, reboot the virtual machine for the changes to take effect with the following command:

$ sudo reboot

 

Once the Proxmox VE virtual machine boots, check if the QEMU Guest Agent service is working correctly.

 

Installing QEMU Guest Agent on OpenSUSE and SUSE Linux Enterprise Server (SLES)

On OpenSUSE Linux and SUSE Linux Enterprise Server (SLES), QEMU Guest Agent can be installed with the following commands:

$ sudo zypper refresh

$ sudo zypper install qemu-guest-agent

 

To confirm the installation, press Y and then press <Enter>.

how-to-install-qemu-guest-agent-on-proxm

 

QEMU Guest Agent should be installed.

how-to-install-qemu-guest-agent-on-proxm

 

Once QEMU Guest Agent is installed on the Proxmox VE virtual machine, reboot the virtual machine for the changes to take effect with the following command:

$ sudo reboot

 

Once the Proxmox VE virtual machine boots, check if the QEMU Guest Agent service is working correctly.

 

Installing QEMU Guest Agent on Arch Linux/Manjaro Linux

On Arch Linux, Manjaro Linux, and other Arch Linux based Linux distributions, QEMU Guest Agent can be installed with the following command:

$ sudo pacman -Sy qemu-guest-agent

 

To confirm the installation, press Y and then press <Enter>.

how-to-install-qemu-guest-agent-on-proxm

 

QEMU Guest Agent should be installed.

how-to-install-qemu-guest-agent-on-proxm

 

Once QEMU Guest Agent is installed on the Proxmox VE virtual machine, reboot the virtual machine for the changes to take effect with the following command:

$ sudo reboot

 

Once the Proxmox VE virtual machine boots, check if the QEMU Guest Agent service is working correctly.

 

Verifying If QEMU Guest Agent is Working Correctly on Proxmox VE Virtual Machines

To verify whether the QEMU Guest Agent is working correctly, check the status of the qemu-guest-agent service with the following command:

$ sudo systemctl status qemu-guest-agent.service

 

If the QEMU Guest Agent is working correctly, the qemu-guest-agent systemd service should be active/running.

how-to-install-qemu-guest-agent-on-proxm

 

Some Linux distribution may not activate/enable the qemu-guest-agent systemd service by default. In that case, you can start the qemu-guest-agent service and add it to the system startup with the following commands:

$ sudo systemctl start qemu-guest-agent

$ sudo systemctl enable qemu-guest-agent

 

You can also check the Summary section of the virtual machine (from the Proxmox VE web UI) where you’ve enabled and installed QEMU Guest Agent to verify whether it’s working.

If the QEMU Guest Agent is working correctly, you will see the IP information and other usage stats (i.e. CPU, memory, network, disk I/O) of the virtual machine in the Summary section of the virtual machine.

how-to-install-qemu-guest-agent-on-proxm

 

Conclusion

In this article, I have discussed the importance of enabling and installing the QEMU Guest Agent on Proxmox VE virtual machines. I have also shown you how to install QEMU Guest Agent on some of the most popular Linux distributions.

 

References

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...