WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starti

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starting?
From: "Yuvraj Agarwal" <yuvraj@xxxxxxxxxxx>
Date: Wed, 9 Feb 2011 20:39:37 -0800 (PST)
Cc: John McCullough <jmccullo@xxxxxxxxxxx>, 'Asim' <linkasim@xxxxxxxxx>
Delivery-date: Wed, 09 Feb 2011 20:40:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <017a01cbc886$dad1da70$90758f50$@cs.ucsd.edu>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <08f801cbc7b1$f59dcf10$e0d96d30$@cs.ucsd.edu> <017a01cbc886$dad1da70$90758f50$@cs.ucsd.edu>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AQM3tVJA0uzYLxvq5d8Q/WDpF2GIlQFhv3mFkRc+dGA=

Hi All,

 

I did some further debugging and am attaching some more information here. Any help is appreciated of course. Out of curiosity, are we amongst the few people who are trying to use the OCAML version of xenstored?  

If I change the Config.mk to disable building the OCAML version of xenstored xend starts up and I can do “xm info” and everything works fine.

 

If I build the OCAML version of xenstored instead, I get the “xend is not started error” even though I see two xend processes.

Furthermore, if I run the OCAML xentored with an strace, I get the following error:

 

“strace -f /usr/bin/xenstored --no-fork”

 

open("/dev/xen/eventchn", O_RDWR)       = 6

open("/proc/xen/xsd_port", O_RDONLY)    = 7

read(7, "145", 20)                      = 3

close(7)                                = 0

open("/proc/xen/xsd_kva", O_RDWR)       = 7

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 7, 0) = 0x7f2a4f682000

close(7)                                = 0

ioctl(6, EVIOCGVERSION, 0x7fff86ad7320) = -1 ENOTTY (Inappropriate ioctl for device)

write(2, "Fatal error: exception Failure(\""..., 64Fatal error: exception Failure("ioctl bind_interdomain failed")

) = 64

exit_group(2)                           = ?

 

thanks

Yuvraj

 

 

From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Yuvraj Agarwal
Sent: Wednesday, February 09, 2011 10:26 AM
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Cc: Asim
Subject: RE: [Xen-devel] XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starting?

 

I did some more debugging and based on some of the instructions on http://wiki.xen.org/xenwiki/XenParavirtOps I found out that I may have been missing the "gntdev" module.

I rebuilt the kernel and added that in (part of the kernel rather than as a separate module), but still have the same issues. Adding some more debugging information:

 

root@nor:/home/yuvraj# cat /proc/misc

 54 network_throughput

55 network_latency

56 cpu_dma_latency

57 device-mapper

221 mpt2ctl

144 nvram

228 hpet

58 blktap-control

59 gntdev  

 60 evtchn  

 61 autofs

231 snapshot

184 microcode

227 mcelog

62 rfkill

63 vga_arbiter


root@nor:/home/yuvraj# ll /dev/xen/  

total 0

drwxr-xr-x  2 root root     80 2011-02-08 22:07 ./

drwxr-xr-x 17 root root   6120 2011-02-08 22:07 ../

crw-r-----  1 root root 10, 63 2011-02-08 22:07 eventchn

crw-rw----  1 root root 10, 60 2011-02-08 22:07 evtchn

root@nor:/home/yuvraj#

 

Seems like I am missing the /dev/xen/gntdev entries?  Shouldn’t these be created automatically?

Thanks

Yuvraj

 

-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Yuvraj Agarwal
Sent: Tuesday, February 08, 2011 9:02 AM
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starting?

 

Hi All,

 

I just tried a new installation of Ubuntu 10.04 (64bit) + Xen and am having some trouble starting XEN. I am using the latest mercurial checkout

(4.0.2-rc2) and the only change I made was to Config.mk to enable building the OCAML version of xenstored. " CONFIG_OCAML_XENSTORED ?= y". I am using the same kernel I built earlier for a similar Ubuntu 10.04-64bit / Xen

4.0.0 installation (version 2.6.32.12).  I would like to use the OCAML version of xenstored since it is supposed to be much better/faster when starting up a larger number of domUs.

 

The system starts up, and I can see xend started up, but when I do "xm list" or "xm info" I get an error message that xend has not started up?

 

root@EM:/etc# xm list

Error: Unable to connect to xend: No such file or directory. Is xend running?

root@EM:/etc#

 

root@EM:/etc# ps -efw | grep xen

root        88     2  0 Feb07 ?        00:00:00 [xenwatch]

root        89     2  0 Feb07 ?        00:00:00 [xenbus]

root      6254     1  0 Feb07 ?        00:00:00 /usr/bin/python

/usr/sbin/xend start

root      6255  6254  0 Feb07 ?        00:00:17 /usr/bin/python

/usr/sbin/xend start

root      7043  5919  0 08:55 pts/2    00:00:00 grep --color=auto xen

root@EM:/etc#

 

root@EM:/etc# uname -a

Linux EM 2.6.32.12 #11 SMP Fri Jun 18 20:52:17 PDT 2010 x86_64 GNU/Linux root@EM:/etc#

 

I did check and found two difference with my earlier installation of Xen

4.0.0 with the same kernel (although with the standard xenstored).

1. The xen 4.0 installation does show a "xenstored" process also running in addition to these ones.

2.  "xend" seems to be looking for a directory, " /var/lib/xenstored" that doesn't seem to exist on my system?

 

Any pointers to fix this issue?

 

Thanks!

Yuvraj

 

_______________________________________________

Xen-devel mailing list

Xen-devel@xxxxxxxxxxxxxxxxxxx

http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel