This article will guide you through the process of installing the qemu guest agent on your virtual private server. The guest agent is a helper daemon that facilitates communication and command execution between the guest and host for tasks such as snapshotting and backing up. Its main purposes are to ensure proper shutdown of the guest and to freeze the guest file system during backups.
You must be connected via SSH and logged in as a user with sudo or root privileges.
The commands to do are:
ps axuw | grep qemu
systemctl status qemu-guest-agent
If the package is installed, the command output should appear similar to this.
root 621 0.0 0.1 95484 3548 ? Ssl Jan22 0:17 /usr/bin/qemu-ga -p /dev/virtio-ports/org.qemu.guest_agent.0
If the package is running, the output should appear similar to this:
$ systemctl status qemu-guest-agent Б≈▐ qemu-guest-agent.service - QEMU Guest Agent Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; disabled> Active: active (running) since Sun 2023-01-22 20:50:38 CST; 7h ago Docs: http://wiki.qemu.org/Features/GuestAgent Main PID: 621 (qemu-ga) Tasks: 2 (limit: 2326) CGroup: /system.slice/qemu-guest-agent.service Б■■Б■─ 621 /usr/bin/qemu-ga -p /dev/virtio-ports/org.qemu.guest_agent.0
If the qemu-guest-agent package is already installed, you can skip the rest. If it is not installed, please proceed with the next steps.
zypper install qemu-guest-agent
Please note that you will need to start the guest agent manually by using the following commands:
systemctl enable qemu-guest-agent systemctl start qemu-guest-agent
Verify that the qemu quest agent is running
systemctl status qemu-guest-agent
Congratulations, you have successfully installed the qemu guest agent on your openSUSE virtual machine.