Afshar Ganjali
2009-Nov-27 04:43 UTC
[Xen-users] Cant start xend on Ubuntu 9.10 with Xen 3.4.2 and lastest pv-ops dom0 kernel
Hi all, 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) 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 (2 = No such file or directory)'') Can you please help me to know what is wrong with my installation? $ uname -a (returns) Linux afshar-vm-ubuntu 2.6.31.6 #1 SMP Wed Nov 25 03:13:22 EST 2009 i686 GNU/Linux $ sudo find / -name xend (returns) /etc/init.d/xend /usr/sbin/xend /usr/local/lib/python2.6/dist-packages/xen/xend Thanks, --Afshar; _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Afshar Ganjali
2009-Nov-29 22:08 UTC
Re: [Xen-users] Cant start xend on Ubuntu 9.10 with Xen 3.4.2 and lastest pv-ops dom0 kernel
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@gmail.com> To: Afshar Ganjali <afshar.g@gmail.com> 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@yahoo.com> 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@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users