User Tools

Site Tools


Install Qemu guest agent for Ubuntu

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.

Step 1: Log in using SSH or via the Console

You must be connected via SSH and logged in as a user with sudo or root privileges.

Step 2: Make sure that the qemu-guest-agent package is not already installed on your system. By default, if you selected Ubuntu as your operating system during signup with CIFNet, it should be pre-installed.

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        3289  0.0  0.1   6444  3712 ?        Ss   00:26   0:00 /usr/sbin/qemu-ga

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 (/lib/systemd/system/qemu-guest-agent.service; static; vendor preset: enabled)
     Active: active (running) since Mon 2023-01-23 00:26:28 UTC; 14min ago
   Main PID: 3289 (qemu-ga)
      Tasks: 1 (limit: 2273)
     Memory: 468.0K
     CGroup: /system.slice/qemu-guest-agent.service
             Б■■Б■─3289 /usr/sbin/qemu-ga

Jan 23 00:26:28 ubuntu-server systemd[1]: Started QEMU Guest Agent.
Jan 23 00:26:33 ubuntu-server qemu-ga[3289]: info: guest-ping called

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.

Step 3: Install qemu guest agent

apt update && apt -y install qemu-guest-agent

Step 4: Start 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

Step 5: Verify

Verify that the qemu quest agent is running

systemctl status qemu-guest-agent


Congratulations, you have successfully installed the qemu guest agent on your Ubuntu virtual machine.

how_to_install_qemu_guest_agent_on_ubuntu.txt · Last modified: 2023/01/23 00:45 by admin

CIFNet is a leading hosting solution provider, offering a wide range of services including IP bandwidth, co-location, VMware and KVM hosting.
Host Your Site with CIFNet!