Skip to contentSkip to conversation

tools/hotplug: xendomains.service conflicts with libvirt

PATCH In review Olaf Hering 3 participants 3 messages Oct 29, 2015 – Nov 3, 2015

lore
Share & tools
lore
#0 lore raw

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'

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.service

 tools/hotplug/Linux/systemd/xendomains.service.in | 1 +
 1 file changed, 1 insertion(+)
tools/hotplug/Linux/systemd/xendomains.service.in +1 -0
index 66e2065..c7bfb61 100644
@@ -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
Acked-by on v2 1/1
#1 lore raw
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
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.service

 tools/hotplug/Linux/systemd/xendomains.service.in | 1 +
 1 file changed, 1 insertion(+)
tools/hotplug/Linux/systemd/xendomains.service.in +0 -0
index 66e2065..c7bfb61 100644

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
#2 lore raw
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