core-admin/qubes/tests/vm
Marek Marczykowski-Górecki af2435c0d4
Make some properties default to template's value (if any)
Multiple properties are related to system installed inside the VM, so it
makes sense to have them the same for all the VMs based on the same
template. Modify default value getter to first try get the value from a
template (if any) and only if it fails, fallback to original default
value.
This change is made to those properties:
 - default_user (it was already this way)
 - kernel
 - kernelopts
 - maxmem
 - memory
 - qrexec_timeout
 - vcpus
 - virt_mode

This is especially useful for manually installed templates (like
Windows).

Related to QubesOS/qubes-issues#3585
2018-07-16 22:02:58 +02:00
..
mix vm/mix/net: use ipaddress module for ip and ip6 properties 2017-12-07 01:40:31 +01:00
__init__.py tests: mock vmm.xs 2018-01-15 15:58:34 +01:00
adminvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
appvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
dispvm.py Don't fail create/clone if /var/lib/qubes/TYPE/NAME/ exists 2018-01-21 22:28:47 +00:00
init.py vm: include tag/feature name in event name 2018-01-06 15:05:34 +01:00
qubesvm.py Make some properties default to template's value (if any) 2018-07-16 22:02:58 +02:00