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

Re: [Xen-users] patch to fix xendomains non-fatal error (4.5-unstable)

Its solved, sort of. Your patch works if I do this:

So I fake a json config in /var/lib/xen for dom0, set it to
chmod 600 userdata-d.0*.libxl-json

reboot and all the warnings go away and 

systemctl status xendomains
sudo systemctl status xendomains
xendomains.service - Xendomains - start and stop guests on boot and shutdown
   Loaded: loaded (/usr/lib/systemd/system/xendomains.service; enabled)     
  Drop-In: /usr/lib/systemd/system/xendomains.service.d                     
   Active: active (exited) since Sun 2014-10-19 21:17:34 PDT; 26s ago       
  Process: 1022 ExecStart=/usr/lib/xen/bin/xendomains start (code=exited, 
  Process: 1019 ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities 
(code=exited, status=0/SUCCESS)
 Main PID: 1022 (code=exited, status=0/SUCCESS)                                 
   CGroup: /system.slice/xendomains.service                                     
           ââ1145 /usr/sbin/xl create --quiet --defconfig /etc/xen/auto/a_c7min 
           ââ1270 /usr/sbin/xl create --quiet --defconfig 
           ââ1403 /usr/sbin/xl create --quiet --defconfig 

Oct 19 21:17:21 c7dom0 logger[1080]: /etc/xen/scripts/block: add 
Oct 19 21:17:21 c7dom0 logger[1107]: /etc/xen/scripts/vif-bridge: online 
type_if=vif XENBUS_PATH=backend/vif/1/0
Oct 19 21:17:25 c7dom0 logger[1206]: /etc/xen/scripts/block: add 
Oct 19 21:17:26 c7dom0 logger[1228]: /etc/xen/scripts/vif-bridge: online 
type_if=vif XENBUS_PATH=backend/vif/2/0
Oct 19 21:17:30 c7dom0 logger[1371]: /etc/xen/scripts/vif-bridge: online 
type_if=vif XENBUS_PATH=backend/vif/3/0
Oct 19 21:17:34 c7dom0 xendomains[1022]: Starting auto Xen domains: a_c7min 
b_jesdev c_wheez64[  OK  ]
Oct 19 21:17:34 c7dom0 systemd[1]: Started Xendomains - start and stop guests 
on boot and shutdown.
-- snip --

On Sunday, October 19, 2014 3:24 PM, Mark Pryor <tlviewer@xxxxxxxxx> wrote:
BTW, leaving out the contents of

doesn't help. AKAIK, it was never defined. What will it look like?

On Sunday, October 19, 2014 3:00 PM, Mark Pryor <tlviewer@xxxxxxxxx> wrote:
Did the roundtrip, with patching, compiling, building, reinstalling and testing
results are here


the libxl messages are still there about no dom0 config.
At least I learned how to modify ./tools/configure, but the problem remains.

On Sunday, October 19, 2014 2:01 PM, Mark Pryor <tlviewer@xxxxxxxxx> wrote:
I had to patch ./tools/configure.ac and run
-- code ---

cd ./tools
cp configure configure.orig
autoconf configure.ac > configure
chmod +x configure
cd ..
./configure --enable-systemd --prefix=/usr --libdir=/usr/lib --enable-efi
make dist > ~/out.out
-- snip ---

its building now


On Sunday, October 19, 2014 11:39 AM, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
Actually I was bored and took a stab at it.

Does the following patch work for you?

From 57426decaec85af174d8e59421ddad7795643bd7 Mon Sep 17 00:00:00 2001
From: Wei Liu <wei.liu2@xxxxxxxxxx>
Date: Sun, 19 Oct 2014 19:30:22 +0100
Subject: [PATCH] systemd: add xen-init-dom0 service

Also make xendomain service depends on it.

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

diff --git a/tools/hotplug/Linux/systemd/Makefile 
index 9c58b33..8921e71 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

            $(XEN_SYSTEMD_MOUNT)    \
diff --git a/tools/hotplug/Linux/systemd/xen-init-dom0.service.in 
new file mode 100644
index 0000000..9a305ff
--- /dev/null
+++ b/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
@@ -0,0 +1,12 @@
+Description=xen-init-dom0, initialise JSON configuration stub for Dom0
diff --git a/tools/hotplug/Linux/systemd/xendomains.service.in 
index f88c336..8577317 100644
--- a/tools/hotplug/Linux/systemd/xendomains.service.in
+++ b/tools/hotplug/Linux/systemd/xendomains.service.in
@@ -1,7 +1,7 @@
Description=Xendomains - start and stop guests on boot and shutdown
-After=xenstored.service xenconsoled.service
+After=xenstored.service xenconsoled.service xen-init-dom0.service


Xen-users mailing list

Xen-users mailing list



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