tools/hotplug: xendomains.service conflicts with libvirt
PATCH v2 1/1 tools/hotplug: xendomains.service conflicts with libvirt
xendomains will manage guests behind libvirts back:
- libvirt starts a guest
- that guest can be "managed" by libvirt and xl at the same time
- when xendomains runs on shutdown it will save the guest using xl libvirt does not know about this
- when xendomains runs on boot it will restore the saved guest using xl libvirt does not know about this, it will just fail to manage the restored guest
To prevent xendomains from interfering with libvirt add a Conflicts= to xendomains.service. It will cause libvirt to be stopped if xendomains is started manually with 'systemctl start'
---
v2: correct typo, it has to be libvirtd.service
tools/hotplug/Linux/systemd/xendomains.service.in | 1 + 1 file changed, 1 insertion(+)
tools/hotplug/Linux/systemd/xendomains.service.in +1 -0
@@ -5,6 +5,7 @@ After=proc-xen.mount xenstored.service xenconsoled.service xen-init-dom0.service After=network-online.target After=remote-fs.target ConditionPathExists=/proc/xen/capabilities +Conflicts=libvirtd.service [Service] Type=oneshot
Quoted 9 lines · Olaf Hering
xendomains will manage guests behind libvirts back:
- libvirt starts a guest
- that guest can be "managed" by libvirt and xl at the same time
- when xendomains runs on shutdown it will save the guest using xl libvirt does not know about this
- when xendomains runs on boot it will restore the saved guest using xl libvirt does not know about this, it will just fail to manage the restored guest
Quoted 3 lines
To prevent xendomains from interfering with libvirt add a Conflicts= to xendomains.service. It will cause libvirt to be stopped if xendomains is started manually with 'systemctl start'
Missing period at the end.
Quoted 17 lines
Signed-off-by Olaf Hering <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Ian Campbell <[email protected]>Cc Wei Liu <[email protected]>---
v2: correct typo, it has to be libvirtd.servicetools/hotplug/Linux/systemd/xendomains.service.in | 1 + 1 file changed, 1 insertion(+)tools/hotplug/Linux/systemd/xendomains.service.in +0
-0
tools/hotplug/Linux/systemd/xendomains.service.in After=proc-xen.mount xenstored.service xenconsoled.service xen-init-dom0.service · line 9
Quoted 5 lines
tools/hotplug/Linux/systemd/xendomains.service.in +1
-0@@ -5,6 +5,7 @@ After=proc-xen.mount xenstored.service xenconsoled.service xen-init-dom0.service After=network-online.target After=remote-fs.target ConditionPathExists=/proc/xen/capabilities +Conflicts=libvirtd.service
I confirm this is the service name provided by libvirt.git.
Quoted 2 lines
tools/hotplug/Linux/systemd/xendomains.service.in +0
-0[Service] Type=oneshot
Quoted 10 lines · Wei Liu
Quoted 9 lines · Olaf Hering
xendomains will manage guests behind libvirts back:
- libvirt starts a guest
- that guest can be "managed" by libvirt and xl at the same time
- when xendomains runs on shutdown it will save the guest using xl libvirt does not know about this
- when xendomains runs on boot it will restore the saved guest using xl libvirt does not know about this, it will just fail to manage the restored guest
Quoted 6 lines
Quoted 4 lines
To prevent xendomains from interfering with libvirt add a Conflicts= to xendomains.service. It will cause libvirt to be stopped if xendomains is
started manually with 'systemctl start'Missing period at the end.
Fixed and committed with your ack.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel