qubes.vm.adminvm
– Dom0¶
This module contains the AdminVM implementation
- class qubes.vm.adminvm.AdminVM(*args, **kwargs)[source]¶
Bases:
BaseVM
Dom0
- async run_service(service, source=None, user=None, filter_esc=False, autostart=False, gui=False, **kwargs)[source]¶
Run service on this VM
- Parameters:
service (str) – service name
source (qubes.vm.qubesvm.QubesVM) – source domain as presented to this VM
user (str) – username to run service as
filter_esc (bool) – filter escape sequences to protect terminal emulator
autostart (bool) – if
True
, machine will be started if it is not runninggui (bool) – when autostarting, also start gui daemon
- Return type:
Note
User
root
is redefined toSYSTEM
in the Windows agent code
- async run_service_for_stdio(*args, input=None, **kwargs)[source]¶
Run a service, pass an optional input and return (stdout, stderr).
Raises an exception if return code != 0.
args and kwargs are passed verbatim to
run_service()
.Warning
There are some combinations if stdio-related kwargs, which are not filtered for problems originating between the keyboard and the chair.
- start(start_guid=True, notify_function=None, mem_required=None)[source]¶
Always raises an exception.
- default_dispvm¶
Default VM to be used as Disposable VM for service calls.
- icon¶
freedesktop icon name, suitable for use in
PyQt4.QtGui.QIcon.fromTheme()
- include_in_backups¶
If this domain is to be included in default backup.
- keyboard_layout¶
Keyboard layout for this VM
- property libvirt_domain¶
Libvirt object for dom0.
- name¶
- qid¶
- property untrusted_qdb¶
QubesDB handle for this domain.
- updateable¶
True if this machine may be updated on its own.
- uuid¶