qvm-prefs.rst 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. .. program:: qvm-prefs
  2. :program:`qvm-prefs` -- List/set various per-VM properties
  3. ==========================================================
  4. Synopsis
  5. --------
  6. :command:`qvm-prefs` qvm-prefs [-h] [--verbose] [--quiet] [--force-root] [--help-properties] *VMNAME* [*PROPERTY* [*VALUE* \| --default ]]
  7. Options
  8. -------
  9. .. option:: --help, -h
  10. Show help message and exit.
  11. .. option:: --help-properties
  12. List available properties with short descriptions and exit.
  13. .. option:: --verbose, -v
  14. Increase verbosity.
  15. .. option:: --quiet, -q
  16. Decrease verbosity.
  17. .. option:: --default, -D
  18. Reset property to its default value.
  19. .. option:: --get, -g
  20. Ignored; for compatibility with older scripts.
  21. .. option:: --set, -s
  22. Ignored; for compatibility with older scripts.
  23. Property values
  24. ===============
  25. Some properties may have strict type, here is description of available values.
  26. bool
  27. ----
  28. Accepted values for true: ``True``, ``true``, ``on``, ``1``
  29. Accepted values for false: ``False``, ``false``, ``off``, ``0``
  30. For example to enable debug mode, use: ``qvm-prefs vmname debug on``
  31. VM
  32. --
  33. Reference to a VM can be either a VM name, or empty string for no VM (remember
  34. to quote it, empty string is not the same as lack of argument!).
  35. For example to change netvm to sys-whonix, use: ``qvm-prefs vmname netvm
  36. sys-whonix``. Or to make VM offline, use: ``qvm-prefs vmname netvm ""``.
  37. Common properties
  38. =================
  39. This list is non-exhaustive. For authoritative listing, see
  40. :option:`--help-properties` and documentation of the source code.
  41. autostart
  42. Property type: bool
  43. Start the VM during system startup. The default netvm is autostarted
  44. regardless of this setting.
  45. debug
  46. Property type: bool
  47. Enables debug mode for VM. This can be used to turn on/off verbose logging
  48. in many Qubes components at once (gui virtualization, VM kernel, some other
  49. services). Also, for HVM, this will show VGA output, regardless of GUI agent
  50. being installed or not.
  51. default_dispvm
  52. Property type: VM
  53. Which Disposable VMs should be userd when requested by this VM, by default.
  54. VM may request different DispVM, if qrexec policy allows that.
  55. default_user
  56. Accepted values: username
  57. Default user used by :manpage:`qvm-run(1)`. Note that it make sense only on
  58. non-standard template, as the standard one always have "user" account.
  59. TemplateBasedVM use its template's value as a default.
  60. dispvm_allowed
  61. Property type: bool
  62. Allow to use this VM as a base AppVM for Disposable VM. I.e. start this
  63. AppVM as Disposable VM.
  64. include_in_backups
  65. Property type: bool
  66. Control whenever this VM will be included in backups by default (for now
  67. works only in qubes-manager). You can always manually select or
  68. deselect any VM for backup.
  69. ip
  70. Accepted values: valid IPv4 address
  71. IP address of this VM, used for inter-vm communication.
  72. kernel
  73. Accepted values: kernel version, empty
  74. Kernel version to use. Setting to empty value will use bootloader installed
  75. in root volume (of VM's template) - available only for HVM.
  76. TemplateBasedVM use its template's value as a default.
  77. kernelopts
  78. Accepted values: string
  79. VM kernel parameters (available only for PV VMs). This can be used to
  80. workaround some hardware specific problems (eg for NetVM). For VM without
  81. PCI devices default means inherit this value from the VM template (if any).
  82. Some helpful options (for debugging purposes): ``earlyprintk=xen``,
  83. ``init=/bin/bash``
  84. TemplateBasedVM use its template's value as a default.
  85. label
  86. Accepted values: ``red``, ``orange``, ``yellow``, ``green``, ``gray``,
  87. ``blue``, ``purple``, ``black``
  88. Color of VM label (icon, appmenus, windows border). If VM is running,
  89. change will be applied at first VM restart.
  90. mac
  91. Accepted values: MAC address, ``auto``
  92. Can be used to force specific of virtual ethernet card in the VM. Setting
  93. to ``auto`` will use automatic-generated MAC - based on VM id. Especially
  94. useful when licensing requires a static MAC address.
  95. For template-based HVM ``auto`` mode means to clone template MAC.
  96. maxmem
  97. Accepted values: memory size in MB
  98. Maximum memory size available for this VM. Dynamic memory management (aka
  99. qmemman) will not be able to balloon over this limit. For VMs with
  100. qmemman disabled, this will be overridden by *memory* property (at VM
  101. startup).
  102. TemplateBasedVM use its template's value as a default.
  103. memory
  104. Accepted values: memory size in MB
  105. Initial memory size for VM. This should be large enough to allow VM startup
  106. - before qmemman starts managing memory for this VM. For VM with qmemman
  107. disabled, this is static memory size.
  108. TemplateBasedVM use its template's value as a default.
  109. name
  110. Accepted values: alphanumerical name
  111. Name of the VM. Cannot be changed.
  112. netvm
  113. Property type: VM
  114. To which NetVM connect. Default value (`--default` option) will follow
  115. system-global default NetVM (managed by qubes-prefs). Setting to empty name
  116. will disable networking in this VM.
  117. provides_network
  118. Property type: bool
  119. Should this VM provide network to other VMs. Setting this property to
  120. ``True`` will allow to set this VM as ``netvm`` to other VMs.
  121. qrexec_timeout
  122. Accepted values: timeout in seconds
  123. How log to wait for VM boot and qrexec agent connection. After this timeout,
  124. if qrexec agent is still not connected, VM is forcefully shut down.
  125. Ignored if qrexec not installed at all (`qrexec` feature not set, see
  126. :manpage:`qvm-features(1)`).
  127. TemplateBasedVM use its template's value as a default.
  128. stubdom_mem
  129. Accepted values: memory in MB
  130. Amount of memory to allocate to stubdomain. By default let Xen choose
  131. sensible value. This property is mostly for debugging early stubdomain
  132. implementations and may be removed in the future, without notice.
  133. template
  134. Property type: VM
  135. TemplateVM on which VM base. It can be changed only when VM isn't running.
  136. vcpus
  137. Accepted values: no of CPUs
  138. Number of CPU (cores) available to VM. Some VM types (eg DispVM) will not
  139. work properly with more than one CPU.
  140. TemplateBasedVM use its template's value as a default.
  141. virt_mode
  142. Accepted values: ``hvm``, ``pv``
  143. Virtualisation mode in VM should be started. ``hvm`` allow to install
  144. operating system without Xen-specific integration.
  145. TemplateBasedVM use its template's value as a default.
  146. Authors
  147. -------
  148. | Joanna Rutkowska <joanna at invisiblethingslab dot com>
  149. | Rafal Wojtczuk <rafal at invisiblethingslab dot com>
  150. | Marek Marczykowski <marmarek at invisiblethingslab dot com>
  151. | Wojtek Porczyk <woju at invisiblethingslab dot com>
  152. .. vim: ts=3 sw=3 et tw=80