---
title: Guest Agents
slug: guest-agents
createdAt: 2026-01-01T21:30:48.211Z
---

# Overview

The guest agent is a program installed inside the guest OS allowing the host to run commands within the VM. This allows consistent, reliable backups by freezing the guest file system before snapshots and proper shutdown of a guest without reliance on ACPI, policies, etc.

**Requirements**:

- Enable the guest agent for the VM
- Installation of the guest agent within the guest operating system

***

# Enable the Guest Agent

The guest agent must be enabled per VM; this can be done during VM creation or by editing an existing VM.

1. From the **Top Menu**, click **Virtual Machines** -> **List**
2. Select the desired VM
3. From the left menu, click **Edit**
4. Select **QEMU Guest Agent**
5. Click **Submit**

***

# Install the Guest Agent

## Windows VMs

:::hint{type="info"}
During the VM creation process there is an option to **Attach Virtio Drivers**. This option will automatically attach a virtual CD-ROM drive to the guest OS with the required Virtio installation files. If this option was not selected, you can still download the guest agent installation ISO from [here](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win-guest-tools.exe).
:::

1. From the **Top Menu**, click **Virtual Machines** -> **List**
2. Select the desired VM
3. From the left menu, click **Remote Console**
4. From the top menu click :inlineImage[****]{src="https://docs.verge.io/product-guide/screenshots/eject-icon.png" alt caption width="21" height="21"} to launch the **Change CD** menu
5. Select the desired **virtio-win.iso** file
6. Click **Submit**
7. Log in to the Windows guest OS
8. Click **Start** -> **Run**
9. Type `devmgmt.msc` to launch the **Device Manager**
10. Right-click on **PCI Simple Communications Controller**
11. Click **Update Driver**
12. Click **Browse my computer for drivers**
13. Click **Browse**
14. Browse to the path of the CD-ROM drive containing the Virtio drivers
    1. Navigate to `X:\vioserial\<os-version>`
15. Click **OK**
16. Click **Next**
17. In the Windows file explorer, browse to the CD-ROM drive containing the Virtio drivers
18. Navigate to the **guest-agent** folder
19. Run the MSI installer for your OS architecture.

| ****              | **qemu-i386.msi**     | **qemu-x86\_64.msi**        |
| ----------------- | --------------------- | --------------------------- |
| **Architecture**  | 32-bit (IA-32)        | 64-bit (x64/AMD64)          |
| **Address Space** | 32-bit (Max 4GB RAM)  | 64-bit (16 Exabytes)        |
| **Performance**   | Generally slower      | Generally faster            |
| **Compatibility** | Runs on 32-bit guests | Runs 32-bit & 64-bit guests |
| **Modern Usage**  | Niche, legacy systems | Default for most use cases  |

:::hint{type="info"}
A restart of the guest OS may be required to connect the agent to the host.
:::



## Linux VMs

On Linux virtual machines, the **qemu-guest-agent** package must be installed. Installation instructions will vary depending on your specific Linux distribution.

- On systems that use apt for installation **(Debian/Ubuntu)**

  ```shell
  apt-get install qemu-guest-agent
  ```
- On systems that use yu&#x6D;**&#x20;(Red Hat)**

  ```shell
  yum install qemu-guest-agent
  ```
- Some distributions may require a reboot or manual start of the agent

:::CodeblockTabs{indent="1"}
```shell
systemctl start qemu-guest-agent
```
:::

***

# Verify Guest Agent Connection

When a guest agent is successfully connected, the version number will display next to the **Guest Agent** checkbox on the VM dashboard.

::Image[]{src="https://api.archbee.com/api/optimize/Oxlau0hCkAJAC6LaZfq2C/_8Gqzk7qrqK2eCAGl2hJw_guest-agent-1.png" size="70" width="487" height="459" position="center" alt="Guest Agent" showCaption="false"}

