From mboxrd@z Thu Jan 1 00:00:00 1970 From: ruozeng wang Subject: Re: Re: How can I use grant table in domainU? Date: Thu, 14 Apr 2011 20:22:24 +0800 Message-ID: References: <201104041815185384477@gmail.com> <201104051205497648564@gmail.com> <20110405134423.GA6075@dumpdata.com> <20110406121510.GA5009@dumpdata.com> <20110406152554.GA8253@dumpdata.com> <20110413174325.GA19348@dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1983014387==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1983014387== Content-Type: multipart/alternative; boundary=0016369201764f692404a0dffa86 --0016369201764f692404a0dffa86 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable This is from /var/log/xen/xend-debug.log: Xend started at Thu Apr 14 17:39:00 2011. cat: /sys/bus/scsi/devices/host0/vendor: No such file or directory cat: /sys/bus/scsi/devices/host0/model: No such file or directory cat: /sys/bus/scsi/devices/host0/type: No such file or directory cat: /sys/bus/scsi/devices/host0/rev: No such file or directory cat: /sys/bus/scsi/devices/host0/scsi_level: No such file or directory cat: /sys/bus/scsi/devices/host1/vendor: No such file or directory cat: /sys/bus/scsi/devices/host1/model: No such file or directory cat: /sys/bus/scsi/devices/host1/type: No such file or directory cat: /sys/bus/scsi/devices/host1/rev: No such file or directory cat: /sys/bus/scsi/devices/host1/scsi_level: No such file or directory cat: /sys/bus/scsi/devices/host2/vendor: No such file or directory cat: /sys/bus/scsi/devices/host2/model: No such file or directory cat: /sys/bus/scsi/devices/host2/type: No such file or directory cat: /sys/bus/scsi/devices/host2/rev: No such file or directory cat: /sys/bus/scsi/devices/host2/scsi_level: No such file or directory cat: /sys/bus/scsi/devices/host3/vendor: No such file or directory cat: /sys/bus/scsi/devices/host3/model: No such file or directory cat: /sys/bus/scsi/devices/host3/type: No such file or directory cat: /sys/bus/scsi/devices/host3/rev: No such file or directory cat: /sys/bus/scsi/devices/host3/scsi_level: No such file or directory cat: /sys/bus/scsi/devices/host4/vendor: No such file or directory cat: /sys/bus/scsi/devices/host4/model: No such file or directory cat: /sys/bus/scsi/devices/host4/type: No such file or directory cat: /sys/bus/scsi/devices/host4/rev: No such file or directory cat: /sys/bus/scsi/devices/host4/scsi_level: No such file or directory cat: /sys/bus/scsi/devices/host5/vendor: No such file or directory cat: /sys/bus/scsi/devices/host5/model: No such file or directory cat: /sys/bus/scsi/devices/host5/type: No such file or directory cat: /sys/bus/scsi/devices/host5/rev: No such file or directory cat: /sys/bus/scsi/devices/host5/scsi_level: No such file or directory cat: /sys/bus/scsi/devices/target2:0:0/vendor: No such file or directory cat: /sys/bus/scsi/devices/target2:0:0/model: No such file or directory cat: /sys/bus/scsi/devices/target2:0:0/type: No such file or directory cat: /sys/bus/scsi/devices/target2:0:0/rev: No such file or directory cat: /sys/bus/scsi/devices/target2:0:0/scsi_level: No such file or director= y cat: /sys/bus/scsi/devices/target3:0:0/vendor: No such file or directory cat: /sys/bus/scsi/devices/target3:0:0/model: No such file or directory cat: /sys/bus/scsi/devices/target3:0:0/type: No such file or directory cat: /sys/bus/scsi/devices/target3:0:0/rev: No such file or directory cat: /sys/bus/scsi/devices/target3:0:0/scsi_level: No such file or director= y Is there any connections between this and the "address already in use" problem? thanks ruozeng.w 2011-4-14 2011/4/14 ruozeng wang > Sorry, I forgot to CC, my fault. I'll do it from now on. > > Program listening 0.0.0.0:8002 is *python* > > Here is the netstat output: > > *Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > tcp 0 0 0.0.0.0:8002 0.0.0.0:* > LISTEN 6416/python* > > > > 2011/4/14 Konrad Rzeszutek Wilk > >> On Wed, Apr 13, 2011 at 11:52:25PM +0800, ruozeng wang wrote: >> > Hi, >> > >> > I've tried to install xen-4.1.0 with 2.6.39-rc2 kernel on CentOS 5.5, >> Debian >> > 5.07 and ubuntu 8.04, at last succeeded with ubuntu. >> > But when I tried to start xend, it failed. >> >> Please also CC the mailing list. I did this for you. >> > >> > /var/log/xend.log: >> > >> > *[2011-04-13 20:35:52 6937] DEBUG (tcp:96) Listening on :8002 >> > [2011-04-13 20:35:52 6937] ERROR (SrvDaemon:349) Exception starting xe= nd >> > ((98, 'Address already in use')) >> > Traceback (most recent call last): >> > File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", >> line >> > 339, in run >> > relocate.listenRelocation() >> > File "usr/lib/python2.5/site-packages/xen/xend/server/relocate.py", >> line >> > 159, in listenRelocation >> > hosts_allow =3D hosts_allow) >> > File "usr/lib/python2.5/site-packages/xen/web/tcp.py", line 38, in >> > __init__ >> > connection.SocketListener.__init__(self, protocol_class) >> > File "usr/lib/python2.5/site-packages/xen/web/connection.py", line 8= 9, >> in >> > __init__ >> > self.sock =3D self.createSocket() >> > File "usr/lib/python2.5/site-packages/xen/web/tcp.py", line 97, in >> > createSocket >> > sock.bind((self.interface, self.port)) >> > File "", line 1, in bind >> > error: (98, 'Address already in use') >> >> Looks like someobyd is listening already on that port. >> > [2011-04-13 20:35:52 6936] INFO (SrvDaemon:220) Xend exited with statu= s >> 1.* >> > >> > Could you tell me what may cause this? Someone might have met this >> before, >> > but I can't find a solution. >> > >> > >> http://lists.xensource.com/archives/html/xen-users/2006-05/msg00397.html >> > >> > netstat -ltnp does show an active connection, listening local address >> > 0.0.0.0:8002, but I don't know if it is right or not >> >> Ok, what program is using it? >> > >> > >> > thanks >> > >> > ruozeng.w >> > regards >> > 2011-4-43 >> > >> > >> > >> > 2011/4/6 Konrad Rzeszutek Wilk >> > >> > > On Wed, Apr 06, 2011 at 10:57:00PM +0800, ruozeng wang wrote: >> > > > Sorry, I'm a little confused=85=85What is this 2.6.39 kernel for? = When I >> > > build >> > > > and install xen, it downloaded a "linux-2.6.18-xen.hg" (using >> mercurial), >> > > > should I update this kernel to 2.6.39? Or update my host OS kernel >> to >> > > > 2.6.39? I found 2.6.39-rc2 kernel at kernel.org, but it's not for >> xen, >> > > it's >> > > > a stadard kernel, I think. >> > > >> > > The standard mainline kernel has Xen components in it. You need to >> > > compile it with CONFIG_PVOPS and CONFIG_XEN and you will have a full= y >> > > working kernel that can boot up either on native, or under the Xen >> > > hypervisor. >> > > >> > > >> > > > >> > > > So is this my misunderstanding? >> > > > >> > > > I planed to install xen 4.0.0 on CentOS 5.4 tommorow. >> > > > Please tell me some more details. Thank you so much for you >> patience. >> > > >> > > Please use Google. Search for 'PVOPS Wiki'. >> > > >> > > --0016369201764f692404a0dffa86 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable This is from /var/log/xen/xend-debug.log:

Xend started at Thu Apr 14= 17:39:00 2011.
cat: /sys/bus/scsi/devices/host0/vendor: No such file or= directory
cat: /sys/bus/scsi/devices/host0/model: No such file or direc= tory
cat: /sys/bus/scsi/devices/host0/type: No such file or directory
cat: /s= ys/bus/scsi/devices/host0/rev: No such file or directory
cat: /sys/bus/s= csi/devices/host0/scsi_level: No such file or directory
cat: /sys/bus/sc= si/devices/host1/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host1/model: No such file or directory
cat: /= sys/bus/scsi/devices/host1/type: No such file or directory
cat: /sys/bus= /scsi/devices/host1/rev: No such file or directory
cat: /sys/bus/scsi/de= vices/host1/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host2/vendor: No such file or directory
cat: = /sys/bus/scsi/devices/host2/model: No such file or directory
cat: /sys/b= us/scsi/devices/host2/type: No such file or directory
cat: /sys/bus/scsi= /devices/host2/rev: No such file or directory
cat: /sys/bus/scsi/devices/host2/scsi_level: No such file or directory
c= at: /sys/bus/scsi/devices/host3/vendor: No such file or directory
cat: /= sys/bus/scsi/devices/host3/model: No such file or directory
cat: /sys/bu= s/scsi/devices/host3/type: No such file or directory
cat: /sys/bus/scsi/devices/host3/rev: No such file or directory
cat: /sy= s/bus/scsi/devices/host3/scsi_level: No such file or directory
cat: /sys= /bus/scsi/devices/host4/vendor: No such file or directory
cat: /sys/bus/= scsi/devices/host4/model: No such file or directory
cat: /sys/bus/scsi/devices/host4/type: No such file or directory
cat: /s= ys/bus/scsi/devices/host4/rev: No such file or directory
cat: /sys/bus/s= csi/devices/host4/scsi_level: No such file or directory
cat: /sys/bus/sc= si/devices/host5/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host5/model: No such file or directory
cat: /= sys/bus/scsi/devices/host5/type: No such file or directory
cat: /sys/bus= /scsi/devices/host5/rev: No such file or directory
cat: /sys/bus/scsi/de= vices/host5/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/target2:0:0/vendor: No such file or directorycat: /sys/bus/scsi/devices/target2:0:0/model: No such file or directorycat: /sys/bus/scsi/devices/target2:0:0/type: No such file or directory
cat: /sys/bus/scsi/devices/target2:0:0/rev: No such file or directory
ca= t: /sys/bus/scsi/devices/target2:0:0/scsi_level: No such file or directory<= br>cat: /sys/bus/scsi/devices/target3:0:0/vendor: No such file or directory=
cat: /sys/bus/scsi/devices/target3:0:0/model: No such file or directory
= cat: /sys/bus/scsi/devices/target3:0:0/type: No such file or directory
c= at: /sys/bus/scsi/devices/target3:0:0/rev: No such file or directory
cat: /sys/bus/scsi/devices/target3:0:0/scsi_level: No such file or director= y

Is there any connections between this and the "address alread= y in use" problem?

thanks


ruozeng.w
2011-4-14

2011/4/14 ruozeng wang <= ;ruozeng.w@gmail.com><= br>
Sorry, I forgot to CC, my fault. I'll do it from now on.

Program= listening 0.0.0.0:8002 is python

Here is the netstat output:

Proto=A0= =A0=A0 Recv-Q=A0=A0=A0 Send-Q=A0=A0=A0 Local Address=A0=A0=A0 Foreign Addre= ss=A0=A0=A0 State=A0=A0=A0=A0=A0=A0 PID/Program name=A0=A0=A0
tcp=A0=A0 =A0 =A0=A0 0=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0
0.0.0.0:8= 002=A0=A0=A0=A0=A0=A0=A0 0.0.0.0:*=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 LISTEN=A0=A0=A0 6416/python



2011/4/14 Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
On Wed, Apr = 13, 2011 at 11:52:25PM +0800, ruozeng wang wrote:
> Hi,
>
> I've tried to install xen-4.1.0 with 2.6.39-rc2 kernel on CentOS 5= .5, Debian
> 5.07 and ubuntu 8.04, at last succeeded with =A0ubuntu.
> But when I tried to start xend, it failed.

Please also CC the mailing list. I did this for you.
>
> /var/log/xend.log:
>
> *[2011-04-13 20:35:52 6937] DEBUG (tcp:96) Listening on :8002
> [2011-04-13 20:35:52 6937] ERROR (SrvDaemon:349) Exception starting xe= nd
> ((98, 'Address already in use'))
> Traceback (most recent call last):
> =A0 File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaem= on.py", line
> 339, in run
> =A0 =A0 relocate.listenRelocation()
> =A0 File "usr/lib/python2.5/site-packages/xen/xend/server/relocat= e.py", line
> 159, in listenRelocation
> =A0 =A0 hosts_allow =3D hosts_allow)
> =A0 File "usr/lib/python2.5/site-packages/xen/web/tcp.py", l= ine 38, in
> __init__
> =A0 =A0 connection.SocketListener.__init__(self, protocol_class)
> =A0 File "usr/lib/python2.5/site-packages/xen/web/connection.py&q= uot;, line 89, in
> __init__
> =A0 =A0 self.sock =3D self.createSocket()
> =A0 File "usr/lib/python2.5/site-packages/xen/web/tcp.py", l= ine 97, in
> createSocket
> =A0 =A0 sock.bind((self.interface, self.port))
> =A0 File "<string>", line 1, in bind
> error: (98, 'Address already in use')

Looks like someobyd is listening already on that port.
> [2011-04-13 20:35:52 6936] INFO (SrvDaemon:220) Xend exited with = status 1.*
>
> Could you tell me what may cause this? Someone might have met this bef= ore,
> but I can't find a solution.
>
> =A0http://lists.xensource.com/archives/htm= l/xen-users/2006-05/msg00397.html
>
> netstat -ltnp does show an active connection, listening local address<= br> > 0.0.0.0:8002, bu= t I don't know if it is right or not

Ok, what program is using it?
>
>
> thanks
>
> ruozeng.w
> regards
> 2011-4-43
>
>
>
> 2011/4/6 Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>
> > On Wed, Apr 06, 2011 at 10:57:00PM +0800, ruozeng wang wrote:
> > > Sorry, I'm a little confused=85=85What is this 2.6.39 ke= rnel for? When I
> > build
> > > and install xen, it downloaded a "linux-2.6.18-xen.hg&q= uot; (using mercurial),
> > > should I update this kernel to 2.6.39? Or update my host OS = kernel to
> > > 2.6.39? I found 2.6.39-rc2 kernel at kernel.org, but it's not for xen,
> > it's
> > > a stadard kernel, I think.
> >
> > The standard mainline kernel has Xen components in it. You need t= o
> > compile it with CONFIG_PVOPS and CONFIG_XEN and you will have a f= ully
> > working kernel that can boot up either on native, or under the Xe= n
> > hypervisor.
> >
> >
> > >
> > > So is this my misunderstanding?
> > >
> > > I planed to install xen 4.0.0 on CentOS 5.4 tommorow.
> > > Please tell me some more details. Thank you so much for you = patience.
> >
> > Please use Google. Search for 'PVOPS Wiki'.
> >


--0016369201764f692404a0dffa86-- --===============1983014387== 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 --===============1983014387==--