How To Install qemu-guest-agent.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install qemu-guest-agent.x86_64 on Amazon Linux 2.
What is qemu-guest-agent.x86_64
This package provides an agent to run inside guests, which communicates with the host over a virtio-serial channel named “org.qemu.guest_agent.0” This package does not need to be installed on the host OS.
We can use yum to install qemu-guest-agent.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install qemu-guest-agent.x86_64.
Install qemu-guest-agent.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install qemu-guest-agent.x86_64 using yum by running the following command:
sudo yum -y install qemu-guest-agent.x86_64
How To Uninstall qemu-guest-agent.x86_64 on Amazon Linux 2
To uninstall only the qemu-guest-agent.x86_64 package we can use the following command:
sudo yum remove qemu-guest-agent.x86_64
qemu-guest-agent.x86_64 Package Contents on Amazon Linux 2
/etc/qemu-ga
/etc/qemu-ga/fsfreeze-hook
/etc/qemu-ga/fsfreeze-hook.d
/etc/qemu-ga/fsfreeze-hook.d/mysql-flush.sh.sample
/etc/sysconfig/qemu-ga
/lib/udev/rules.d/99-qemu-guest-agent.rules
/usr/bin/qemu-ga
/usr/lib/systemd/system/qemu-guest-agent.service
/usr/share/man/man8/qemu-ga.8.gz
/var/log/qga-fsfreeze-hook.log
References
Summary
In this tutorial we learn how to install qemu-guest-agent.x86_64 on Amazon Linux 2 using yum.