[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: mrfido <sr.fido@xxxxxxxxx>
  • Date: Thu, 25 Sep 2008 15:01:04 +0600
  • Delivery-date: Thu, 25 Sep 2008 02:01:52 -0700
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.