QEMU-GA(8) | QEMU | QEMU-GA(8) |
qemu-ga - QEMU Guest Agent
qemu-ga [OPTIONS]
The QEMU Guest Agent is a daemon intended to be run within virtual machines. It allows the hypervisor host to perform various operations in the guest, such as:
qemu-ga will read a system configuration file on startup (located at /etc/qemu/qemu-ga.conf by default), then parse remaining configuration options on the command line. For the same key, the last option wins, but the lists accumulate (see below for configuration file format).
If an allowed RPCs list is defined in the configuration, then all RPCs will be blocked by default, except for the allowed list.
If a blocked RPCs list is defined in the configuration, then all RPCs will be allowed by default, except for the blocked list.
If both allowed and blocked RPCs lists are defined in the configuration, then all RPCs will be blocked by default, then the allowed list will be applied, followed by the blocked list.
While filesystems are frozen, all except for a designated safe set of RPCs will blocked, regardless of what the general configuration declares.
The syntax of the qemu-ga.conf configuration file follows the Desktop Entry Specification, here is a quick summary: it consists of groups of key-value pairs, interspersed with comments.
# qemu-ga configuration sample [general] daemonize = 0 pidfile = /var/run/qemu-ga.pid verbose = 0 method = virtio-serial path = /dev/virtio-ports/org.qemu.guest_agent.0 statedir = /var/run
The list of keys follows the command line options:
Key | Key type |
daemon | boolean |
method | string |
path | string |
logfile | string |
pidfile | string |
fsfreeze-hook | string |
statedir | string |
verbose | boolean |
block-rpcs | string list |
allow-rpcs | string list |
qemu(1)
Michael Roth <mdroth@linux.vnet.ibm.com>
2024, The QEMU Project Developers
January 12, 2025 | 9.2.0 |