2014-11-21 12:30:23 +01:00
|
|
|
.. program:: qvm-prefs
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2014-11-21 12:30:23 +01:00
|
|
|
:program:`qvm-prefs` -- List/set various per-VM properties
|
|
|
|
==========================================================
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2014-11-21 12:30:23 +01:00
|
|
|
Synopsis
|
2015-09-21 23:20:49 +02:00
|
|
|
--------
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2015-09-23 15:31:08 +02:00
|
|
|
:command:`qvm-prefs` qvm-prefs [-h] [--xml *XMLFILE*] [--verbose] [--quiet] [--force-root] [--help-properties] *VMNAME* [*PROPERTY* [*VALUE*\|--delete]]
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2014-11-21 12:30:23 +01:00
|
|
|
Options
|
2015-09-21 23:20:49 +02:00
|
|
|
-------
|
2014-11-21 12:30:23 +01:00
|
|
|
|
|
|
|
.. option:: --help, -h
|
|
|
|
|
2015-09-21 23:20:49 +02:00
|
|
|
Show help message and exit.
|
|
|
|
|
|
|
|
.. option:: --help-properties
|
|
|
|
|
|
|
|
List available properties with short descriptions and exit.
|
|
|
|
|
|
|
|
.. option:: --xml=XMLFILE
|
|
|
|
|
|
|
|
Qubes OS store file.
|
|
|
|
|
|
|
|
.. option:: --verbose, -v
|
2014-11-21 12:30:23 +01:00
|
|
|
|
2015-09-21 23:20:49 +02:00
|
|
|
Increase verbosity.
|
2014-11-21 12:30:23 +01:00
|
|
|
|
2015-09-21 23:20:49 +02:00
|
|
|
.. option:: --quiet, -q
|
2014-11-21 12:30:23 +01:00
|
|
|
|
2015-09-21 23:20:49 +02:00
|
|
|
Decrease verbosity.
|
2014-11-21 12:30:23 +01:00
|
|
|
|
2015-09-21 23:20:49 +02:00
|
|
|
.. option:: --force-root
|
2014-11-21 12:30:23 +01:00
|
|
|
|
2015-09-21 23:20:49 +02:00
|
|
|
Force to run as root.
|
2014-11-21 12:30:23 +01:00
|
|
|
|
2015-09-23 15:31:08 +02:00
|
|
|
.. option:: --unset, --default, --delete, -D
|
|
|
|
|
|
|
|
Unset the property. If is has default value, it will be used instead.
|
|
|
|
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2015-09-21 23:20:49 +02:00
|
|
|
Common properties
|
|
|
|
=================
|
|
|
|
|
|
|
|
This list is non-exhaustive. For authoritative listing, see
|
|
|
|
:option:`--help-properties` and documentation of the source code.
|
|
|
|
|
|
|
|
.. warning::
|
|
|
|
|
|
|
|
This list is from the core2. It is wrong in many cases, some of them obvious,
|
|
|
|
some of them not.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
include_in_backups
|
|
|
|
Accepted values: ``True``, ``False``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2015-09-23 15:31:08 +02:00
|
|
|
pcidevs
|
2014-11-28 18:37:17 +01:00
|
|
|
PCI devices assigned to the VM. Should be edited using
|
|
|
|
:manpage:`qvm-pci(1)` tool.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2015-09-23 15:31:08 +02:00
|
|
|
pci_strictreset
|
2015-05-28 00:06:25 +02:00
|
|
|
Accepted values: ``True``, ``False``
|
|
|
|
|
|
|
|
Control whether prevent assigning to VM a device which does not support any
|
|
|
|
reset method. Generally such devices should not be assigned to any VM,
|
|
|
|
because there will be no way to reset device state after VM shutdown, so
|
|
|
|
the device could attack next VM to which it will be assigned. But in some
|
|
|
|
cases it could make sense - for example when the VM to which it is assigned
|
|
|
|
is trusted one, or is running all the time.
|
|
|
|
|
2013-03-12 16:55:05 +01:00
|
|
|
label
|
2014-11-28 18:37:17 +01:00
|
|
|
Accepted values: ``red``, ``orange``, ``yellow``, ``green``, ``gray``,
|
|
|
|
``blue``, ``purple``, ``black``
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
Color of VM label (icon, appmenus, windows border). If VM is running,
|
|
|
|
change will be applied at first VM restart.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
netvm
|
|
|
|
Accepted values: netvm name, ``default``, ``none``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
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.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2015-04-04 21:04:49 +02:00
|
|
|
dispvm_netvm
|
|
|
|
Accepted values: netvm name, ``default``, ``none``
|
|
|
|
|
|
|
|
Which NetVM should be used for Disposable VMs started by this one. ``default`` is to use the same NetVM as the VM itself.
|
|
|
|
|
2013-03-12 16:55:05 +01:00
|
|
|
maxmem
|
|
|
|
Accepted values: memory size in MB
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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).
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
memory
|
|
|
|
Accepted values: memory size in MB
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
kernel
|
|
|
|
Accepted values: kernel version, ``default``, ``none``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
Kernel version to use (only for PV VMs). Available kernel versions will be
|
|
|
|
listed when no value given (there are in
|
|
|
|
:file:`/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 :file:`/lib/modules` is writable from
|
|
|
|
within VM.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
Accepted values: TemplateVM name
|
|
|
|
|
|
|
|
TemplateVM on which VM base. It can be changed only when VM isn't running.
|
|
|
|
|
|
|
|
vcpus
|
|
|
|
Accepted values: no of CPUs
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
Number of CPU (cores) available to VM. Some VM types (eg DispVM) will not
|
|
|
|
work properly with more than one CPU.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
kernelopts
|
|
|
|
Accepted values: string, ``default``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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``
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
name
|
|
|
|
Accepted values: alphanumerical name
|
|
|
|
|
|
|
|
Name of the VM. Can be only changed when VM isn't running.
|
|
|
|
|
|
|
|
drive
|
2014-11-28 18:37:17 +01:00
|
|
|
Accepted values: [hd:\|cdrom:][backend-vm:]\ *path*
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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.
|
|
|
|
:file:`/dev/sr0`). The same syntax can be used in :option:`qvm-start
|
|
|
|
--drive` - to attach drive only temporarily.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
mac
|
|
|
|
Accepted values: MAC address, ``auto``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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.
|
|
|
|
|
2013-11-21 17:22:01 +01:00
|
|
|
For template-based HVM ``auto`` mode means to clone template MAC.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
default_user
|
|
|
|
Accepted values: username
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
Default user used by :manpage:`qvm-run(1)`. Note that it make sense only on
|
|
|
|
non-standard template, as the standard one always have "user" account.
|
2013-03-12 16:55:05 +01:00
|
|
|
|
|
|
|
debug
|
|
|
|
Accepted values: ``on``, ``off``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
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).
|
|
|
|
|
|
|
|
For template-based HVM, enabling debug mode also disables automatic reset
|
|
|
|
:file:`root.img` (actually :file:`volatile.img`) before each VM startup, so
|
|
|
|
changes made to root filesystem stays intact. To force reset
|
|
|
|
:file:`root.img` when debug mode enabled, either change something in the
|
|
|
|
template (simple start+stop will do, even touch its root.img is enough), or
|
|
|
|
remove VM's :file:`volatile.img` (check the path with
|
|
|
|
:manpage:`qvm-prefs(1)`).
|
2013-11-21 17:22:01 +01:00
|
|
|
|
|
|
|
qrexec_installed
|
|
|
|
Accepted values: ``True``, ``False``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
This HVM have qrexec agent installed. When VM have qrexec agent installed,
|
|
|
|
one can use qvm-run to start VM process, VM will benefit from Qubes RPC
|
|
|
|
services (like file copy, or inter-vm clipboard). This option will be
|
|
|
|
automatically turned on during Qubes Windows Tools installation, but if you
|
|
|
|
install qrexec agent in some other OS, you need to turn this option on
|
|
|
|
manually.
|
2013-11-21 17:22:01 +01:00
|
|
|
|
|
|
|
guiagent_installed
|
|
|
|
Accepted values: ``True``, ``False``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
This HVM have gui agent installed. This option disables full screen GUI
|
2014-12-18 14:36:09 +01:00
|
|
|
virtualization and enables per-window seamless GUI mode. This option will
|
2014-11-28 18:37:17 +01:00
|
|
|
be automatically turned on during Qubes Windows Tools installation, but if
|
|
|
|
you install qubes gui agent in some other OS, you need to turn this option
|
|
|
|
on manually. You can turn this option off to troubleshoot some early HVM OS
|
|
|
|
boot problems (enter safe mode etc), but the option will be automatically
|
|
|
|
enabled at first VM normal startup (and will take effect from the next
|
|
|
|
startup).
|
|
|
|
|
|
|
|
.. note::
|
2013-11-21 17:22:01 +01:00
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
when Windows GUI agent is installed in the VM, SVGA device (used to
|
|
|
|
full screen video) is disabled, so even if you disable this option, you
|
|
|
|
will not get functional full desktop access (on normal VM startup). Use
|
|
|
|
some other means for that (VNC, RDP or so).
|
2013-11-21 17:22:01 +01:00
|
|
|
|
|
|
|
autostart
|
|
|
|
Accepted values: ``True``, ``False``
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
Start the VM during system startup. The default netvm is autostarted
|
|
|
|
regardless of this setting.
|
2013-11-21 17:22:01 +01:00
|
|
|
|
|
|
|
timezone
|
|
|
|
Accepted values: ``localtime``, time offset in seconds
|
|
|
|
|
2014-11-28 18:37:17 +01:00
|
|
|
Set emulated HVM clock timezone. Use ``localtime`` (the default) to use the
|
|
|
|
same time as dom0 have. Note that HVM will get only clock value, not the
|
|
|
|
timezone itself, so if you use ``localtime`` setting, OS inside of HVM
|
|
|
|
should also be configured to treat hardware clock as local time (and have
|
|
|
|
proper timezone set).
|
2013-03-12 16:55:05 +01:00
|
|
|
|
2014-11-21 12:30:23 +01:00
|
|
|
Authors
|
2015-09-21 23:20:49 +02:00
|
|
|
-------
|
|
|
|
|
2013-03-12 16:55:05 +01:00
|
|
|
| Joanna Rutkowska <joanna at invisiblethingslab dot com>
|
|
|
|
| Rafal Wojtczuk <rafal at invisiblethingslab dot com>
|
|
|
|
| Marek Marczykowski <marmarek at invisiblethingslab dot com>
|
2015-09-21 23:20:49 +02:00
|
|
|
| Wojtek Porczyk <woju at invisiblethingslab dot com>
|
|
|
|
|
|
|
|
.. vim: ts=3 sw=3 et tw=80
|