[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

On Mon, Oct 20, 2014 at 11:53:26AM -0700, Mark Pryor wrote:
> 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

You can delete that file before rebooting.

But this series alone won't work though. You need to remove two more
lines in xenstored.service.

diff --git a/tools/hotplug/Linux/systemd/xenstored.service.in 
index 013e69e..e3bf837 100644
--- a/tools/hotplug/Linux/systemd/xenstored.service.in
+++ b/tools/hotplug/Linux/systemd/xenstored.service.in
@@ -17,8 +17,6 @@ ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
 ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb*
 ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@
 ExecStart=/bin/sh -c "exec $XENSTORED --no-fork $XENSTORED_ARGS"
-ExecStartPost=-@bindir@/xenstore-write "/local/domain/0/name" "Domain-0"
-ExecStartPost=-@bindir@/xenstore-write "/local/domain/0/domid" 0

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

Delete that file before rebooting. xen-init-dom0 will create one when it

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

That's fine.  I'm pretty sure we're very close to the bottom of this
problem. It's just one missing systemd service. But Olaf is still
working on refining systemd stuffs, so you might as well just wait.


Xen-devel mailing list



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