From: Ian Campbell Subject: Re: After switching from "xm" to "xl" toolstack, can't get Guest networking to work. Date: Wed, 25 Jan 2012 16:32:17 +0000 Message-ID: <1327509137.24561.347.camel@zakaz.uk.xensource.com> References: <1327176409.25269.140661026313477@webmail.messagingengine.com> <1327318076.24561.63.camel@zakaz.uk.xensource.com> <1327332514.25697.140661026919117@webmail.messagingengine.com> <1327415184.24561.182.camel@zakaz.uk.xensource.com> <1327420611.19936.140661027415609@webmail.messagingengine.com> <1327423312.24561.211.camel@zakaz.uk.xensource.com> <1327425015.8709.140661027442201@webmail.messagingengine.com> <1327428329.24310.140661027473797@webmail.messagingengine.com> <1327440026.17019.16.camel@dagon.hellion.org.uk> <4F202B8A.4060506@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F202B8A.4060506@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jim Fehlig Cc: "xen-devel@lists.xensource.com" , "erin.balid@inoutbox.com" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-01-25 at 16:19 +0000, Jim Fehlig wrote: > Ian Campbell wrote: > > On Tue, 2012-01-24 at 18:05 +0000, erin.balid@inoutbox.com wrote: > > > >> Using the same log redirection you mentioned before > >> > >> edit /etc/xen/scripts/vif-bridge > >> #!/bin/bash > >> + exec 1>>/tmp/vif-bridge.log > >> + exec 2>&1 > >> + echo "`date`: Running $0 $*" > >> ... > >> + ## TEST ## > >> + echo "made it to 001" > >> > >> dir=$(dirname "$0") > >> . "$dir/vif-common.sh" > >> > >> + ## TEST ## > >> + echo "made it to 002" > >> > >> > >> domu=$(xenstore_read_default "$XENBUS_PATH/domain" "") > >> if [ -z "$domu" ] > >> then > >> log debug "No device details in $XENBUS_PATH, exiting." > >> > > > > So, presumably either the xenstore_read_default is failing or domu is > > zero length and the script is explicitly bailing here. > > > > However I do not see anything like this anywhere in the hotplug script > > shipped with Xen. Either this is a local modification or something done > > by your distribution, in which case you should contact them. > > > > Grrr, that is my patch here > > http://old-list-archives.xen.org/archives/html/xen-devel/2011-10/msg01790.html > > which thankfully was never applied upstream but did make its way into > openSUSE12.1. In that thread, Ian suggested having the toolstack write > the literal tap device name to xenstore and then read it in the vif > script. I have this on my todo list with very low priority, but seems I > should bump it now :-). There's been a fair bit of discussion recently on changing the way these scripts are executed, this case is one which we need to remember to handle too. In particular Roger Pau Monet has posted a few series recently. You should be able to find these and the discussion in the archives. Ian.