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

[Xen-users] Re: Error: Device 0 (vif) could not be connected. Hotplug sc

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
From: mrfido <sr.fido@xxxxxxxxx>
Date: Fri, 26 Sep 2008 13:42:45 +0600
Delivery-date: Fri, 26 Sep 2008 00:43:33 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=txGNTpqL3pZJYc9EL089/SLPTt25ussmQ+XTsSnXTUc=; b=ZOWIhgyNFK0Fqpz4g8dkgA6cVzXJ2T+uPys3rlnlQ935OfRWYxjSy9IqlB8sxBbWyd m7oCyf0mQUEIUgpfNkqrixl4IlmmTA/0QMiM9IF5cyXanwQJgS7b80ARL2w27P0sv7Ss Avh2BGcel/xnLBF1yWc/J8Ah63Vd8F/YlM67M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=T8RVnzfk07AuO9zHJpcjU6vOgrK2Zw6GvLVGN0KXMph74qOxTID5WoG9Hk0gLUOlMU 2k9r2kCPRA4gD5uVYgfl9gopTJD6va5hI1RjtskrzNKHt/6/Rh3y2Q2cmY3kkhO9o124 A+GT63RJMDnolDrbTt7uJORWk/sct2Skt0Nx8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f091686e0809250201u462e22acy3821690c3dd36a0e@xxxxxxxxxxxxxx>
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: <f091686e0809250201u462e22acy3821690c3dd36a0e@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks. I'm update Udev to version 113 and problems solved. [root@DF xen]$ cat /proc/sys/kernel/hotplug is null

25 сентября 2008 г. 15:01 пользователь mrfido <sr.fido@xxxxxxxxx> написал:
My English is poor. That is why I used the service Google-translate.
Judging from the archives of mailing this theme is popular. But I'm stuck аnd hope for your help.

A little bit of my system:
Distribution: LFS 6.1
Kernel: linux-2.6.18-xen-3.3.0
Udev: v080
Hotplug: 2004_09_23
Python: v2.4

[root@DF xen]$ cat /proc/sys/kernel/hotplug
/sbin/udevsend


[root@DF xen]$ ls /etc/udev/rules.d/
25-lfs.rules  30-xen-backend.rules


[root@DF xen]$ ls /etc/hotplug/xen*
/etc/hotplug/xen-backend.agent


[root@DF xen]$ zcat /proc/config.gz | grep HOTPLUG=
CONFIG_HOTPLUG=y

6 free loopback devices

XenU config:
kernel = "/boot/vmlinuz-2.6.18.8-xenU"
memory = 256
name = "WebServer"
disk = [ 'file:/home/nik/.xen/webserver_root,hda1,w','file:/home/nik/.xen/webserver_swap,hda2,w' ]
root = "/dev/hda1 ro"
extra = "3"
vif = [ '' ]
restart = 'onreboot'

XenD config:
(network-script network-dummy)
(vif-script vif-route)


When I'm try:

[root@DF xen]$ xm create webserver
Using config file "./webserver".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

[root@DF xen]$ xm log | tail -n 16
[2008-09-25 13:48:03 17336] DEBUG (DevController:155) Waiting for devices vif.
[2008-09-25 13:48:03 17336] DEBUG (DevController:160) Waiting for 0.
[2008-09-25 13:48:03 17336] DEBUG (DevController:645) hotplugStatusCallback /local/domain/0/backend/vif/10/0/hotplug-status.
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:2389) XendDomainInfo.destroy: domid=10
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:2406) XendDomainInfo.destroyDomain(10)
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:1939) Destroying device model
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:1946) Releasing devices
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:1952) Removing vif/0
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:888) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:1952) Removing vbd/769
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:888) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/769
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:1952) Removing vbd/770
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:888) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/770
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:1952) Removing console/0
[2008-09-25 13:49:43 17336] DEBUG (XendDomainInfo:888) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0

Then i'm comment line #vif=[''] in domU config:

[root@DF xen]$ xm create webserver
Using config file "./webserver".
Error: Device 769 (vbd) could not be connected. Hotplug scripts not working.

[root@DF xen]$ xm log | tail -n 16
[2008-09-25 13:43:54 17336] DEBUG (DevController:155) Waiting for devices vif.                                                              
[2008-09-25 13:43:54 17336] DEBUG (DevController:155) Waiting for devices vscsi.                                                            
[2008-09-25 13:43:54 17336] DEBUG (DevController:155) Waiting for devices vbd.                                                              
[2008-09-25 13:43:54 17336] DEBUG (DevController:160) Waiting for 769.                                                                      
[2008-09-25 13:43:54 17336] DEBUG (DevController:645) hotplugStatusCallback /local/domain/0/backend/vbd/9/769/hotplug-status.               
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:2389) XendDomainInfo.destroy: domid=9                                                     
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:2406) XendDomainInfo.destroyDomain(9)                                                     
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:1939) Destroying device model                                                             
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:1946) Releasing devices                                                                   
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:1952) Removing vbd/769                                                                    
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:888) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/769                    
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:1952) Removing vbd/770                                                                    
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:888) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/770                    
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:1952) Removing console/0                                                                  
[2008-09-25 13:45:34 17336] DEBUG (XendDomainInfo:888) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0


The next step, I tried to script testplug:

[root@DF xen]$ cat /root/testplug
#!/bin/bash
(echo $0: $*; export; echo) >> /root/testplug.log

[root@DF xen]$ echo "/root/testplug" > /proc/sys/kernel/hotplug

And again tried: xm create webserver

Below is a piece from /root/testplug.log:
/root/testplug: xen-backend
declare -x ACTION="">declare -x DEVPATH="/devices/xen-backend/vif-10-0"
declare -x HOME="/"
declare -x OLDPWD
declare -x PATH="/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PHYSDEVBUS="xen-backend"
declare -x PHYSDEVDRIVER="vif"
declare -x PWD="/"
declare -x SEQNUM="587"
declare -x SHLVL="1"
declare -x SUBSYSTEM="xen-backend"
declare -x XENBUS_BASE_PATH="backend"
declare -x XENBUS_PATH="backend/vif/10/0"
declare -x XENBUS_TYPE="vif"
declare -x script="/etc/xen/scripts/vif-route"
declare -x vif="vif10.0"


Full version:
http://seaband.narod.ru/files/testplug.log


I think that hotplug functional. So what's wrong?



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