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: [Xen-devel] issues with running xend init.d script

To: Michael J Coss <mjcoss@xxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] issues with running xend init.d script
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Thu, 17 Sep 2009 08:13:00 -0700 (PDT)
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 17 Sep 2009 08:13:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1253200381; bh=O4IyU9uadwL3CY5tNtrElPf5dL0t7xAexZXLVxSl2os=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=E0gt8h/w0MZSIGz7NCRm+5jSqL46joopSDGIXoQHNKRn7Q5ELiVSJRhdMuMt4tXXoip70Mx2Qhca6kBOzBcGlG9CLxO4sdZ14MGOya03J6bUl324Q79nNYCqJ3nGKEycBMEjSGZhcIWoW8MmL/VnWtyKwSlr8XFS4bCbfLWeyn4=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=jwVV+QzsnuTSBhDiEIbKSSeJqy+pHoP73Sp8dG5EpHVs+EQDSgSheEa2m3T/uTncmardvszi1Cu6/yik0u3XgjREceGvdYqKbFhIDD5lhxHiiFMNKrgT7qYNky/Sm3owUs2BkLZLNqobaGgci1PcDS53ibjNI/8Zdu8FCCNYx9g=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19122.17163.791643.649760@xxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>This is now done in xen-unstable's /etc/init.d/xend.  It might be
>worth backporting this as evidently people are having trouble with
>older trees (I assume you're on 3.4?)

Script /etc/init.d/xend in 3.4.1  looks like :-
. . . . . . .

. /etc/rc.d/init.d/functions

if [ ! -d /proc/xen ]; then
        exit 0
fi
if ! grep -q "control_d" /proc/xen/capabilities ; then
        exit 0
fi
********************
Changeset 20185
********************
@@ -21,6 +21,15 @@

shopt -s extglob
test -f /etc/sysconfig/xend && . /etc/sysconfig/xend
+
+if test "x$1" = xstart && \
+ test -d /proc/xen && \
+ ! test -d /proc/xen/capabilities && \
+ grep ' xenfs$' /proc/filesystems >/dev/null && \
+ ! grep '^xenfs ' /proc/mounts >/dev/null;
+then
+ mount -t xenfs xenfs /proc/xen
+fi

if ! grep -q "control_d" /proc/xen/capabilities ; then
exit 0
It seems that some other CSs ( which ones ?) from Xen Unstable have to be backported as well before 20185.

Boris.

--- On Thu, 9/17/09, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> wrote:

From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] issues with running xend init.d script
To: "Michael J Coss" <mjcoss@xxxxxxxxxxxxxxxxxx>
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Date: Thursday, September 17, 2009, 10:09 AM

Michael J Coss writes ("[Xen-devel] issues with running xend init.d script"):
> The first issue was that xend wants to check the Xen is running, and
> does that by checking /proc/xen/capabilities, which requires xenfs to be
> mounted.  It was not in the fstab, and so wasn't mounted.  This should
> probably should be in the install setup somewhere, or maybe the first
> time the xend is run, it checks to see if it's mounted and if it isn't
> tries to mounts it and adds an entry to fstab if successful.

This is now done in xen-unstable's /etc/init.d/xend.  It might be
worth backporting this as evidently people are having trouble with
older trees (I assume you're on 3.4?)

> The second issue was that the script network-bridge didn't handle my
> network interfaces properly.  I tracked down the problem to the fact
> that the script, in the function get_ip_info() uses "ip addr show dev"
> to get the ip address and broadcast address.  Unfortunately on my
> machine, I have ipv6 configured, and so there is a second inet line for
> the link local ipv6 address.  As a temporary hack, I added "scope
> global" to the ip command, and the network is setup albeit without
> ipv6.  This certainly isn't a real fix, but does fix the case where the
> ipv6 is only a local address.

If you'd like to provide a patch for the script, we'd all be grateful
:-).

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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