From: "Yuvraj Agarwal" Subject: RE: XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starting? Date: Wed, 9 Feb 2011 20:39:37 -0800 (PST) Message-ID: <02bc01cbc8dc$87fdab20$97f90160$@cs.ucsd.edu> References: <08f801cbc7b1$f59dcf10$e0d96d30$@cs.ucsd.edu> <017a01cbc886$dad1da70$90758f50$@cs.ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0338130911==" Return-path: In-Reply-To: <017a01cbc886$dad1da70$90758f50$@cs.ucsd.edu> Content-Language: en-us List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: John McCullough , 'Asim' List-Id: xen-devel@lists.xenproject.org This is a multipart message in MIME format. --===============0338130911== Content-Type: multipart/alternative; boundary="----=_NextPart_000_02BD_01CBC899.79DCB510" Content-Language: en-us This is a multipart message in MIME format. ------=_NextPart_000_02BD_01CBC899.79DCB510 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Yuvraj Agarwal Sent: Wednesday, February 09, 2011 10:26 AM To: xen-devel@lists.xensource.com 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@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Yuvraj Agarwal Sent: Tuesday, February 08, 2011 9:02 AM To: xen-devel@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-devel ------=_NextPart_000_02BD_01CBC899.79DCB510 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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)       =3D = 6

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

read(7, = "145", = 20)           &nbs= p;          =3D = 3

close(7)          = ;            =           =3D = 0

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

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

close(7)          = ;            =           =3D = 0

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

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

) =3D 64

exit_group(2)         =             &= nbsp;     =3D ?

 

thanks

Yuvraj =

 

 

From:= = xen-devel-bounces@lists.xensource.com = [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of = Yuvraj Agarwal
Sent: Wednesday, February 09, 2011 10:26 = AM
To: xen-devel@lists.xensource.com
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/x= enwiki/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@lists.xensource.com = [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Yuvraj = Agarwal
Sent: Tuesday, February 08, 2011 9:02 AM
To: = xen-devel@lists.xensource.com
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 ?=3D 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=3Dauto = 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@lists.xensource= .com

http://lists.xensource.co= m/xen-devel

------=_NextPart_000_02BD_01CBC899.79DCB510-- --===============0338130911== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0338130911==--