qvm-prefs.rst 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. =========
  2. qvm-prefs
  3. =========
  4. NAME
  5. ====
  6. qvm-prefs - list/set various per-VM properties
  7. :Date: 2012-04-11
  8. SYNOPSIS
  9. ========
  10. | qvm-prefs -l [options] <vm-name>
  11. | qvm-prefs -g [options] <vm-name> <property>
  12. | qvm-prefs -s [options] <vm-name> <property> [...]
  13. OPTIONS
  14. =======
  15. -h, --help
  16. Show this help message and exit
  17. -l, --list
  18. List properties of a specified VM
  19. -g, --get
  20. Get a single property of a specified VM
  21. -s, --set
  22. Set properties of a specified VM
  23. PROPERTIES
  24. ==========
  25. include_in_backups
  26. Accepted values: ``True``, ``False``
  27. Control whenever this VM will be included in backups by default (for now
  28. works only in qubes-manager). You can always manually select or
  29. deselect any VM for backup.
  30. pcidevs
  31. PCI devices assigned to the VM. Should be edited using qvm-pci tool.
  32. pci_strictreset
  33. Accepted values: ``True``, ``False``
  34. Control whether prevent assigning to VM a device which does not support any
  35. reset method. Generally such devices should not be assigned to any VM,
  36. because there will be no way to reset device state after VM shutdown, so
  37. the device could attack next VM to which it will be assigned. But in some
  38. cases it could make sense - for example when the VM to which it is assigned
  39. is trusted one, or is running all the time.
  40. label
  41. Accepted values: ``red``, ``orange``, ``yellow``, ``green``, ``gray``,
  42. ``blue``, ``purple``, ``black``
  43. Color of VM label (icon, appmenus, windows border). If VM is running,
  44. change will be applied at first VM restart.
  45. netvm
  46. Accepted values: netvm name, ``default``, ``none``
  47. To which NetVM connect. Setting to ``default`` will follow system-global
  48. default NetVM (managed by qubes-prefs). Setting to ``none`` will disable
  49. networking in this VM.
  50. dispvm_netvm
  51. Accepted values: netvm name, ``default``, ``none``
  52. Which NetVM should be used for Disposable VMs started by this one.
  53. ``default`` is to use the same NetVM as the VM itself.
  54. maxmem
  55. Accepted values: memory size in MB
  56. Maximum memory size available for this VM. Dynamic memory management (aka
  57. qmemman) will not be able to balloon over this limit. For VMs with
  58. qmemman disabled, this will be overridden by *memory* property (at VM
  59. startup).
  60. memory
  61. Accepted values: memory size in MB
  62. Initial memory size for VM. This should be large enough to allow VM startup
  63. - before qmemman starts managing memory for this VM. For VM with qmemman
  64. disabled, this is static memory size.
  65. kernel
  66. Accepted values: kernel version, ``default``, ``none``
  67. Kernel version to use (only for PV VMs). Available kernel versions will be
  68. listed when no value given (there are in /var/lib/qubes/vm-kernels).
  69. Setting to ``default`` will follow system-global default kernel (managed
  70. via qubes-prefs). Setting to ``none`` will use "kernels" subdir in
  71. VM directory - this allows having VM-specific kernel; also this the only
  72. case when /lib/modules is writable from within VM.
  73. template
  74. Accepted values: TemplateVM name
  75. TemplateVM on which VM base. It can be changed only when VM isn't running.
  76. vcpus
  77. Accepted values: no of CPUs
  78. Number of CPU (cores) available to VM. Some VM types (eg DispVM) will not
  79. work properly with more than one CPU.
  80. kernelopts
  81. Accepted values: string, ``default``
  82. VM kernel parameters (available only for PV VMs). This can be used to
  83. workaround some hardware specific problems (eg for NetVM). Setting to
  84. ``default`` will use some reasonable defaults (currently different for VMs
  85. with PCI devices and without). For VM without PCI devices
  86. ``default`` option means inherit this value from the VM template (if any).
  87. Some helpful options (for debugging purposes): ``earlyprintk=xen``,
  88. ``init=/bin/bash``
  89. name
  90. Accepted values: alphanumerical name
  91. Name of the VM. Can be only changed when VM isn't running.
  92. drive
  93. Accepted values: [hd:\|cdrom:][backend-vm:]path
  94. Additional drive for the VM (available only for HVMs). This can be used to
  95. attach installation image. ``path`` can be file or physical device (eg.
  96. /dev/sr0). The same syntax can be used in qvm-start --drive - to
  97. attach drive only temporarily.
  98. mac
  99. Accepted values: MAC address, ``auto``
  100. Can be used to force specific of virtual ethernet card in the VM. Setting
  101. to ``auto`` will use automatic-generated MAC - based on VM id. Especially
  102. useful when some licencing depending on static MAC address.
  103. For template-based HVM ``auto`` mode means to clone template MAC.
  104. default_user
  105. Accepted values: username
  106. Default user used by qvm-run. Note that it make sense only on non-standard
  107. template, as the standard one always have "user" account.
  108. debug
  109. Accepted values: ``on``, ``off``
  110. Enables debug mode for VM. This can be used to turn on/off verbose logging
  111. in many qubes components at once (gui virtualization, VM kernel, some other
  112. services).
  113. For template-based HVM, enabling debug mode also disables automatic reset
  114. root.img (actually volatile.img) before each VM startup, so changes made to
  115. root filesystem stays intact. To force reset root.img when debug mode
  116. enabled, either change something in the template (simple start+stop will
  117. do, even touch its root.img is enough), or remove VM's volatile.img
  118. (check the path with qvm-prefs).
  119. qrexec_installed
  120. Accepted values: ``True``, ``False``
  121. This HVM have qrexec agent installed. When VM have qrexec agent installed,
  122. one can use qvm-run to start VM process, VM will benefit from Qubes RPC
  123. services (like file copy, or inter-vm clipboard). This option will be
  124. automatically turned on during Qubes Windows Tools installation, but if you
  125. install qrexec agent in some other OS, you need to turn this option on
  126. manually.
  127. guiagent_installed
  128. Accepted values: ``True``, ``False``
  129. This HVM have gui agent installed. This option disables full screen GUI
  130. virtualization and enables per-window seemless GUI mode. This option will
  131. be automatically turned on during Qubes Windows Tools installation, but if
  132. you install qubes gui agent in some other OS, you need to turn this option
  133. on manually. You can turn this option off to troubleshoot some early HVM OS
  134. boot problems (enter safe mode etc), but the option will be automatically
  135. enabled at first VM normal startup (and will take effect from the next
  136. startup).
  137. *Notice:* when Windows GUI agent is installed in the VM, SVGA device (used
  138. to full screen video) is disabled, so even if you disable this
  139. option, you will not get functional full desktop access (on normal VM
  140. startup). Use some other means for that (VNC, RDP or so).
  141. autostart
  142. Accepted values: ``True``, ``False``
  143. Start the VM during system startup. The default netvm is autostarted
  144. regardless of this setting.
  145. timezone
  146. Accepted values: ``localtime``, time offset in seconds
  147. Set emulated HVM clock timezone. Use ``localtime`` (the default) to use the
  148. same time as dom0 have. Note that HVM will get only clock value, not the
  149. timezone itself, so if you use ``localtime`` setting, OS inside of HVM
  150. should also be configured to treat hardware clock as local time (and have
  151. proper timezone set).
  152. AUTHORS
  153. =======
  154. | Joanna Rutkowska <joanna at invisiblethingslab dot com>
  155. | Rafal Wojtczuk <rafal at invisiblethingslab dot com>
  156. | Marek Marczykowski <marmarek at invisiblethingslab dot com>