How to install oVirt Guest Agent on CentOS 8 / RHEL 8

Can I install oVirt Guest Agent on CentOS 8 / RHEL 8 Linux guests? The oVirt / Red Hat Virtualization guest agent provides information, notifications, and actions between the oVirt web interface and guests. The agent provides machine name, operating system, IP address, installed applications, network and RAM usage, and other virtual machine information to the web interface.

On CentOS 7 / RHEL 7, the package to be installed is called ovirt-guest-agent. In CentOS 8 / RHEL 8, this has changed because its name is called qemu-guest-agent . So, how to install oVirt Guest Agent and driver on CentOS 8 / RHEL 8?

Install oVirt Guest Agent on CentOS 8

On CentOS 8, run the following command to install oVirt Guest Agent:

sudo yum -y install qemu-guest-agent

Install and enable the service:

sudo systemctl enable --now qemu-guest-agent

Check the status of the service to make sure it is running:

$ systemctl status qemu-guest-agent
● qemu-guest-agent.service - QEMU Guest Agent
   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-01-03 15:02:16 EAT; 24min ago
 Main PID: 756 (qemu-ga)
    Tasks: 1 (limit: 23985)
   Memory: 2.7M
   CGroup: /system.slice/qemu-guest-agent.service
           └─756 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-ports/org.qemu.guest_agent.0 --blacklist=guest-file-open,guest-file-close,g>

Jan 03 15:02:16 localhost.localdomain systemd[1]: Started QEMU Guest Agent.

Install oVirt Guest Agent on RHEL 8

For RHEL 8 computers, you need to enable the Red Hat Virtualization Agent repository:

sudo subscription-manager repos --enable=rhel-8-for-x86_64-appstream-rpms

When done, install the package:

sudo yum -y install qemu-guest-agent

Make sure the service is up and running:

sudo systemctl start qemu-guest-agent
sudo systemctl enable qemu-guest-agent

Check status:

$ systemctl status qemu-guest-agent

For CentOS 7 and Debian / Ubuntu, please check: Install ovirt guest agent on Linux

Sidebar