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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
From: mrfido <sr.fido@xxxxxxxxx>
Date: Thu, 25 Sep 2008 15:01:04 +0600
Delivery-date: Thu, 25 Sep 2008 02:01:52 -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:mime-version:content-type; bh=eoaN/mfWO/JkTFn1cMqUXOfmfHUJoMbNaoy0Hwk4Kx8=; b=Nu3d5JqVC9n5DjQTMR8bF/htJ06sZPwfwTLDIT7PvzK4jFM5GI5C35O+UoU4pPVdd5 8Xx4j6txY+mwJeYkawL2NjkGoa2j5ov35BDD16v0UI0TidjayAdpU3T3mnPHvYElkxOy FZValI+Q2u3XSC2uA0Kors6UXJFAgkZ968lkM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=QwbiO86hosqlQgWiGvhbvstMtJq6AbZVu3HuLgFpAalOc4z4nfDAgoaTBx0v3nw7iQ JUM1YinWiZJnbz791uV7oYn3BV1XNiNPO8k894UPQQMs+lhQLP6uCO99zTgEVPDZhPFT r8ewlp07gasNGTjE3POZmR3+/4dG+aCQmVTq4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
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>