WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Cant start xend on Ubuntu 9.10 with Xen 3.4.2 and lastes

To: Kentaro KAWAMOTO <kentaro.kawamoto@xxxxxxxxx>
Subject: Re: [Xen-users] Cant start xend on Ubuntu 9.10 with Xen 3.4.2 and lastest pv-ops dom0 kernel
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1259532485; bh=bGgP9wFtAsc3XDBb5pa7alCr+NctX64bYT8f5s+Xqrs=; 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=L6Ifo3WRS0rIowP3/4cRl/7raJ1zkCiQlmN/M4TrBui4y5dQ3tdHIOoYlElNmMwdGPs3SsqUMvxql8zNla4m+AkDgKDSl/q+toJG3xDjKzERQoxoVXL9FfoSsxMKMJBE8PpvjiIzGYFhRVRhjJxeOe+zC+msvCrZweBBM7wLxgk=
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=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <c801521e0911290515p6d4f969mfddf8bf02c4f150a@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <64526.68232.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <c801521e0911290515p6d4f969mfddf8bf02c4f150a@xxxxxxxxxxxxxx>
Reply-to: Afshar Ganjali <afshar.g@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

   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
<Prev in Thread] Current Thread [Next in Thread>