From: helen zhan Subject: Re: Newbie of xen-unstable: xend start failure Date: Tue, 20 Jul 2004 09:13:09 -0700 (PDT) Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <20040720161309.61734.qmail@web21503.mail.yahoo.com> References: <40FD2CA7.6050200@hpl.hp.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-632602210-1090339989=:67066" Return-path: In-Reply-To: <40FD2CA7.6050200@hpl.hp.com> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Mike Wray Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org --0-632602210-1090339989=:67066 Content-Type: text/plain; charset=us-ascii I was using root to start the xen daemon but I didn't boot into the XenLinux. Maybe that's why the xc module was not there. Thanks & Best wishes, Helen Mike Wray wrote: helen zhan wrote: > Hi, > > I just installed xen-unstable two hours ago following the instructions > in the README file. I used "make world" and "make install" to compile > and install it sucessfully. But when I tried to start the daemon by > "xend start", I got the error as below. > > It looks like that a file "xc.py" was missing in the directory > "/usr/lib/python2.2/site-packages/xen/lowlevel". Does anyone have any > clue how to fix it? The xc module failed to import because it couldn't open the command interface (that's the line ERROR:... below). After that everything trying to use xc got an error. The usual reason for this is that xend was not being run by root - if you weren't root when running 'xend start', try again as root. > > XendRoot>configure> > > XendRoot>set_config> config_path= /etc/xen/xend-config.sxp > > XendRoot>set_config> loading > > XendRoot> config= ['xend-config', ['xend-port', '8000'], > ['xend-address', ''], ['network-script', 'network'], ['vif-bridge', > 'xen-br0'], ['vif-script', 'vif-bridge'], ['vif-antispoof', 'no']] > > ERROR: Could not obtain handle on privileged command interface (2 = No > such file or directory) > > Traceback (most recent call last): > > File "/usr/sbin/xend", line 23, in ? > > from xen.xend.server import SrvDaemon > > File "/usr/lib/python2.2/site-packages/xen/xend/server/SrvDaemon.py", > line 38, in ? > > import channel > > File "/usr/lib/python2.2/site-packages/xen/xend/server/channel.py", line > 3, in ? > > import xen.lowlevel.xc; xc = xen.lowlevel.xc.new() > > xen.lowlevel.xc.error: (2, 'No such file or directory') > > > Thanks & Best wishes, > > Helen > > Do you Yahoo!? > Vote for the stars of Yahoo!'s next ad campaign! > Mike --------------------------------- Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! --0-632602210-1090339989=:67066 Content-Type: text/html; charset=us-ascii
I was using root to start the xen daemon but I didn't boot into the XenLinux. Maybe that's why the xc module was not there.
 
Thanks & Best wishes,
 
Helen

Mike Wray <mike.wray@hpl.hp.com> wrote:
helen zhan wrote:

> Hi,
>
> I just installed xen-unstable two hours ago following the instructions
> in the README file. I used "make world" and "make install" to compile
> and install it sucessfully. But when I tried to start the daemon by
> "xend start", I got the error as below.
>
> It looks like that a file "xc.py" was missing in the directory
> "/usr/lib/python2.2/site-packages/xen/lowlevel". Does anyone have any
> clue how to fix it?

The xc module failed to import because it couldn't open the command interface
(that's the line ERROR:... below). After that everything trying to use xc got
an error. The usual reason for this is that xend was not being run by root -
if you weren't root when running 'x end start', try again as root.

>
> XendRoot>configure>
>
> XendRoot>set_config> config_path= /etc/xen/xend-config.sxp
>
> XendRoot>set_config> loading
>
> XendRoot> config= ['xend-config', ['xend-port', '8000'],
> ['xend-address', ''], ['network-script', 'network'], ['vif-bridge',
> 'xen-br0'], ['vif-script', 'vif-bridge'], ['vif-antispoof', 'no']]
>
> ERROR: Could not obtain handle on privileged command interface (2 = No
> such file or directory)
>
> Traceback (most recent call last):
>
> File "/usr/sbin/xend", line 23, in ?
>
> from xen.xend.server import SrvDaemon
>
> File "/usr/lib/python2.2/site-packages/xen/xend/server/SrvDaemon.py",
> line 38, in ?
>
> import channel
>
> File "/usr/lib/python2.2/site-packages/xen/xend/server/channel.py", line
> 3, in ?
>
> impo rt xen.lowlevel.xc; xc = xen.lowlevel.xc.new()
>
> xen.lowlevel.xc.error: (2, 'No such file or directory')
>
>
> Thanks & Best wishes,
>
> Helen
>
> Do you Yahoo!?
> Vote for the stars of Yahoo!'s next ad campaign!
>

Mike


Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign! --0-632602210-1090339989=:67066-- ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click