From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mingfan Lu Subject: Fwd: Fail to start xend in xen/stable-2.6.32.x (57028f01dcd263bcee41e00ddcda167a082ae075) Date: Fri, 11 Jun 2010 13:31:09 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0165200173==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0165200173== Content-Type: multipart/alternative; boundary=0016367fabb14484450488ba7267 --0016367fabb14484450488ba7267 Content-Type: text/plain; charset=ISO-8859-1 Hi, I want to use xenoprof in pv dom0. so i use the patch from Dulloor (in branch origin/xen/oprofile ) to the xen/stable-2.6.32.x (57028f01dcd263bcee41e00ddcda167a082ae075). My xen (version: 4.0.0) which is compied from the source code. All seems to work, I even could use oprofile to collect samples. But the xend which could not start normally. check the xend.log, I find taht {{{ [2010-06-11 10:34:31 5887] INFO (SrvDaemon:332) Xend Daemon started [2010-06-11 10:34:31 5887] INFO (SrvDaemon:336) Xend changeset: unavailable. [2010-06-11 10:34:32 5887] ERROR (SrvDaemon:349) Exception starting xend ((111, 'Connection refused')) Traceback (most recent call last): File "/usr/local/lib/python2.6/site-packages/xen/xend/server/SrvDaemon.py", line 341, in run servers = SrvServer.create() File "/usr/local/lib/python2.6/site-packages/xen/xend/server/SrvServer.py", line 251, in create root.putChild('xend', SrvRoot()) File "/usr/local/lib/python2.6/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__ self.get(name) File "/usr/local/lib/python2.6/site-packages/xen/web/SrvDir.py", line 84, in get val = val.getobj() File "/usr/local/lib/python2.6/site-packages/xen/web/SrvDir.py", line 52, in getobj self.obj = klassobj() File "/usr/local/lib/python2.6/site-packages/xen/xend/server/SrvNode.py", line 30, in __init__ self.xn = XendNode.instance() File "/usr/local/lib/python2.6/site-packages/xen/xend/XendNode.py", line 1141, in instance inst.save() File "/usr/local/lib/python2.6/site-packages/xen/xend/XendNode.py", line 578, in save self.save_networks() File "/usr/local/lib/python2.6/site-packages/xen/xend/XendNode.py", line 594, in save_networks for network_uuid in XendNetwork.get_all()]) File "/usr/local/lib/python2.6/site-packages/xen/xend/XendBase.py", line 102, in get_record for key in keys]) File "/usr/local/lib/python2.6/site-packages/xen/xend/XendNetwork.py", line 196, in get_VIFs vms = XendDomain.instance().get_all_vms() File "/usr/local/lib/python2.6/site-packages/xen/xend/XendDomain.py", line 1882, in instance inst.init() File "/usr/local/lib/python2.6/site-packages/xen/xend/XendDomain.py", line 114, in init xstransact.Mkdir(XS_VMROOT) File "/usr/local/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 355, in Mkdir complete(path, lambda t: t.mkdir(*args)) File "/usr/local/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 361, in complete t = xstransact(path) File "/usr/local/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 29, in __init__ self.transaction = xshandle().transaction_start() File "/usr/local/lib/python2.6/site-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle xs_handle = xen.lowlevel.xs.xs() Error: (111, 'Connection refused') [2010-06-11 10:34:32 5886] INFO (SrvDaemon:220) Xend exited with status 1. }}} I go check /proc/xen/capabilities , it contains control_d in this file. and then I go to the /dev/xen, nothing in this directory. It seems evtchn which is missing. then I compile xen_evtchn as module (before, xen_evtchn is built-in), and modprobe xen_evtchn manually it seems evtchn in /dev/xen now. Go on to execute /etc/init.d/xend start. just fail. the error log is the same mentioned above. and the evtchn is missing in /dev/xen now try xenstored, I got {{{ ERROR Internal error: Could not open event channel interface (22 = Invalid argument) FATAL: Failed to open evtchn device: Invalid argument }}} any comments and suggestion? Mingfan Lu --0016367fabb14484450488ba7267 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
I want to use xenoprof in pv dom0. so i use= =A0 the patch from Dulloor (in branch origin/xen/oprofile ) to the xen/stab= le-2.6.32.x (57028f01dcd263bcee41e00ddcda167a082ae075).

My xen (version: 4.0.0) which is compied from the source code.
All seems= to work, I even could use oprofile to collect samples.
But the xend whi= ch could not start normally.

check the xend.log, I find taht=A0
{{{
[2010-06-11 10:34:31 5887] INFO (SrvDaemon:332) Xend Daemon started<= br>[2010-06-11 10:34:31 5887] INFO (SrvDaemon:336) Xend changeset: unavaila= ble.
[2010-06-11 10:34:32 5887] ERROR (SrvDaemon:349) Exception starting= xend ((111, 'Connection refused'))
Traceback (most recent call last):
=A0 File "/usr/local/lib/python2= .6/site-packages/xen/xend/server/SrvDaemon.py", line 341, in run
= =A0=A0=A0 servers =3D SrvServer.create()
=A0 File "/usr/local/lib/p= ython2.6/site-packages/xen/xend/server/SrvServer.py", line 251, in cre= ate
=A0=A0=A0 root.putChild('xend', SrvRoot())
=A0 File "/usr/l= ocal/lib/python2.6/site-packages/xen/xend/server/SrvRoot.py", line 40,= in __init__
=A0=A0=A0 self.get(name)
=A0 File "/usr/local/lib/p= ython2.6/site-packages/xen/web/SrvDir.py", line 84, in get
=A0=A0=A0 val =3D val.getobj()
=A0 File "/usr/local/lib/python2.6/s= ite-packages/xen/web/SrvDir.py", line 52, in getobj
=A0=A0=A0 self.= obj =3D klassobj()
=A0 File "/usr/local/lib/python2.6/site-packages= /xen/xend/server/SrvNode.py", line 30, in __init__
=A0=A0=A0 self.xn =3D XendNode.instance()
=A0 File "/usr/local/lib/= python2.6/site-packages/xen/xend/XendNode.py", line 1141, in instance<= br>=A0=A0=A0 inst.save()
=A0 File "/usr/local/lib/python2.6/site-pa= ckages/xen/xend/XendNode.py", line 578, in save
=A0=A0=A0 self.save_networks()
=A0 File "/usr/local/lib/python2.6/s= ite-packages/xen/xend/XendNode.py", line 594, in save_networks
=A0= =A0=A0 for network_uuid in XendNetwork.get_all()])
=A0 File "/usr/l= ocal/lib/python2.6/site-packages/xen/xend/XendBase.py", line 102, in g= et_record
=A0=A0=A0 for key in keys])
=A0 File "/usr/local/lib/python2.6/site= -packages/xen/xend/XendNetwork.py", line 196, in get_VIFs
=A0=A0=A0= vms =3D XendDomain.instance().get_all_vms()
=A0 File "/usr/local/l= ib/python2.6/site-packages/xen/xend/XendDomain.py", line 1882, in inst= ance
=A0=A0=A0 inst.init()
=A0 File "/usr/local/lib/python2.6/site-packa= ges/xen/xend/XendDomain.py", line 114, in init
=A0=A0=A0 xstransact= .Mkdir(XS_VMROOT)
=A0 File "/usr/local/lib/python2.6/site-packages/= xen/xend/xenstore/xstransact.py", line 355, in Mkdir
=A0=A0=A0 complete(path, lambda t: t.mkdir(*args))
=A0 File "/usr/l= ocal/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py", lin= e 361, in complete
=A0=A0=A0 t =3D xstransact(path)
=A0 File "/u= sr/local/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py",= line 29, in __init__
=A0=A0=A0 self.transaction =3D xshandle().transaction_start()
=A0 File &= quot;/usr/local/lib/python2.6/site-packages/xen/xend/xenstore/xsutil.py&quo= t;, line 18, in xshandle
=A0=A0=A0 xs_handle =3D xen.lowlevel.xs.xs()Error: (111, 'Connection refused')
[2010-06-11 10:34:32 5886] INFO (SrvDaemon:220) Xend exited with status 1.<= br>}}}

I go=A0 check /proc/xen/capabilities , it contains control_d = in this file.

and then I go to the /dev/xen, nothing in this directo= ry.
It seems evtchn which is missing.

then I compile=A0 xen_evtchn as=A0= module (before, xen_evtchn is built-in), and modprobe xen_evtchn manually= =A0
it seems evtchn in /dev/xen now.

Go on to execute /etc/init.d= /xend start. just fail. the error log is the same mentioned above.
and the evtchn is missing in /dev/xen now

try xenstored,

I go= t
{{{
ERROR Internal error: Could not open event channel interface (2= 2 =3D Invalid argument)
FATAL: Failed to open evtchn device: Invalid arg= ument
}}}

any comments and suggestion?=A0

M= ingfan Lu

--0016367fabb14484450488ba7267-- --===============0165200173== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0165200173==--