7 **qemu-ga** [*OPTIONS*]
12 The QEMU Guest Agent is a daemon intended to be run within virtual
13 machines. It allows the hypervisor host to perform various operations
14 in the guest, such as:
16 - get information from the guest
17 - set the guest's system time
19 - sync and freeze the filesystems
21 - reconfigure guest local processors
25 qemu-ga will read a system configuration file on startup (located at
26 |CONFDIR|\ ``/qemu-ga.conf`` by default), then parse remaining
27 configuration options on the command line. For the same key, the last
28 option wins, but the lists accumulate (see below for configuration
31 If an allowed RPCs list is defined in the configuration, then all
32 RPCs will be blocked by default, except for the allowed list.
34 If a blocked RPCs list is defined in the configuration, then all
35 RPCs will be allowed by default, except for the blocked list.
37 If both allowed and blocked RPCs lists are defined in the configuration,
38 then all RPCs will be blocked by default, then the allowed list will
39 be applied, followed by the blocked list.
41 While filesystems are frozen, all except for a designated safe set
42 of RPCs will blocked, regardless of what the general configuration
50 .. option:: -c, --config=PATH
52 Configuration file path (the default is |CONFDIR|\ ``/qemu-ga.conf``,
53 unless overridden by the QGA_CONF environment variable)
55 .. option:: -m, --method=METHOD
57 Transport method: one of ``unix-listen``, ``virtio-serial``, or
58 ``isa-serial``, or ``vsock-listen`` (``virtio-serial`` is the default).
60 .. option:: -p, --path=PATH
62 Device/socket path (the default for virtio-serial is
63 ``/dev/virtio-ports/org.qemu.guest_agent.0``,
64 the default for isa-serial is ``/dev/ttyS0``). Socket addresses for
65 vsock-listen are written as ``<cid>:<port>``.
67 .. option:: -l, --logfile=PATH
69 Set log file path (default is stderr).
71 .. option:: -f, --pidfile=PATH
73 Specify pid file (default is ``/var/run/qemu-ga.pid``).
75 .. option:: -F, --fsfreeze-hook=PATH
77 Enable fsfreeze hook. Accepts an optional argument that specifies
78 script to run on freeze/thaw. Script will be called with
79 'freeze'/'thaw' arguments accordingly (default is
80 |CONFDIR|\ ``/fsfreeze-hook``). If using -F with an argument, do
81 not follow -F with a space (for example:
82 ``-F/var/run/fsfreezehook.sh``).
84 .. option:: -t, --statedir=PATH
86 Specify the directory to store state information (absolute paths only,
87 default is ``/var/run``).
89 .. option:: -v, --verbose
91 Log extra debugging information.
93 .. option:: -V, --version
95 Print version information and exit.
97 .. option:: -d, --daemon
99 Daemonize after startup (detach from terminal).
101 .. option:: -b, --block-rpcs=LIST
103 Comma-separated list of RPCs to disable (no spaces, use ``--block-rpcs=help``
104 to list available RPCs).
106 .. option:: -a, --allow-rpcs=LIST
108 Comma-separated list of RPCs to enable (no spaces, use ``--allow-rpcs=help``
109 to list available RPCs).
111 .. option:: -D, --dump-conf
113 Dump the configuration in a format compatible with ``qemu-ga.conf``
116 .. option:: -h, --help
118 Display this help and exit.
124 The syntax of the ``qemu-ga.conf`` configuration file follows the
125 Desktop Entry Specification, here is a quick summary: it consists of
126 groups of key-value pairs, interspersed with comments.
130 # qemu-ga configuration sample
133 pidfile = /var/run/qemu-ga.pid
135 method = virtio-serial
136 path = /dev/virtio-ports/org.qemu.guest_agent.0
139 The list of keys follows the command line options:
141 ============= ===========
143 ============= ===========
152 block-rpcs string list
153 allow-rpcs string list
154 ============= ===========