From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: Re: Regarding Xenstore/Xenbus Date: Wed, 22 Nov 2006 16:52:09 +0100 Message-ID: <20061122155209.GA317@snarc.org> References: <1164060166.24087.53.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Umar Farooq Minhas Cc: xen-devel@lists.xensource.com, aball@linux.vnet.ibm.com List-Id: xen-devel@lists.xenproject.org On Mon, Nov 20, 2006 at 08:21:20PM -0500, Umar Farooq Minhas wrote: > Thanks for your reply. I was into trying out xenstore acess using > 'libxenstore.so'. I have copied the exact code that I am trying to run > (most of this comes from xenstore wiki). The issue is that I am able to run > this code from dom0 but when I try to run it from inside a domU after the > first printf output i.e. "Msg1" it terminates abnormally saying "unknown > error". My guess is that its failing when it calls xs_daemon_open(). I > can't figure out what am i missing. Some processes need to be started > before i can acess xenstore? Are there any packages that need to be > installed in domU to access xenstore? I already have 'xen-devel', 'xen-lib' > and 'xen-tools' packages installed inside domU. Please help. you need to use "domain_open" instead of "daemon_open" in domU. daemon_open is using a direct unix socket to communicate with xenstored. this socket is only accessible to dom0. domU need to use the other way to communicate with xenstored. Cheers, -- Vincent Hanquez