From 679b6468f88d495b2969066f41758ce6ec8c5a4d Mon Sep 17 00:00:00 2001 From: "M. Vefa Bicakci" Date: Sun, 10 Apr 2016 00:00:00 -0400 Subject: [PATCH] qubes-anaconda-addon: Disable libvirt-guests service This service suspends virtual machines at shutdown time and resumes them at start-up time. This unfortunately breaks virtual machines which have PCI devices attached. --- qubes-anaconda-addon/firstboot-qubes-text | 2 +- .../org_qubes_os_initial_setup/gui/spokes/qubes_os.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes-anaconda-addon/firstboot-qubes-text b/qubes-anaconda-addon/firstboot-qubes-text index 949654a..7194085 100755 --- a/qubes-anaconda-addon/firstboot-qubes-text +++ b/qubes-anaconda-addon/firstboot-qubes-text @@ -91,7 +91,7 @@ done set -e -for service in rdisc kdump; do +for service in rdisc kdump libvirt-guests; do systemctl disable ${service}.service || : systemctl stop ${service}.service || : done diff --git a/qubes-anaconda-addon/org_qubes_os_initial_setup/gui/spokes/qubes_os.py b/qubes-anaconda-addon/org_qubes_os_initial_setup/gui/spokes/qubes_os.py index f75c529..4fd61b4 100644 --- a/qubes-anaconda-addon/org_qubes_os_initial_setup/gui/spokes/qubes_os.py +++ b/qubes-anaconda-addon/org_qubes_os_initial_setup/gui/spokes/qubes_os.py @@ -484,7 +484,7 @@ class QubesOsSpoke(FirstbootOnlySpokeMixIn, NormalSpoke): def configure_dom0(self): self.set_stage("Setting up administration VM (dom0)") - for service in [ 'rdisc', 'kdump' ]: + for service in [ 'rdisc', 'kdump', 'libvirt-guests' ]: self.run_command(['systemctl', 'disable', '{}.service'.format(service) ], ignore_failure=True) self.run_command(['systemctl', 'stop', '{}.service'.format(service) ], ignore_failure=True)