qemu/qemu-ga.sysconfig
Daniel P. Berrangé 58957c219b Introduce QEMU_GA_ARGS env variable to replace BLACKLIST_RPC
We previously replaced use of --blacklist with -b since the former
was deleted in QEMU 9.1.

We want to avoid use of the 'black list' term downstream too though.
In future we're also expecting further command line args to be added
to the guest agent which are desirable to set.

Rather than hardcode the use of -b in the unit file, define a more
general QEMU_GA_ARGS variable that enables the sysconfig file to
set arbitrary extra command line arguments.

A pre-start script is used to rewrite existing sysconfig files that
users may have present to ensure upgradability.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-09-16 15:40:12 +01:00

21 lines
918 B
Plaintext

# This is a systemd environment file, not a shell script.
# It provides settings for "/lib/systemd/system/qemu-guest-agent.service".
# Extra arguments to pass to the guest QEMU, for example, to filter our
# RPC commands. See 'qemu-ga(8)' man page for permissible arguments.
#
# For example, to filter out a set of commands the --block-rpcs commands:
#
#QEMU_GA_ARGS=--block-rpcs=guest-file-open,guest-file-close,guest-file-read,guest-file-write,guest-file-seek,guest-file-flush,guest-exec,guest-exec-status
# Fsfreeze hook script specification.
#
# FSFREEZE_HOOK_PATHNAME=/dev/null : disables the feature.
#
# FSFREEZE_HOOK_PATHNAME=/path/to/executable : enables the feature with the
# specified binary or shell script.
#
# FSFREEZE_HOOK_PATHNAME= : enables the feature with the
# default value (invoke "qemu-ga --help" to interrogate).
FSFREEZE_HOOK_PATHNAME=/etc/qemu-ga/fsfreeze-hook