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-devel

Re: Re: [Xen-devel] How can I use grant table in domainU?

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: Re: [Xen-devel] How can I use grant table in domainU?
From: ruozeng wang <ruozeng.w@xxxxxxxxx>
Date: Thu, 14 Apr 2011 23:58:43 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Apr 2011 09:00:40 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=s3FFze2wKqFxHZBGbfb+6FG29xNOs/TC3ESAmK3uy34=; b=p17EG8abnncVvcasdQq9AVu3ngsxMbDuXWnl57SZY7whx3YP7YTUV7YADOPEqutQ3B UyJqJE61XIAVTeJnTRZF892o67V5pK9B7f9gZy9YXWtYbKKBYPgtJPyKsukq8lPwJht9 P9SppLDxVyNaZOQkQ28dFQDmAHu0lCbbbRlSU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=nAEzK/1Ez+To+K9mxYZolyETUWrDMjLRT/yEmxUCZL2x3rMZyEmi9gSBBtaqzz/h+X fbRtytvC0wZ5wZWhZV9nf0sYELOC8JhX2KjbAj+gXKg/BPQ5kP0t1u1KIMaGiEn98cUR ShLCnXo7EkhEJgeKQ0aKh6nGgNSD+lafGbgOQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110414133934.GL5548@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201104051205497648564@xxxxxxxxx> <20110405134423.GA6075@xxxxxxxxxxxx> <BANLkTinkrAr9cKb17skdtWdQTJ1AT63xCA@xxxxxxxxxxxxxx> <20110406121510.GA5009@xxxxxxxxxxxx> <BANLkTikHJ5TtiOZOc7mdLpMqg-s4OmMBEA@xxxxxxxxxxxxxx> <20110406152554.GA8253@xxxxxxxxxxxx> <BANLkTi=0fEdC8PjsWp_8rmdwybpsex1q+Q@xxxxxxxxxxxxxx> <20110413174325.GA19348@xxxxxxxxxxxx> <BANLkTimNU-SdWaHsodVdVs=d8b=ZbvodTg@xxxxxxxxxxxxxx> <BANLkTinsuB_jsTzJK8ScttdB5je37Xn8=g@xxxxxxxxxxxxxx> <20110414133934.GL5548@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Yes, I've tried some of the xen command , but all of them return this error :
"Unable to connect to xend: No such file or dirctory. Is xend running?"

Then I found the infomation in xend-debug.log, which I've send in last mail.

Here is the content of 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 xend ((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 = 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 89, in __init__
    self.sock = self.createSocket()
  File "usr/lib/python2.5/site-
packages/xen/web/tcp.py", line 97, in createSocket
    sock.bind((self.interface, self.port))
  File "<string>", line 1, in bind
error: (98, 'Address already in use')
[2011-04-13 20:35:52 6936] INFO (SrvDaemon:220) Xend exited with status 1.



but since I set loglevel to DEBUG in xend-config.sxp, it changed to this:

[2011-04-14 23:40:21 6477] INFO (SrvDaemon:332) Xend Daemon started
[2011-04-14 23:40:21 6477] INFO (SrvDaemon:336) Xend changeset: unavailable.
[2011-04-14 23:40:21 6477] DEBUG (tcp:96) Listening on :8002
[2011-04-14 23:40:22 6477] DEBUG (XendNode:332) pscsi record count: 10
[2011-04-14 23:40:22 6477] DEBUG (XendCPUPool:747) recreate_active_pools


When I enter "xend start", the output infomation is like this:

root@ruozeng-desktop2:~# xend start
There is already a pid file /var/run/dhclient.eth0.pid with pid 5962
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:1d:7d:57:23:12
Sending on   LPF/eth0/00:1d:7d:57:23:12
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 172.21.201.1 port 67
Nothing to flush.
There is already a pid file /var/run/dhclient.eth0.pid with pid 134519072
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:1d:7d:57:23:12
Sending on   LPF/eth0/00:1d:7d:57:23:12
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 172.21.6.114 from 172.21.6.254
DHCPREQUEST of 172.21.6.114 on eth0 to 255.255.255.255 port 67
DHCPACK of 172.21.6.114 from 172.21.6.254
bound to 172.21.6.114 -- renewal in 41866 seconds.

Then it stucked here. I have to use control-c to interrupt.

If I use ps -A, it shows that there are four "xend" process :
 
 6306 pts/0    00:00:00 xend
 6376 ?        00:00:00 kworker/1:2
 6442 ?        00:00:00 dhclient3
 6474 pts/0    00:00:00 blktapctrl <defunct>
 6475 ?        00:00:00 xend <defunct>
 6476 ?        00:00:00 xend
 6477 ?        00:00:00 xend

And some other xen related processes, xenbus, etc.

ruozeng.w
2011-4-14

2011/4/14 Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
On Thu, Apr 14, 2011 at 08:22:24PM +0800, ruozeng wang wrote:
> This is from /var/log/xen/xend-debug.log:

Look also in the xend.log file, and make sure to turn on the DEBUg
options in your /etc/xen/xend-config.sxp file. And read through the
file please.

Have you tried using 'xl'?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>