From: "Yuvraj Agarwal" Subject: RE: XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starting? Date: Wed, 9 Feb 2011 10:26:18 -0800 (PST) Message-ID: <017a01cbc886$dad1da70$90758f50$@cs.ucsd.edu> References: <08f801cbc7b1$f59dcf10$e0d96d30$@cs.ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0180321115==" Return-path: In-Reply-To: <08f801cbc7b1$f59dcf10$e0d96d30$@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: Asim List-Id: xen-devel@lists.xenproject.org This is a multipart message in MIME format. --===============0180321115== Content-Type: multipart/alternative; boundary="----=_NextPart_000_017B_01CBC843.CCAFFA00" Content-Language: en-us This is a multipart message in MIME format. ------=_NextPart_000_017B_01CBC843.CCAFFA00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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_017B_01CBC843.CCAFFA00 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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_017B_01CBC843.CCAFFA00-- --===============0180321115== 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 --===============0180321115==--