mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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'. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
20 lines
586 B
Plaintext
20 lines
586 B
Plaintext
[Unit]
|
|
Description=Xendomains - start and stop guests on boot and shutdown
|
|
Requires=proc-xen.mount xenstored.service
|
|
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
|
|
RemainAfterExit=true
|
|
ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
|
|
ExecStart=-@LIBEXEC_BIN@/xendomains start
|
|
ExecStop=@LIBEXEC_BIN@/xendomains stop
|
|
ExecReload=@LIBEXEC_BIN@/xendomains restart
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|