All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pasi Kärkkäinen" <pasik@iki.fi>
To: Yuvraj Agarwal <yuvraj@cs.ucsd.edu>
Cc: xen-devel@lists.xensource.com,
	John McCullough <jmccullo@cs.ucsd.edu>,
	'Asim' <linkasim@gmail.com>
Subject: Re: XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starting?
Date: Thu, 10 Feb 2011 09:11:42 +0200	[thread overview]
Message-ID: <20110210071142.GF2754@reaktio.net> (raw)
In-Reply-To: <02bc01cbc8dc$87fdab20$97f90160$@cs.ucsd.edu>

On Wed, Feb 09, 2011 at 08:39:37PM -0800, Yuvraj Agarwal wrote:
>    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?
> 

At least Citrix XenServer and XCP do use oxenstored..

-- Pasi

>    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
>    [1]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
> 
>    [2]Xen-devel@lists.xensource.com
> 
>    [3]http://lists.xensource.com/xen-devel
> 
> References
> 
>    Visible links
>    1. http://wiki.xen.org/xenwiki/XenParavirtOps
>    2. mailto:Xen-devel@lists.xensource.com
>    3. http://lists.xensource.com/xen-devel

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

      reply	other threads:[~2011-02-10  7:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-08 17:02 XEN 4.0.2-rc2 - using OCAML xenstored -- xend not starting? Yuvraj Agarwal
2011-02-09  8:22 ` Vincent Hanquez
2011-02-10  8:42   ` Ian Campbell
2011-02-10 17:53     ` Yuvraj Agarwal
2011-02-10 17:56       ` John McCullough
2011-02-10 18:08       ` Ian Campbell
2011-02-09 18:26 ` Yuvraj Agarwal
2011-02-10  4:39   ` Yuvraj Agarwal
2011-02-10  7:11     ` Pasi Kärkkäinen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110210071142.GF2754@reaktio.net \
    --to=pasik@iki.fi \
    --cc=jmccullo@cs.ucsd.edu \
    --cc=linkasim@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yuvraj@cs.ucsd.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.