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

Re: [Xen-users] vif could not be connected. Hotplug scripts not working.

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] vif could not be connected. Hotplug scripts not working.
From: "Ulrich Windl" <ulrich.windl@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Jan 2007 09:19:27 +0100
Delivery-date: Fri, 12 Jan 2007 00:19:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1168547127.27888.274.camel@tower>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Universitaet Regensburg, Klinikum
Priority: normal
References: <4d95b0990701111123u1d6465dbgff943905b9b47ac3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 12 Jan 2007 at 4:25, Tim Post wrote:

> On Thu, 2007-01-11 at 19:23 +0000, John Hannfield wrote:
> > Hi all,
> > 
> > I'm trying to boot a Centos domU, but when I do a "xm create -c centos.cfg"
> > it just hangs, and eventually times out with:
> > 
> > Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
> > 
> 
> Ensure that /bin/sh leads to /bin/bash (i.e. readlink /bin/sh ).. if
> not, ln -s -f /bin/bash /bin/sh

Actually that should be /usr/bin/sh for at least 10 years ;-) 
/bin/cp and /bin/cat are UNIX dinosaurs, just as /bin/sh. Traditionally these 
exist as symbolic links to the updated locations.

> 
> Its quite possible on your system /bin/sh leads to dash, which isn't
> capable of parsing the hotplug scripts in /etc/xen/scripts, which is the
> cause of this error.

I'm sure everybody is aware that when using /bin/sh, you may only use the 
features 
of the classic Bourne shell, wile /usr/bin/sh most likely is a POSIX shell, and 
"bash" is ... well: "bash". Expecting from /bin/sh to be more capable than 
Bourne 
shell of 15 years ago is a mistake. Personally I'm using POSIX features unless 
I 
absolutely need Bash, but then I specify /bin/bash as Shell.

Sorry for preaching.

Ulrich

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