qvm-prefs.rst 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. dispvm_allowed
  60. Property type: bool
  61. Allow to use this VM as a base AppVM for Disposable VM. I.e. start this
  62. AppVM as Disposable VM.
  63. include_in_backups
  64. Property type: bool
  65. Control whenever this VM will be included in backups by default (for now
  66. works only in qubes-manager). You can always manually select or
  67. deselect any VM for backup.
  68. ip
  69. Accepted values: valid IPv4 address
  70. IP address of this VM, used for inter-vm communication.
  71. kernel
  72. Accepted values: kernel version, empty
  73. Kernel version to use. Setting to empty value will use bootloader installed
  74. in root volume (of VM's template) - available only for HVM
  75. kernelopts
  76. Accepted values: string
  77. VM kernel parameters (available only for PV VMs). This can be used to
  78. workaround some hardware specific problems (eg for NetVM). For VM without
  79. PCI devices default means inherit this value from the VM template (if any).
  80. Some helpful options (for debugging purposes): ``earlyprintk=xen``,
  81. ``init=/bin/bash``
  82. label
  83. Accepted values: ``red``, ``orange``, ``yellow``, ``green``, ``gray``,
  84. ``blue``, ``purple``, ``black``
  85. Color of VM label (icon, appmenus, windows border). If VM is running,
  86. change will be applied at first VM restart.
  87. mac
  88. Accepted values: MAC address, ``auto``
  89. Can be used to force specific of virtual ethernet card in the VM. Setting
  90. to ``auto`` will use automatic-generated MAC - based on VM id. Especially
  91. useful when licensing requires a static MAC address.
  92. For template-based HVM ``auto`` mode means to clone template MAC.
  93. maxmem
  94. Accepted values: memory size in MB
  95. Maximum memory size available for this VM. Dynamic memory management (aka
  96. qmemman) will not be able to balloon over this limit. For VMs with
  97. qmemman disabled, this will be overridden by *memory* property (at VM
  98. startup).
  99. memory
  100. Accepted values: memory size in MB
  101. Initial memory size for VM. This should be large enough to allow VM startup
  102. - before qmemman starts managing memory for this VM. For VM with qmemman
  103. disabled, this is static memory size.
  104. name
  105. Accepted values: alphanumerical name
  106. Name of the VM. Cannot be changed.
  107. netvm
  108. Property type: VM
  109. To which NetVM connect. Default value (`--default` option) will follow
  110. system-global default NetVM (managed by qubes-prefs). Setting to empty name
  111. will disable networking in this VM.
  112. provides_network
  113. Property type: bool
  114. Should this VM provide network to other VMs. Setting this property to
  115. ``True`` will allow to set this VM as ``netvm`` to other VMs.
  116. qrexec_timeout
  117. Accepted values: timeout in seconds
  118. How log to wait for VM boot and qrexec agent connection. After this timeout,
  119. if qrexec agent is still not connected, VM is forcefully shut down.
  120. Ignored if qrexec not installed at all (`qrexec` feature not set, see
  121. :manpage:`qvm-features(1)`).
  122. stubdom_mem
  123. Accepted values: memory in MB
  124. Amount of memory to allocate to stubdomain. By default let Xen choose
  125. sensible value. This property is mostly for debugging early stubdomain
  126. implementations and may be removed in the future, without notice.
  127. template
  128. Property type: VM
  129. TemplateVM on which VM base. It can be changed only when VM isn't running.
  130. vcpus
  131. Accepted values: no of CPUs
  132. Number of CPU (cores) available to VM. Some VM types (eg DispVM) will not
  133. work properly with more than one CPU.
  134. virt_mode
  135. Accepted values: ``hvm``, ``pv``
  136. Virtualisation mode in VM should be started. ``hvm`` allow to install
  137. operating system without Xen-specific integration.
  138. Authors
  139. -------
  140. | Joanna Rutkowska <joanna at invisiblethingslab dot com>
  141. | Rafal Wojtczuk <rafal at invisiblethingslab dot com>
  142. | Marek Marczykowski <marmarek at invisiblethingslab dot com>
  143. | Wojtek Porczyk <woju at invisiblethingslab dot com>
  144. .. vim: ts=3 sw=3 et tw=80