Skip to content
VDS · Operating systems

Guest agent: why it matters and how to reinstall it

What qemu-guest-agent provides, how to tell it has disappeared, and how to restore it on Debian, Ubuntu, AlmaLinux, and Windows Server.

Updated August 23, 2026

The panel gets some of its data not from outside but from a small service inside the system — qemu-guest-agent. It doesn't open ports or touch the network: communication goes over the internal virtualization channel.

What it provides

  • Real disk space used in the Overview ring. Without the agent, the panel only knows the image size.
  • Graceful reboot and shutdown: the system receives a signal and stops services correctly instead of a power cut.
  • An accurate list of the machine's network addresses.

Without the agent, the machine keeps running; the panel just shows less, and reboots become hard — with all the risks to the database and file system.

How to tell it's missing

The first sign is that in Overview at /hosting/vds/m/<id> the used disk space disappears. In that case, the panel itself shows the installation command for your system.

Check from inside:

systemctl status qemu-guest-agent
ls -l /dev/virtio-ports/org.qemu.guest_agent.0

If there's no device in /dev/virtio-ports, the service starts and immediately goes to sleep: the channel for it doesn't exist.

Installation

Debian and Ubuntu:

apt update
apt install -y qemu-guest-agent
systemctl enable --now qemu-guest-agent

AlmaLinux and CentOS Stream:

dnf install -y qemu-guest-agent
systemctl enable --now qemu-guest-agent

Windows Server 2022 and 2025: the agent is part of the virtio-win driver set. Install virtio-win-guest-tools, then in the “Services” snap-in make sure QEMU Guest Agent is running and set to start automatically.

After a few seconds, refresh Overview — the used space should appear.

Why it disappears

CauseWhat happened
Minimal package set installationThe agent was never there to begin with
apt autoremoveRemoved as an “unneeded dependency”
“Extra services” cleanupThe service was disabled manually
OS reinstallA fresh image without your custom configuration

You can safely bring it back at any time: the service doesn't create noticeable load and doesn't touch the network.

Common errors

  • The service is active but there's no data in the panel — wait for the graphs to update and check for the device in /dev/virtio-ports.
  • Unit qemu-guest-agent.service not found — the package isn't installed, not broken.
  • The agent is installed but reboots are still hard — check autostart: systemctl is-enabled qemu-guest-agent.

The agent doesn't replace access to the machine. If the system won't boot, it's not what helps you — the rescue disk is.