qvm-prefs.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 -s [options] <vm-name> <property> [...]
  12. OPTIONS
  13. =======
  14. -h, --help
  15. Show this help message and exit
  16. -l, --list
  17. List properties of a specified VM
  18. -s, --set
  19. Set properties of a specified VM
  20. PROPERTIES
  21. ==========
  22. include_in_backups
  23. Accepted values: ``True``, ``False``
  24. Control whenever this VM will be included in backups by default (for now works only in qubes-manager). You can always manually select or deselect any VM for backup.
  25. pcidevs
  26. PCI devices assigned to the VM. Should be edited using qvm-pci tool.
  27. label
  28. Accepted values: ``red``, ``orange``, ``yellow``, ``green``, ``gray``, ``blue``, ``purple``, ``black``
  29. Color of VM label (icon, appmenus, windows border). If VM is running, change will be applied at first VM restart.
  30. netvm
  31. Accepted values: netvm name, ``default``, ``none``
  32. To which NetVM connect. Setting to ``default`` will follow system-global default NetVM (managed by qubes-prefs). Setting to ``none`` will disable networking in this VM.
  33. *Notice:* when setting to ``none``, firewall will be set to block all traffic - it will be used by DispVM started from this VM. Setting back to some NetVM will _NOT_ restore previous firewall settings.
  34. maxmem
  35. Accepted values: memory size in MB
  36. Maximum memory size available for this VM. Dynamic memory management (aka qmemman) will not be able to balloon over this limit. For VMs with qmemman disabled, this will be overridden by *memory* property (at VM startup).
  37. memory
  38. Accepted values: memory size in MB
  39. Initial memory size for VM. This should be large enough to allow VM startup - before qmemman starts managing memory for this VM. For VM with qmemman disabled, this is static memory size.
  40. kernel
  41. Accepted values: kernel version, ``default``, ``none``
  42. Kernel version to use (only for PV VMs). Available kernel versions will be listed when no value given (there are in /var/lib/qubes/vm-kernels). Setting to ``default`` will follow system-global default kernel (managed via qubes-prefs). Setting to ``none`` will use "kernels" subdir in VM directory - this allows having VM-specific kernel; also this the only case when /lib/modules is writable from within VM.
  43. template
  44. Accepted values: TemplateVM name
  45. TemplateVM on which VM base. It can be changed only when VM isn't running.
  46. vcpus
  47. Accepted values: no of CPUs
  48. Number of CPU (cores) available to VM. Some VM types (eg DispVM) will not work properly with more than one CPU.
  49. kernelopts
  50. Accepted values: string, ``default``
  51. VM kernel parameters (available only for PV VMs). This can be used to workaround some hardware specific problems (eg for NetVM). Setting to ``default`` will use some reasonable defaults (currently different for VMs with PCI devices and without). Some helpful options (for debugging purposes): ``earlyprintk=xen``, ``init=/bin/bash``
  52. name
  53. Accepted values: alphanumerical name
  54. Name of the VM. Can be only changed when VM isn't running.
  55. drive
  56. Accepted values: [hd:\|cdrom:][backend-vm:]path
  57. Additional drive for the VM (available only for HVMs). This can be used to attach installation image. ``path`` can be file or physical device (eg. /dev/sr0). The same syntax can be used in qvm-start --drive - to attach drive only temporarily.
  58. mac
  59. Accepted values: MAC address, ``auto``
  60. Can be used to force specific of virtual ethernet card in the VM. Setting to ``auto`` will use automatic-generated MAC - based on VM id. Especially useful when some licencing depending on static MAC address.
  61. default_user
  62. Accepted values: username
  63. Default user used by qvm-run. Note that it make sense only on non-standard template, as the standard one always have "user" account.
  64. debug
  65. Accepted values: ``on``, ``off``
  66. Enables debug mode for VM. This can be used to turn on/off verbose logging in many qubes components at once (gui virtualization, VM kernel, some other services).
  67. AUTHORS
  68. =======
  69. | Joanna Rutkowska <joanna at invisiblethingslab dot com>
  70. | Rafal Wojtczuk <rafal at invisiblethingslab dot com>
  71. | Marek Marczykowski <marmarek at invisiblethingslab dot com>