[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Cant start xend on Ubuntu 9.10 with Xen 3.4.2 and lastest pv-ops dom0 kernel


  • To: Kentaro KAWAMOTO <kentaro.kawamoto@xxxxxxxxx>
  • From: Afshar Ganjali <afshar_g@xxxxxxxxx>
  • Date: Sun, 29 Nov 2009 14:08:04 -0800 (PST)
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sun, 29 Nov 2009 14:08:54 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=54VPEvUXlcQhWxyUXMvIteATgbuYfQTLUnsDGJGbYoaZBf+8fty4BWbU5MJ10Vb89WqSimyNS6182ezHtRJ9CPNWcMI51vhBFEDRQ/tkpiR2cJ2nS1u/mrDtTmfCrkKLuXPGjII7o++3Jb78WYnbARTlW6BOAkNtoU1G2O4Xtuc=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>


   I was starting it up with the sudo command. The problem was the fstab file. You need to add a line to /etc/fstab: (ânone /proc/xen xenfs defaults 0 0â). After adding this, it worked for me but I don't know about your problem.

--Afshar;


From: Kentaro KAWAMOTO <kentaro.kawamoto@xxxxxxxxx>
To: Afshar Ganjali <afshar.g@xxxxxxxxx>
Sent: Sun, November 29, 2009 8:15:38 AM
Subject: Re: [Xen-users] Cant start xend on Ubuntu 9.10 with Xen 3.4.2 and lastest pv-ops dom0 kernel

On Fri, Nov 27, 2009 at 1:43 PM, Afshar Ganjali <afshar_g@xxxxxxxxx> wrote:
>    I Installed Xen 3.4.2 from source on Ubuntu 9.10 using the pv-ops dom0
> kernel from Jeremy' git tree. Now the system boots up but trying "sudo xend
> start" raises this issue:
>
> ERROR Internal error: Could not obtain handle on privileged command
> interface (2 = No such file or directory)

Did you start up xend with non-root user?

I am trying Xen with the same environment as you, that is
Ubuntu 9.10, Xen 3.4.2, and pv-ops dom0.

When I start up xend with normal user, I get similar error message:
---
.ERROR Internal error: Could not obtain handle on privileged command
interface (13 = Permission denied)
Traceback (most recent call last):
  File "/usr/sbin/xend", line 36, in <module>
    from xen.xend.server import SrvDaemon
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
line 26, in <module>
    import relocate
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/relocate.py",
line 28, in <module>
    from xen.xend import XendDomain
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py",
line 35, in <module>
    from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendCheckpoint.py",
line 20, in <module>
    from xen.xend import balloon, sxp, image
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/image.py",
line 46, in <module>
    xc = xen.lowlevel.xc.xc()
xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle
on privileged command interface (13 = Permission denied)')
---

When xend starts up with root privilege, however, I got another error.
---
[2009-11-29 19:14:10 2122] ERROR (SrvDaemon:349) Exception starting
xend ((111, 'Connection refused'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
line 341, in run
    servers = SrvServer.create()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
line 251, in create
    root.putChild('xend', SrvRoot())
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
line 40, in __init__
    self.get(name)
  File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py",
line 84, in get
    val = val.getobj()
  File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py",
line 52, in getobj
    self.obj = klassobj()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
line 30, in __init__
    self.xn = XendNode.instance()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
line 949, in instance
    inst.save()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
line 484, in save
    self.save_networks()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNode.py",
line 499, in save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendBase.py",
line 102, in get_record
    for key in keys])
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendNetwork.py",
line 196, in get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py",
line 1736, in instance
    inst.init()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py",
line 113, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py",
line 355, in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py",
line 361, in complete
    t = xstransact(path)
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py",
line 29, in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xsutil.py",
line 18, in xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')
[2009-11-29 19:14:10 2119] INFO (SrvDaemon:220) Xend exited with status 1.
---

SELinux is disabled, so it has nothing to do with security settings.
I have no idea what xend tries to connect to.

If anyone succeeded to launch xend with Ubuntu 9.10,
please let me know how to.

Thanks,
Kentaro

--
Kentaro KAWAMOTO
kentaro.kawamoto@xxxxxxxxx

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.