core-admin/qubes/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: make vm.gateway6 consistent with vm.gateway 2018-04-03 00:20:06 +02:00
__init__.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
adminvm.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
appvm.py
dispvm.py Fix error message when using invalid VM as a template for DispVM 2018-03-05 23:47:33 +01:00
qubesvm.py Make some properties default to template's value (if any) 2018-07-16 22:02:58 +02:00
standalonevm.py
templatevm.py