qemu-ga.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. QEMU Guest Agent
  2. ================
  3. Synopsis
  4. --------
  5. **qemu-ga** [*OPTIONS*]
  6. Description
  7. -----------
  8. The QEMU Guest Agent is a daemon intended to be run within virtual
  9. machines. It allows the hypervisor host to perform various operations
  10. in the guest, such as:
  11. - get information from the guest
  12. - set the guest's system time
  13. - read/write a file
  14. - sync and freeze the filesystems
  15. - suspend the guest
  16. - reconfigure guest local processors
  17. - set user's password
  18. - ...
  19. qemu-ga will read a system configuration file on startup (located at
  20. |CONFDIR|\ ``/qemu-ga.conf`` by default), then parse remaining
  21. configuration options on the command line. For the same key, the last
  22. option wins, but the lists accumulate (see below for configuration
  23. file format).
  24. Options
  25. -------
  26. .. program:: qemu-ga
  27. .. option:: -m, --method=METHOD
  28. Transport method: one of ``unix-listen``, ``virtio-serial``, or
  29. ``isa-serial`` (``virtio-serial`` is the default).
  30. .. option:: -p, --path=PATH
  31. Device/socket path (the default for virtio-serial is
  32. ``/dev/virtio-ports/org.qemu.guest_agent.0``,
  33. the default for isa-serial is ``/dev/ttyS0``)
  34. .. option:: -l, --logfile=PATH
  35. Set log file path (default is stderr).
  36. .. option:: -f, --pidfile=PATH
  37. Specify pid file (default is ``/var/run/qemu-ga.pid``).
  38. .. option:: -F, --fsfreeze-hook=PATH
  39. Enable fsfreeze hook. Accepts an optional argument that specifies
  40. script to run on freeze/thaw. Script will be called with
  41. 'freeze'/'thaw' arguments accordingly (default is
  42. |CONFDIR|\ ``/fsfreeze-hook``). If using -F with an argument, do
  43. not follow -F with a space (for example:
  44. ``-F/var/run/fsfreezehook.sh``).
  45. .. option:: -t, --statedir=PATH
  46. Specify the directory to store state information (absolute paths only,
  47. default is ``/var/run``).
  48. .. option:: -v, --verbose
  49. Log extra debugging information.
  50. .. option:: -V, --version
  51. Print version information and exit.
  52. .. option:: -d, --daemon
  53. Daemonize after startup (detach from terminal).
  54. .. option:: -b, --blacklist=LIST
  55. Comma-separated list of RPCs to disable (no spaces, ``?`` to list
  56. available RPCs).
  57. .. option:: -D, --dump-conf
  58. Dump the configuration in a format compatible with ``qemu-ga.conf``
  59. and exit.
  60. .. option:: -h, --help
  61. Display this help and exit.
  62. Files
  63. -----
  64. The syntax of the ``qemu-ga.conf`` configuration file follows the
  65. Desktop Entry Specification, here is a quick summary: it consists of
  66. groups of key-value pairs, interspersed with comments.
  67. ::
  68. # qemu-ga configuration sample
  69. [general]
  70. daemonize = 0
  71. pidfile = /var/run/qemu-ga.pid
  72. verbose = 0
  73. method = virtio-serial
  74. path = /dev/virtio-ports/org.qemu.guest_agent.0
  75. statedir = /var/run
  76. The list of keys follows the command line options:
  77. ============= ===========
  78. Key Key type
  79. ============= ===========
  80. daemon boolean
  81. method string
  82. path string
  83. logfile string
  84. pidfile string
  85. fsfreeze-hook string
  86. statedir string
  87. verbose boolean
  88. blacklist string list
  89. ============= ===========
  90. See also
  91. --------
  92. :manpage:`qemu(1)`