Can I install oVirt Guest Agent on CentOS 8 / RHEL 8 Linux guest?. The oVirt / Red Hat Virtualization guest agent provides information, notifications, and actions between the oVirt web interface and the guest. The agent provides the Machine Name, Operating System, IP Addresses, Installed Applications, Network and RAM usage among other Virtual Machine information to the web interface.

On CentOS 7 / RHEL 7, the package to be installed is called ovirt-guest-agent. This has changed in CentOS 8 / RHEL 8, as it is referred by the name qemu-guest-agent . So how can you install oVirt Guest Agent and Drivers on CentOS 8 / RHEL 8?.

Install oVirt Guest Agent on Rocky / Alma / CentOS 8

On CentOS 8, run the following commands 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 service status to ensure 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 Sat 2023-09-16 06:37:05 UTC; 30s 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>

Sep 16 06:37:05 localhost.localdomain systemd[1]: Started QEMU Guest Agent.

Install oVirt Guest Agent on RHEL 8

For a RHEL 8 machine, you’re required to enable the Red Hat Virtualization Agent repository:

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

Once this is done, install the package:

sudo yum -y install qemu-guest-agent

Ensure the service is started and running:

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

Check the status:

systemctl status qemu-guest-agent

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

2 COMMENTS

  1. Hey,

    I followed your tutorial but when I run sudo systemctl start qemu-guest-agent I get this error:
    A dependency job for qemu-guest-agent.service failed. See ‘journalctl -xe’ for details.

    and journalctl shows the following:

    Guest agent is not responding: QEMU guest agent is not connected
    dev-virtio\x2dports-org.qemu.guest_agent.0.device: Job dev-virtio\x2dports-org.qemu.guest_agent.0.device/start timed out.
    Timed out waiting for device dev-virtio\x2dports-org.qemu.guest_agent.0.device.
    Unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed

    And sudo systemctl enable qemu-guest-agent gives me this error:

    Unit /usr/lib/systemd/system/qemu-guest-agent.service is added as a dependency to a non-existent unit dev-virtio\x2dports-org.qemu.guest_agent.0.device.

    How can I solve this?

    Thank you in advance.

LEAVE A REPLY

Please enter your comment!
Please enter your name here