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.
This commit is contained in:
M. Vefa Bicakci 2016-04-10 00:00:00 -04:00
parent 1cda66e1ee
commit 679b6468f8
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)