[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC 2/3] systemd: add xen-init-dom0 service



If its still RFC stage, then how can we be sure that the JSON config file for 
dom0 is written to /var/lib/xen?
/var/lib/xen/userdata-d.0.00000000-0000-0000-0000-000000000000.libxl-json

If its not there by the time xendomains starts then the rest of the patch can't 
help.

When I run
`xl list -l 0`
I can see the same errors. libxl is trying to open the above file and get the 
JSON config for dom0. If I hack a stub config into this file everything starts 
working as expected. I can't modify xen-init-dom0.c 


I have no idea how to make sure its writing the above JSON config. Can someone 
take a look?
thanks,
Mark

BTW, I am willing to test a set of patches in C7+systemd twice a week. I 
noticed that `git pull` for unstable is populated mostly on Friday. So I will 
build at most on Tuesday and Friday. 




On Monday, October 20, 2014 8:17 AM, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
Please rerun autoconf after applying this patch.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
tools/configure.ac                                   |    1 +
tools/hotplug/Linux/systemd/Makefile                 |    1 +
tools/hotplug/Linux/systemd/xen-init-dom0.service.in |   14 ++++++++++++++
3 files changed, 16 insertions(+)
create mode 100644 tools/hotplug/Linux/systemd/xen-init-dom0.service.in

diff --git a/tools/configure.ac b/tools/configure.ac
index f584798..62ccf47 100644
--- a/tools/configure.ac
+++ b/tools/configure.ac
@@ -15,6 +15,7 @@ hotplug/Linux/init.d/xendomains
hotplug/Linux/systemd/proc-xen.mount
hotplug/Linux/systemd/var-lib-xenstored.mount
hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service
+hotplug/Linux/systemd/xen-init-dom0.service
hotplug/Linux/systemd/xen-watchdog.service
hotplug/Linux/systemd/xenconsoled.service
hotplug/Linux/systemd/xendomains.service
diff --git a/tools/hotplug/Linux/systemd/Makefile 
b/tools/hotplug/Linux/systemd/Makefile
index 0c40a73..51c10fe 100644
--- a/tools/hotplug/Linux/systemd/Makefile
+++ b/tools/hotplug/Linux/systemd/Makefile
@@ -14,6 +14,7 @@ XEN_SYSTEMD_SERVICE += xenconsoled.service
XEN_SYSTEMD_SERVICE += xen-qemu-dom0-disk-backend.service
XEN_SYSTEMD_SERVICE += xendomains.service
XEN_SYSTEMD_SERVICE += xen-watchdog.service
+XEN_SYSTEMD_SERVICE += xen-init-dom0.service

ALL_XEN_SYSTEMD =    $(XEN_SYSTEMD_MODULES)  \
            $(XEN_SYSTEMD_MOUNT)    \
diff --git a/tools/hotplug/Linux/systemd/xen-init-dom0.service.in 
b/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
new file mode 100644
index 0000000..79f13c8
--- /dev/null
+++ b/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
@@ -0,0 +1,14 @@
+[Unit]
+Description=xen-init-dom0, initialise JSON configuration stub for Dom0
+Requires=xenstored.socket
+After=xenstored.service
+ConditionVirtualization=xen
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
+ExecStart=@LIBEXEC_BIN@/xen-init-dom0
+
+[Install]
+WantedBy=multi-user.target

-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.