1*27a296fcSPeter MaydellQEMU Guest Agent 2*27a296fcSPeter Maydell================ 3*27a296fcSPeter Maydell 4*27a296fcSPeter MaydellSynopsis 5*27a296fcSPeter Maydell-------- 6*27a296fcSPeter Maydell 7*27a296fcSPeter Maydell**qemu-ga** [*OPTIONS*] 8*27a296fcSPeter Maydell 9*27a296fcSPeter MaydellDescription 10*27a296fcSPeter Maydell----------- 11*27a296fcSPeter Maydell 12*27a296fcSPeter MaydellThe QEMU Guest Agent is a daemon intended to be run within virtual 13*27a296fcSPeter Maydellmachines. It allows the hypervisor host to perform various operations 14*27a296fcSPeter Maydellin the guest, such as: 15*27a296fcSPeter Maydell 16*27a296fcSPeter Maydell- get information from the guest 17*27a296fcSPeter Maydell- set the guest's system time 18*27a296fcSPeter Maydell- read/write a file 19*27a296fcSPeter Maydell- sync and freeze the filesystems 20*27a296fcSPeter Maydell- suspend the guest 21*27a296fcSPeter Maydell- reconfigure guest local processors 22*27a296fcSPeter Maydell- set user's password 23*27a296fcSPeter Maydell- ... 24*27a296fcSPeter Maydell 25*27a296fcSPeter Maydellqemu-ga will read a system configuration file on startup (located at 26*27a296fcSPeter Maydell|CONFDIR|\ ``/qemu-ga.conf`` by default), then parse remaining 27*27a296fcSPeter Maydellconfiguration options on the command line. For the same key, the last 28*27a296fcSPeter Maydelloption wins, but the lists accumulate (see below for configuration 29*27a296fcSPeter Maydellfile format). 30*27a296fcSPeter Maydell 31*27a296fcSPeter MaydellOptions 32*27a296fcSPeter Maydell------- 33*27a296fcSPeter Maydell 34*27a296fcSPeter Maydell.. program:: qemu-ga 35*27a296fcSPeter Maydell 36*27a296fcSPeter Maydell.. option:: -m, --method=METHOD 37*27a296fcSPeter Maydell 38*27a296fcSPeter Maydell Transport method: one of ``unix-listen``, ``virtio-serial``, or 39*27a296fcSPeter Maydell ``isa-serial`` (``virtio-serial`` is the default). 40*27a296fcSPeter Maydell 41*27a296fcSPeter Maydell.. option:: -p, --path=PATH 42*27a296fcSPeter Maydell 43*27a296fcSPeter Maydell Device/socket path (the default for virtio-serial is 44*27a296fcSPeter Maydell ``/dev/virtio-ports/org.qemu.guest_agent.0``, 45*27a296fcSPeter Maydell the default for isa-serial is ``/dev/ttyS0``) 46*27a296fcSPeter Maydell 47*27a296fcSPeter Maydell.. option:: -l, --logfile=PATH 48*27a296fcSPeter Maydell 49*27a296fcSPeter Maydell Set log file path (default is stderr). 50*27a296fcSPeter Maydell 51*27a296fcSPeter Maydell.. option:: -f, --pidfile=PATH 52*27a296fcSPeter Maydell 53*27a296fcSPeter Maydell Specify pid file (default is ``/var/run/qemu-ga.pid``). 54*27a296fcSPeter Maydell 55*27a296fcSPeter Maydell.. option:: -F, --fsfreeze-hook=PATH 56*27a296fcSPeter Maydell 57*27a296fcSPeter Maydell Enable fsfreeze hook. Accepts an optional argument that specifies 58*27a296fcSPeter Maydell script to run on freeze/thaw. Script will be called with 59*27a296fcSPeter Maydell 'freeze'/'thaw' arguments accordingly (default is 60*27a296fcSPeter Maydell |CONFDIR|\ ``/fsfreeze-hook``). If using -F with an argument, do 61*27a296fcSPeter Maydell not follow -F with a space (for example: 62*27a296fcSPeter Maydell ``-F/var/run/fsfreezehook.sh``). 63*27a296fcSPeter Maydell 64*27a296fcSPeter Maydell.. option:: -t, --statedir=PATH 65*27a296fcSPeter Maydell 66*27a296fcSPeter Maydell Specify the directory to store state information (absolute paths only, 67*27a296fcSPeter Maydell default is ``/var/run``). 68*27a296fcSPeter Maydell 69*27a296fcSPeter Maydell.. option:: -v, --verbose 70*27a296fcSPeter Maydell 71*27a296fcSPeter Maydell Log extra debugging information. 72*27a296fcSPeter Maydell 73*27a296fcSPeter Maydell.. option:: -V, --version 74*27a296fcSPeter Maydell 75*27a296fcSPeter Maydell Print version information and exit. 76*27a296fcSPeter Maydell 77*27a296fcSPeter Maydell.. option:: -d, --daemon 78*27a296fcSPeter Maydell 79*27a296fcSPeter Maydell Daemonize after startup (detach from terminal). 80*27a296fcSPeter Maydell 81*27a296fcSPeter Maydell.. option:: -b, --blacklist=LIST 82*27a296fcSPeter Maydell 83*27a296fcSPeter Maydell Comma-separated list of RPCs to disable (no spaces, ``?`` to list 84*27a296fcSPeter Maydell available RPCs). 85*27a296fcSPeter Maydell 86*27a296fcSPeter Maydell.. option:: -D, --dump-conf 87*27a296fcSPeter Maydell 88*27a296fcSPeter Maydell Dump the configuration in a format compatible with ``qemu-ga.conf`` 89*27a296fcSPeter Maydell and exit. 90*27a296fcSPeter Maydell 91*27a296fcSPeter Maydell.. option:: -h, --help 92*27a296fcSPeter Maydell 93*27a296fcSPeter Maydell Display this help and exit. 94*27a296fcSPeter Maydell 95*27a296fcSPeter MaydellFiles 96*27a296fcSPeter Maydell----- 97*27a296fcSPeter Maydell 98*27a296fcSPeter Maydell 99*27a296fcSPeter MaydellThe syntax of the ``qemu-ga.conf`` configuration file follows the 100*27a296fcSPeter MaydellDesktop Entry Specification, here is a quick summary: it consists of 101*27a296fcSPeter Maydellgroups of key-value pairs, interspersed with comments. 102*27a296fcSPeter Maydell 103*27a296fcSPeter Maydell:: 104*27a296fcSPeter Maydell 105*27a296fcSPeter Maydell # qemu-ga configuration sample 106*27a296fcSPeter Maydell [general] 107*27a296fcSPeter Maydell daemonize = 0 108*27a296fcSPeter Maydell pidfile = /var/run/qemu-ga.pid 109*27a296fcSPeter Maydell verbose = 0 110*27a296fcSPeter Maydell method = virtio-serial 111*27a296fcSPeter Maydell path = /dev/virtio-ports/org.qemu.guest_agent.0 112*27a296fcSPeter Maydell statedir = /var/run 113*27a296fcSPeter Maydell 114*27a296fcSPeter MaydellThe list of keys follows the command line options: 115*27a296fcSPeter Maydell 116*27a296fcSPeter Maydell============= =========== 117*27a296fcSPeter MaydellKey Key type 118*27a296fcSPeter Maydell============= =========== 119*27a296fcSPeter Maydelldaemon boolean 120*27a296fcSPeter Maydellmethod string 121*27a296fcSPeter Maydellpath string 122*27a296fcSPeter Maydelllogfile string 123*27a296fcSPeter Maydellpidfile string 124*27a296fcSPeter Maydellfsfreeze-hook string 125*27a296fcSPeter Maydellstatedir string 126*27a296fcSPeter Maydellverbose boolean 127*27a296fcSPeter Maydellblacklist string list 128*27a296fcSPeter Maydell============= =========== 129*27a296fcSPeter Maydell 130*27a296fcSPeter MaydellSee also 131*27a296fcSPeter Maydell-------- 132*27a296fcSPeter Maydell 133*27a296fcSPeter Maydell:manpage:`qemu(1)` 134