2017-05-11 20:20:55 +02:00
|
|
|
.. program:: qvm-prefs
|
|
|
|
|
|
|
|
:program:`qvm-prefs` -- List/set various per-VM properties
|
|
|
|
==========================================================
|
|
|
|
|
|
|
|
Synopsis
|
|
|
|
--------
|
|
|
|
|
2017-08-12 22:33:36 +02:00
|
|
|
:command:`qvm-prefs` qvm-prefs [-h] [--verbose] [--quiet] [--force-root] [--help-properties] *VMNAME* [*PROPERTY* [*VALUE* \| --default ]]
|
2017-05-11 20:20:55 +02:00
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. option:: --help, -h
|
|
|
|
|
|
|
|
Show help message and exit.
|
|
|
|
|
|
|
|
.. option:: --help-properties
|
|
|
|
|
|
|
|
List available properties with short descriptions and exit.
|
|
|
|
|
|
|
|
.. option:: --verbose, -v
|
|
|
|
|
|
|
|
Increase verbosity.
|
|
|
|
|
|
|
|
.. option:: --quiet, -q
|
|
|
|
|
|
|
|
Decrease verbosity.
|
|
|
|
|
2017-08-12 22:33:36 +02:00
|
|
|
.. option:: --default, -D
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:33:36 +02:00
|
|
|
Reset property to its default value.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
|
|
|
.. option:: --get, -g
|
|
|
|
|
|
|
|
Ignored; for compatibility with older scripts.
|
|
|
|
|
|
|
|
.. option:: --set, -s
|
|
|
|
|
|
|
|
Ignored; for compatibility with older scripts.
|
|
|
|
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
Property values
|
|
|
|
===============
|
|
|
|
|
|
|
|
Some properties may have strict type, here is description of available values.
|
|
|
|
|
|
|
|
bool
|
|
|
|
----
|
|
|
|
|
|
|
|
Accepted values for true: ``True``, ``true``, ``on``, ``1``
|
|
|
|
Accepted values for false: ``False``, ``false``, ``off``, ``0``
|
|
|
|
|
|
|
|
For example to enable debug mode, use: ``qvm-prefs vmname debug on``
|
|
|
|
|
|
|
|
VM
|
|
|
|
--
|
|
|
|
|
|
|
|
Reference to a VM can be either a VM name, or empty string for no VM (remember
|
|
|
|
to quote it, empty string is not the same as lack of argument!).
|
|
|
|
|
|
|
|
For example to change netvm to sys-whonix, use: ``qvm-prefs vmname netvm
|
|
|
|
sys-whonix``. Or to make VM offline, use: ``qvm-prefs vmname netvm ""``.
|
|
|
|
|
|
|
|
|
2017-05-11 20:20:55 +02:00
|
|
|
Common properties
|
|
|
|
=================
|
|
|
|
|
|
|
|
This list is non-exhaustive. For authoritative listing, see
|
|
|
|
:option:`--help-properties` and documentation of the source code.
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
autostart
|
|
|
|
Property type: bool
|
|
|
|
|
|
|
|
Start the VM during system startup. The default netvm is autostarted
|
|
|
|
regardless of this setting.
|
|
|
|
|
|
|
|
debug
|
|
|
|
Property type: bool
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02: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). Also, for HVM, this will show VGA output, regardless of GUI agent
|
|
|
|
being installed or not.
|
|
|
|
|
|
|
|
default_dispvm
|
|
|
|
Property type: VM
|
|
|
|
|
|
|
|
Which Disposable VMs should be userd when requested by this VM, by default.
|
|
|
|
VM may request different DispVM, if qrexec policy allows that.
|
|
|
|
|
|
|
|
default_user
|
|
|
|
Accepted values: username
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2018-07-11 23:13:27 +02:00
|
|
|
TemplateBasedVM use its template's value as a default.
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
dispvm_allowed
|
|
|
|
Property type: bool
|
|
|
|
|
|
|
|
Allow to use this VM as a base AppVM for Disposable VM. I.e. start this
|
|
|
|
AppVM as Disposable VM.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
|
|
|
include_in_backups
|
2017-08-12 22:37:59 +02:00
|
|
|
Property type: bool
|
2017-05-11 20:20:55 +02: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.
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
ip
|
|
|
|
Accepted values: valid IPv4 address
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
IP address of this VM, used for inter-vm communication.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
kernel
|
|
|
|
Accepted values: kernel version, empty
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
Kernel version to use. Setting to empty value will use bootloader installed
|
2018-07-11 23:13:27 +02:00
|
|
|
in root volume (of VM's template) - available only for HVM.
|
|
|
|
|
|
|
|
TemplateBasedVM use its template's value as a default.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
kernelopts
|
|
|
|
Accepted values: string
|
|
|
|
|
|
|
|
VM kernel parameters (available only for PV VMs). This can be used to
|
|
|
|
workaround some hardware specific problems (eg for NetVM). For VM without
|
|
|
|
PCI devices default means inherit this value from the VM template (if any).
|
|
|
|
Some helpful options (for debugging purposes): ``earlyprintk=xen``,
|
|
|
|
``init=/bin/bash``
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2018-07-11 23:13:27 +02:00
|
|
|
TemplateBasedVM use its template's value as a default.
|
|
|
|
|
2017-05-11 20:20:55 +02:00
|
|
|
label
|
|
|
|
Accepted values: ``red``, ``orange``, ``yellow``, ``green``, ``gray``,
|
|
|
|
``blue``, ``purple``, ``black``
|
|
|
|
|
|
|
|
Color of VM label (icon, appmenus, windows border). If VM is running,
|
|
|
|
change will be applied at first VM restart.
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
mac
|
|
|
|
Accepted values: MAC address, ``auto``
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02: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 licensing requires a static MAC address.
|
|
|
|
For template-based HVM ``auto`` mode means to clone template MAC.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
|
|
|
maxmem
|
|
|
|
Accepted values: memory size in MB
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
2018-07-11 23:13:27 +02:00
|
|
|
TemplateBasedVM use its template's value as a default.
|
|
|
|
|
2017-05-11 20:20:55 +02:00
|
|
|
memory
|
|
|
|
Accepted values: memory size in MB
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2018-07-11 23:13:27 +02:00
|
|
|
TemplateBasedVM use its template's value as a default.
|
|
|
|
|
2017-05-11 20:20:55 +02:00
|
|
|
name
|
|
|
|
Accepted values: alphanumerical name
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
Name of the VM. Cannot be changed.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
netvm
|
|
|
|
Property type: VM
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
To which NetVM connect. Default value (`--default` option) will follow
|
|
|
|
system-global default NetVM (managed by qubes-prefs). Setting to empty name
|
|
|
|
will disable networking in this VM.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
provides_network
|
|
|
|
Property type: bool
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
Should this VM provide network to other VMs. Setting this property to
|
|
|
|
``True`` will allow to set this VM as ``netvm`` to other VMs.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
qrexec_timeout
|
|
|
|
Accepted values: timeout in seconds
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
How log to wait for VM boot and qrexec agent connection. After this timeout,
|
|
|
|
if qrexec agent is still not connected, VM is forcefully shut down.
|
|
|
|
Ignored if qrexec not installed at all (`qrexec` feature not set, see
|
|
|
|
:manpage:`qvm-features(1)`).
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2018-07-11 23:13:27 +02:00
|
|
|
TemplateBasedVM use its template's value as a default.
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
stubdom_mem
|
|
|
|
Accepted values: memory in MB
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
Amount of memory to allocate to stubdomain. By default let Xen choose
|
|
|
|
sensible value. This property is mostly for debugging early stubdomain
|
|
|
|
implementations and may be removed in the future, without notice.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
template
|
|
|
|
Property type: VM
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
TemplateVM on which VM base. It can be changed only when VM isn't running.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
vcpus
|
|
|
|
Accepted values: no of CPUs
|
|
|
|
|
|
|
|
Number of CPU (cores) available to VM. Some VM types (eg DispVM) will not
|
|
|
|
work properly with more than one CPU.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2018-07-11 23:13:27 +02:00
|
|
|
TemplateBasedVM use its template's value as a default.
|
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
virt_mode
|
|
|
|
Accepted values: ``hvm``, ``pv``
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2017-08-12 22:37:59 +02:00
|
|
|
Virtualisation mode in VM should be started. ``hvm`` allow to install
|
|
|
|
operating system without Xen-specific integration.
|
2017-05-11 20:20:55 +02:00
|
|
|
|
2018-07-11 23:13:27 +02:00
|
|
|
TemplateBasedVM use its template's value as a default.
|
|
|
|
|
2017-05-11 20:20:55 +02:00
|
|
|
Authors
|
|
|
|
-------
|
|
|
|
|
|
|
|
| Joanna Rutkowska <joanna at invisiblethingslab dot com>
|
|
|
|
| Rafal Wojtczuk <rafal at invisiblethingslab dot com>
|
|
|
|
| Marek Marczykowski <marmarek at invisiblethingslab dot com>
|
|
|
|
| Wojtek Porczyk <woju at invisiblethingslab dot com>
|
|
|
|
|
|
|
|
.. vim: ts=3 sw=3 et tw=80
|