core-admin/qubes
Marek Marczykowski-Górecki 691a6f4d8c
vm/dispvm: add auto_cleanup property, unify creating new DispVM
Add auto_cleanup property, which remove DispVM after its shutdown
- this is to unify DispVM handling - less places needing special
handling after DispVM shutdown.

New DispVM inherit all settings from respective AppVM. Move this from
classmethod `DispVM.from_appvm()`, to DispVM constructor. This unify
creating new DispVM with any other VM class.
Notable exception are attached devices - because only one running VM can
have a device attached, this would prevent second DispVM started from
the same AppVM. If one need DispVM with some device attached, one can
create DispVM with auto_cleanup=False. Such DispVM will still not have
persistent storage (as any other DispVM).

Tests included.

QubesOS/qubes-issues#2974
2017-08-06 20:54:09 +02:00
..
api Merge branch 'stats' 2017-07-29 05:05:32 +02:00
ext block: add support for devtype option 2017-08-01 15:20:36 +02:00
qmemman qmemman: don't load qubes.xml 2017-07-26 03:26:58 +02:00
storage storage/file: fix disk usage reporting 2017-07-30 18:36:23 +02:00
tests vm/dispvm: add auto_cleanup property, unify creating new DispVM 2017-08-06 20:54:09 +02:00
tools tools/qubesd: increase loglevel with --debug option 2017-07-20 12:19:01 +02:00
vm vm/dispvm: add auto_cleanup property, unify creating new DispVM 2017-08-06 20:54:09 +02:00
__init__.py Merge remote-tracking branch 'origin/policy-adminvm' 2017-07-04 15:51:30 +02:00
app.py app: fix LVM default storage pool 2017-07-30 14:57:26 +02:00
backup.py backup: update last backup timestamp only when backup succeed 2017-07-29 04:47:44 +02:00
config.py api/admin: plug backup into Admin API 2017-07-20 12:19:01 +02:00
core2migration.py Change vm.hvm into vm.virt_mode 2017-07-17 12:26:10 +02:00
devices.py devices: always pass persistent parameter to device-list-attached event 2017-08-01 15:20:19 +02:00
dochelpers.py Fix docstrings formatting 2017-07-04 04:27:36 +02:00
events.py events: add support for async event handlers 2017-07-04 13:04:22 +02:00
exc.py admin: implement admin.vm.tag.* 2017-06-20 00:54:16 +02:00
firewall.py firewall: raise ValueError on invalid hostname in dsthost= 2017-07-26 03:26:58 +02:00
log.py qubes: port core to python3 2017-01-20 16:42:51 +01:00
rngdoc.py Make pylint happy 2017-04-21 16:57:35 +02:00
tarwriter.py tarwriter: use new PAX format, instead of old GNU for sparse files 2017-07-21 03:14:06 +02:00
utils.py api/admin: plug backup into Admin API 2017-07-20 12:19:01 +02:00