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] Hotplug scripts not working

To: Tom De Vylder <tom@xxxxxxxxxxx>
Subject: Re: [Xen-users] Hotplug scripts not working
From: Mark Pryor <tlviewer@xxxxxxxxx>
Date: Tue, 31 May 2011 18:19:56 -0700 (PDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 31 May 2011 18:23:02 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1306891196; bh=96x6HjYI6Q3Wt80wvp+lUsF63LAbx7FCCgEOpLXF3Gw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=gisaAaaSH/7815g7+yK43NJzyRcJd33PVwK9ub5WLUZZttd4VfmhUw7pdnEt5mws9l8zpy4RHuvlg7IbglixIK/wkRf+bx59CFlv0jFv3NBEC8YPo16Dd0LiI4rRATjtN7R81+J2wPw0lmSujrgNMXmzhtYxJiUMtOsovkgnxFQ=
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=T/TKSSBAcr8irTwjVQ6599y44CDbWkM77ev+sw9Vryf5e6JBoG/0+sKqMExOLXKwKxCpLDlasJmNE7gIRAtYjNoh9zXxpyJJxGTdQg/EI3OCxyB6+XvZCUOebyLNJkGDqcEKMjk3+NiLuq2/xHcwe2CxSXEkbnQL34yQwD4G3R0=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <D3ED1005-01E6-4CD7-9E13-FA911DAD02F0@xxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

--- On Tue, 5/31/11, Tom De Vylder <tom@xxxxxxxxxxx> wrote:

> From: Tom De Vylder <tom@xxxxxxxxxxx>
> Subject: [Xen-users] Hotplug scripts not working
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Date: Tuesday, May 31, 2011, 5:44 AM
> Hi all,
> 
> I'd like to know if it's possible to have more verbose
> output when running a block-prefix script. Other than
> xend.log.
> To be more specific I'd like to use bash -x to see why I'm
> running into the following error:
> 
> > # xm create -c host.cfg
> > Using config file "host.cfg".
> > aa:bb:cc:dd:ee:ff
> > Error: Device 51712 (vbd) could not be connected.
> Hotplug scripts not working.
> 
> However xm seems to disregard any output from the
> block-prefix script.
> xend.log hangs a few minutes on the following lines:
> 
> > [2011-05-31 14:28:41 1894] DEBUG (XendDomainInfo:1286)
> XendDomainInfo.destroyDevice: deviceClass = vbd, device =
> vbd/51712
> > [2011-05-31 14:28:41 1894] DEBUG (DevController:628)
> hotplugStatusCallback
> /local/domain/0/backend/vbd/55/51712/hotplug-status.
> > [2011-05-31 14:28:41 1894] DEBUG (DevController:628)
> hotplugStatusCallback
> /local/domain/0/backend/vbd/55/51712/hotplug-status.
> 
> 
> ... and then dies, removes the vif devices and spawns the
> "hotplug scripts not working" errors.
> 

Main reason for the above error on xen 4.0+ is missing the 1 or 2 drivers from 
below:
ls /dev/xen
     evtchn
     gntdev

If you built from source (please post `xm info`) the configs are

CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_GNTDEV=y

also double check that below is populated
   /proc/xen

if its not, there is no xenfs mount -- another common error.

-- 
Mark

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

<Prev in Thread] Current Thread [Next in Thread>