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

Re: [Xen-users] xen 4.5-unstable, oxenstored cannot start (centos 7, kernel 3.17.0)





2014-10-10 11:07 GMT+04:00 Olaf Hering <olaf@xxxxxxxxx>:
On Fri, Oct 10, ÐÑÐÐÐÑÐÐ ÐÑÐÑÐÐ wrote:

> I'm running CentOS 7 with mainline kernel 3.17 built by myself.
> I've configured the kernel with all the xen parameters as
> builtin instead of modules. Yesterday I've decided to try to
> build and install Xen from sources. I've pulled the latest
> sources from git, changed the branch to staging and built

I've checked again. Sorry, I did not switch to the staging branch.
I'm on the master branch.
Â
> and installed xen like this:

The question is how configure was invoked.

Just './configure'
Â

> make xen
> make tools
> make stubdom
> sudo make install-xen
> sudo make install-tools
> sudo make install-stubdom

Generally 'configure && make && sudo make install' will do it.Â

> Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd: [/etc/rc.d/init.d/
> xencommons:10] Failed to add LSB Provides name xenstored.service, ignoring:
> File exists
> Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd: [/etc/rc.d/init.d/
> xencommons:10] Failed to add LSB Provides name xenconsoled.service, ignoring:
> File exists

systemd is supposed to ignore a provides which comes from a sysv script
(like xenstored) if a service with the same name exists (like
xenstored.service). So that should not be fatal.

> 2. modules
>
> Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find
> module 'evtchn'

> Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd: Unit
> systemd-modules-load.service entered failed state.

This looks bad. Is evtchn loaded, does it exists, is it perhaps compiled
into the kernel?

Sorry, I did not show show some lines where some additional infoÂ
was specified in the /var/log/messages. Here are the lines before
'Failed to find module 'evtchn''. etc:

Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Module 'xen_evtchn' is builtin
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Module 'xen_gntdev' is builtin
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Module 'xen_gntalloc' is builtin
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd: Started Create list of required static device nodes for the current kernel.
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Module 'xen_blkback' is builtin
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Module 'xen_netback' is builtin
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Module 'xen_pciback' is builtin

And then:

Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'evtchn'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'gntdev'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'netbk'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'blkbk'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'xen-scsibk'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'usbbk'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'pciback'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Module 'xen_acpi_processor' is builtin
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'blktap2'
Oct Â9 02:03:05 kvmxen-centos7-test1-nb systemd-modules-load: Failed to find module 'blktap'

Two question I have:

1. As you see there are builtin modules that start with 'xen_'. Here are the config parameters
from kernel menuconfig:

Symbol: XEN_DEV_EVTCHN [=y]
Symbol: XEN_GNTDEV [=y]
Symbol: XEN_NETDEV_BACKEND [=y]
Symbol: XEN_BLKDEV_BACKEND [=y]
Symbol: XEN_PCIDEV_BACKEND [=y]

Why does it try to load 'evtchn' when there is just no such module? We see that there is
the builtin 'xen_evtchn' and no 'evtchn' module. The same thing other 'failed' modules.

2. I did not find any kernel config parameters to build modules: usbbk, xen-scsibk,
blktap2 and blktap. What are these? Where to take them if not from the kernel
source tree?
Â

> 3. oxenstored
>
> Oct Â9 02:03:12 kvmxen-centos7-test1-nb xencommons: Starting /usr/local/sbin/
> oxenstored...Fatal error: exception Failure("ocaml_sd_listen_fds() failed to
> get any sockets")

Looks like it was not started via systemd, so it wont get its socked if
xen.git was configured with 'configure --enable-systemd'.

Again, I just issued './configure' while building. Maybe I should
issue the 'configure --enable-systemd' ?
Is it possible to configure xen build not to use sysV scripts at all and use systemd?


> 4. xencommons
>
> Oct Â9 02:03:43 kvmxen-centos7-test1-nb xencommons:
> ..............................
> Oct Â9 02:03:43 kvmxen-centos7-test1-nb xencommons: Could not start xenstored
> Oct Â9 02:03:43 kvmxen-centos7-test1-nb systemd: xencommons.service: control
> process exited, code=exited status=1
> Oct Â9 02:03:43 kvmxen-centos7-test1-nb systemd: Failed to start LSB: Start/
> stop xenstored and xenconsoled.
> Oct Â9 02:03:43 kvmxen-centos7-test1-nb systemd: Unit xencommons.service
> entered failed state.

This looks like a conflict between sysv scripts and systemd service
files.

> What can cause these problems? I don't understand yet where to dig..

First check if the running kernel has proper drivers to act as a dom0.

I suppose by drivers you meant all the modules that I have problems with
I described above?
Â

Olaf


Thank you!
Grigory.

--
Best regards,
Grigory Ptashko

+7 (916) 1489766
grigory.ptashko@xxxxxxxxx
skype grigory_ptashko

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

 


Rackspace

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