Skip to contentSkip to conversation

xl is unable to find xenstored.pid

DISCUSSION Larry Ing 4 participants 5 messages Aug 4, 2011

lore
Share & tools
lore

Larry Ing

author
#0 lore raw

I just downloaded Xen-4.1.1 from xen.org, compiled it, and installed it. I then compiled kernel 3.0.0 and added the hypervisor and dom0 kernel in a grub 2 entry. After booting, I executed "xl list," to confirm the hypervisor was running. I was greeted with this message:

libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running? failed to stat /var/run/xenstored.pid: No such file or directory cannot init xl context

I poked around and found there is a folder within /var/run called "xenstored" and I found there was no service called xenstored in /etc/init.d. There are the services I found in init.d:

xencommons
xend
xendomains
xen-watchdog

After extracting the xen source here are the commands I used to compile:

make xen
make tools
make stubdom
make install-xen
make install-tools
make install-stubdom

author
#1 lore raw

Both Xend and Xencommons are not running. I attempted to start xencommons which the tries to start xenstored. While xenstored is being started, I receive the following error:

XENBUS: Unable to read cpu state (eight times)
Could not start xenstored

I also note there is nothing within /proc/xen.

Quoted 33 lines · Larry Ing

I just downloaded Xen-4.1.1 from xen.org, compiled it, and installed it. I then compiled kernel 3.0.0 and added the hypervisor and dom0 kernel in a grub 2 entry. After booting, I executed "xl list," to confirm the hypervisor was running. I was greeted with this message:

libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running? failed to stat /var/run/xenstored.pid: No such file or directory cannot init xl context

I poked around and found there is a folder within /var/run called "xenstored" and I found there was no service called xenstored in /etc/init.d. There are the services I found in init.d:

xencommons
xend
xendomains
xen-watchdog

After extracting the xen source here are the commands I used to compile:

make xen
make tools
make stubdom
make install-xen
make install-tools
make install-stubdom

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 8 lines · Larry Ing

Both Xend and Xencommons are not running.  I attempted to start xencommons which the tries to start xenstored.  While xenstored is being started, I receive the following error:

XENBUS: Unable to read cpu state (eight times)
Could not start xenstored

I also note there is nothing within /proc/xen.

Can you go through the troubleshooting suggested here:
http://wiki.xensource.com/xenwiki/XenCommonProblems#head-26434581604cc8357d9762aaaf040e8d87b37752

Thanks,
Todd

Signature · 4 lines
Todd Deshane
http://www.linkedin.com/in/deshantm
http://www.xen.org/products/cloudxen.html
http://runningxen.com/
#3 lore raw

I actually did look through that. Xenstored is now starting, but all I did was change some boot options for the hypervisor in grub. I still do not understand what causes "XENBUS: unable to read CPU state." I have been searching through google for a couple of weeks now and have not found any reasons as to why this is occurring.

Quoted 16 lines · Todd Deshane
Quoted 8 lines · Larry Ing

Both Xend and Xencommons are not running. I attempted to start xencommons which the tries to start xenstored. While xenstored is being started, I receive the following error:

XENBUS: Unable to read cpu state (eight times)
Could not start xenstored

I also note there is nothing within /proc/xen.

Can you go through the troubleshooting suggested here:
http://wiki.xensource.com/xenwiki/XenCommonProblems#head-26434581604cc8357d9762aaaf040e8d87b37752

Thanks,
Todd

#4 lore raw
Quoted 2 lines · Lawrence Ing

I still do
not understand what causes "XENBUS: unable to read CPU state."

We get these all the time when booting and everything works as expected.

I suspect you're after the wrong problem.