mrfido
2008-Sep-25 09:01 UTC
[Xen-users] Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
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 HOTPLUGCONFIG_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="offline" 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@lists.xensource.com http://lists.xensource.com/xen-users
mrfido
2008-Sep-26 07:42 UTC
[Xen-users] Re: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
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@gmail.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="offline" > 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@lists.xensource.com http://lists.xensource.com/xen-users