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] Error: Device 0 (vif) could not be connected. Hotplug sc

To: "Olivier B." <xen.list@xxxxxxxxx>
Subject: Re: [Xen-users] Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Wed, 17 Feb 2010 19:24:48 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 17 Feb 2010 09:26:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B7BFB58.7030904@xxxxxxxxx>
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>
References: <4B62F12E.906@xxxxxxxxx> <20100201073038.GS2861@xxxxxxxxxxx> <4B79FEC4.9090900@xxxxxxxxx> <4B7BE5EA.3060207@xxxxxxxxx> <20100217135517.GY2861@xxxxxxxxxxx> <4B7BFB58.7030904@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Feb 17, 2010 at 03:21:12PM +0100, Olivier B. wrote:
> Pasi Kärkkäinen a écrit :
>> On Wed, Feb 17, 2010 at 01:49:46PM +0100, Olivier B. wrote:
>>   
>>> For example :
>>> name        = 'athena'
>>> kernel      = '/boot/vmlinuz-2.6.31.12-dae-xen'
>>> ramdisk        = '/boot/initrd.img-2.6.31.12-dae-xen'
>>> memory      = '1024'
>>> root        = 'root=/dev/mapper/vg--athena-root ro rootflags=data=writeback'
>>> disk        = [ 'drbd:athena-disk,sda,w' ]
>>> vif         = [ 'mac=02:00:00:00:04:3f' ]
>>> extra        = 'rootdelay=1 raid=noautodetect'
>>> on_poweroff = 'destroy'
>>> on_reboot   = 'restart'
>>> on_crash    = 'restart'
>>>
>>>     
>>
>> What if you also specify the bridge on the vif line? 
>>
>> -- Pasi
>>
>>   
> Same result with "vif         = [ 'mac=02:00:00:00:04:3f,bridge=xenbr0' ]" :
>

Weird. what if you also specify script=foo and create /etc/xen/scripts/foo,
which only has "exit 0" in it, and is executable.

Also worth trying without the drbd: disk.. the error is about vif,
but good to verify with normal file: or phy: disks aswell. You never know :)

-- Pasi

> I obtain "Error: Device 0 (vif) could not be connected. Hotplug scripts  
> not working." after 100 seconds.
>
> And udev monitor said :
> UEVENT[1266416315.932082] add      /devices/vbd-11-2048 (xen-backend)
> UDEV  [1266416315.938359] add      /devices/vbd-11-2048 (xen-backend)
> UEVENT[1266416315.960950] add      /devices/vif-11-0 (xen-backend)
> UDEV  [1266416315.961748] add      /devices/vif-11-0 (xen-backend)
> UEVENT[1266416315.969379] add      /devices/vif-11-0/net/vif11.0 (net)
> UEVENT[1266416315.970659] online   /devices/vif-11-0 (xen-backend)
> UDEV  [1266416315.980741] add      /devices/vif-11-0/net/vif11.0 (net)
> UDEV  [1266416315.982675] online   /devices/vif-11-0 (xen-backend)
> UEVENT[1266416316.094038] add      /devices/console-11-0 (xen-backend)
> UDEV  [1266416316.095965] add      /devices/console-11-0 (xen-backend)
>
> UEVENT[1266416355.592132] add      /kernel/uids/101 (uids)
> UDEV  [1266416355.592846] add      /kernel/uids/101 (uids)
> UEVENT[1266416356.623642] remove   /kernel/uids/101 (uids)
> UDEV  [1266416356.625038] remove   /kernel/uids/101 (uids)
>
> UDEV  [1266416397.419326] remove   /devices/vif-10-0/net/vif10.0 (net)
> UDEV  [1266416397.439092] remove   /devices/vif-10-0 (xen-backend)
>
> UEVENT[1266416416.855557] remove   /devices/console-11-0 (xen-backend)
> UDEV  [1266416416.858075] remove   /devices/console-11-0 (xen-backend)
> UEVENT[1266416416.894895] remove   /devices/vbd-11-2048 (xen-backend)
> UDEV  [1266416416.896732] remove   /devices/vbd-11-2048 (xen-backend)
> UEVENT[1266416416.900803] offline  /devices/vif-11-0 (xen-backend)
> UEVENT[1266416416.925352] remove   /devices/vif-11-0/net/vif11.0 (net)
> UEVENT[1266416416.936165] remove   /devices/vif-11-0 (xen-backend)
>
> Olivier
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

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