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: Muriel <muriel.cabianca@xxxxxxx>
Date: Tue, 21 Jul 2009 17:22:27 +0200
Delivery-date: Tue, 21 Jul 2009 08:23:24 -0700
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
User-agent: Thunderbird 2.0.0.22 (X11/20090608)
Hi all,
when i create a guest OS i am getting this error:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

I have looked for a possible solution without success.

The sistem is a Centos 5.2 x86_64, the xen version is 3.4, the dom0 kernel is 2.6.27.19-5 (from xensource).
The domU is a Centos 5.3 x86_64, kernel 2.6.18-128.1.6.el5xen

xend-config.sxp:
(xend-unix-server yes)
(xend-relocation-server yes)
(network-script 'network-bridge bridge=eth0') #i have specified 'bridge=eth0 for test
(vif-script 'vif-bridge bridge=eth0')
(dom0-min-mem 196)
(enable-dom0-ballooning yes)
(dom0-cpus 0)
(vncpasswd '')


the domU config file:
bootloader = '/usr/bin/pygrub'
memory = 256
name = "blade_test"
vcpus = 2
vif = [ 'bridge=eth0' ] #doesn't work vif = []
dhcp="dhcp"
disk = [ 'tap:aio:/home/xen/blade8_disk,xvda1,w!' ]
vnc         = '0'
vncviewer   = '0'
stdvga      = '0'
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'preserve'
extra = "3"


udev:
root 682 0.0 0.0 12992 1172 ? S<s 16:41 0:00 /sbin/udevd -d

brctl show:
bridge name     bridge id               STP enabled     interfaces
eth0 8000.0022649c123a no peth0(loglevel DEBUG)


When i create the domU i see the grub console, then i choose a kernel and the console hangs.
udevmonitor say:
UEVENT[1248188758.795432] add@/devices/xen-backend/tap-3-51713
UDEV  [1248188758.796432] add@/devices/xen-backend/tap-3-51713
UEVENT[1248188758.810433] change@/devices/xen-backend/tap-3-51713
UEVENT[1248188758.811433] add@/block/backdevb
UEVENT[1248188758.811433] add@/class/bdi/253:1
UDEV  [1248188758.812433] add@/class/bdi/253:1
UEVENT[1248188758.833433] add@/devices/xen-backend/vif-3-0
UDEV  [1248188758.836433] add@/devices/xen-backend/vif-3-0
UEVENT[1248188758.837433] add@/class/net/vif3.0
UEVENT[1248188758.837433] online@/devices/xen-backend/vif-3-0
UEVENT[1248188758.920435] add@/devices/xen-backend/console-3-0
UDEV  [1248188758.922435] add@/devices/xen-backend/console-3-0
UDEV  [1248188759.000437] change@/devices/xen-backend/tap-3-51713
UDEV  [1248188759.031438] add@/block/backdevb
UDEV  [1248188759.039438] online@/devices/xen-backend/vif-3-0
UDEV  [1248188759.042438] add@/class/net/vif3.0


brctl show:
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0022649c123a       no                 peth0
vif3.0

ifconfig vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:6573 overruns:0 carrier:0
         collisions:0 txqueuelen:32
         RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


The xend.log:
[2009-07-21 17:05:55 9102] DEBUG (XendDomainInfo:92) XendDomainInfo.create(['vm', ['name', 'blade_test'], ['memory', 256], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'preserve'], ['vcpus', 2], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['bootloader', '/usr/bin/pygrub'], ['bootloader_args', ''], ['image', ['linux', ['ip', ':127.0.255.255::::eth0:dhcp'], ['videoram', 4], ['args', '3']]], ['s3_integrity', 1], ['device', ['tap', ['uname', 'tap:aio:/home/xen/blade8_disk'], ['dev', 'xvda1'], ['mode', 'w!']]], ['device', ['vif', ['bridge', 'eth0']]]]) [2009-07-21 17:05:55 9102] DEBUG (XendDomainInfo:2295) XendDomainInfo.constructDomain [2009-07-21 17:05:55 9102] DEBUG (balloon:166) Balloon: 263864 KiB free; need 4096; done. [2009-07-21 17:05:55 9102] DEBUG (XendDomain:452) Adding Domain: 3 [2009-07-21 17:05:55 9102] DEBUG (XendDomainInfo:2496) XendDomainInfo.initDomain: 3 256 [2009-07-21 17:05:55 10888] DEBUG (XendBootloader:113) Launching bootloader as ['/usr/bin/pygrub', '--args=ip=:127.0.255.255::::eth0:dhcp 3', '--output=/var/run/xend/boot/xenbl.25136', '/home/xen/blade8_disk']. [2009-07-21 17:05:58 9102] DEBUG (XendDomainInfo:2520) _initDomain:shadow_memory=0x0, memory_static_max=0x10000000, memory_static_min=0x0. [2009-07-21 17:05:58 9102] DEBUG (balloon:166) Balloon: 263740 KiB free; need 263168; done. [2009-07-21 17:05:58 9102] INFO (image:173) buildDomain os=linux dom=3 vcpus=2 [2009-07-21 17:05:58 9102] DEBUG (image:661) domid = 3 [2009-07-21 17:05:58 9102] DEBUG (image:662) memsize = 256 [2009-07-21 17:05:58 9102] DEBUG (image:663) image = /var/run/xend/boot/boot_kernel.jUkXPI [2009-07-21 17:05:58 9102] DEBUG (image:664) store_evtchn = 1 [2009-07-21 17:05:58 9102] DEBUG (image:665) console_evtchn = 2 [2009-07-21 17:05:58 9102] DEBUG (image:666) cmdline = ro root=/dev/sda1 console=xvc0 ip=:127.0.255.255::::eth0:dhcp 3 [2009-07-21 17:05:58 9102] DEBUG (image:667) ramdisk = /var/run/xend/boot/boot_ramdisk.Z_Aa4S [2009-07-21 17:05:58 9102] DEBUG (image:668) vcpus = 2 [2009-07-21 17:05:58 9102] DEBUG (image:669) features = [2009-07-21 17:05:58 9102] DEBUG (image:670) flags = 0 [2009-07-21 17:05:58 9102] INFO (XendDomainInfo:2159) createDevice: tap : {'bootable': 1, 'uname': 'tap:aio:/home/xen/blade8_disk', 'mode': 'w!', 'dev': 'xvda1', 'uuid': 'bf7c579e-7a61-9b8f-ff83-7764745e776a'} [2009-07-21 17:05:58 9102] DEBUG (DevController:95) DevController: writing {'virtual-device': '51713', 'device-type': 'disk', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/tap/3/51713'} to /local/domain/3/device/vbd/51713. [2009-07-21 17:05:58 9102] DEBUG (DevController:97) DevController: writing {'domain': 'blade_test', 'frontend': '/local/domain/3/device/vbd/51713', 'uuid': 'bf7c579e-7a61-9b8f-ff83-7764745e776a', 'bootable': '1', 'dev': 'xvda1', 'state': '1', 'params': 'aio:/home/xen/blade8_disk', 'mode': 'w!', 'online': '1', 'frontend-id': '3', 'type': 'tap'} to /local/domain/0/backend/tap/3/51713. [2009-07-21 17:05:58 9102] INFO (XendDomainInfo:2159) createDevice: vif : {'bridge': 'eth0', 'mac': '00:16:3e:3e:73:d9', 'uuid': '31fff34e-05e9-4ef0-65b3-c9d25a654ffb'} [2009-07-21 17:05:58 9102] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3e:3e:73:d9', 'handle': '0', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/3/0'} to /local/domain/3/device/vif/0. [2009-07-21 17:05:58 9102] DEBUG (DevController:97) DevController: writing {'bridge': 'eth0', 'domain': 'blade_test', 'handle': '0', 'uuid': '31fff34e-05e9-4ef0-65b3-c9d25a654ffb', 'script': '/etc/xen/scripts/vif-bridge bridge=eth0', 'mac': '00:16:3e:3e:73:d9', 'frontend-id': '3', 'state': '1', 'online': '1', 'frontend': '/local/domain/3/device/vif/0'} to /local/domain/0/backend/vif/3/0. [2009-07-21 17:05:58 9102] DEBUG (XendDomainInfo:3051) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 'af2582d3-8a73-c57e-328d-e5b23c84fedc', 'on_reboot': 'restart', 'start_time': '1248188758.83', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'preserve', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'bootloader': '/usr/bin/pygrub', 'image': "(linux (kernel ) (args 'ip=:127.0.255.255::::eth0:dhcp 3') (videoram 4) (notes (FEATURES 'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel') (VIRT_BASE 18446744071562067968) (GUEST_VERSION 2.6) (PADDR_OFFSET 18446744071562067968) (GUEST_OS linux) (HYPERCALL_PAGE 18446744071564189696) (LOADER generic) (ENTRY 18446744071564165120) (XEN_VERSION xen-3.0)))", 'name': 'blade_test'} [2009-07-21 17:05:58 9102] DEBUG (XendDomainInfo:1621) Storing domain details: {'console/ring-ref': '4252968', 'image/entry': '18446744071564165120', 'console/port': '2', 'store/ring-ref': '4252969', 'image/loader': 'generic', 'vm': '/vm/af2582d3-8a73-c57e-328d-e5b23c84fedc', 'control/platform-feature-multiprocessor-suspend': '1', 'image/guest-os': 'linux','cpu/1/availability': 'online', 'image/features/writable-descriptor-tables': '1', 'image/virt-base': '18446744071562067968', 'memory/target': '262144', 'image/guest-version': '2.6', 'image/features/supervisor-mode-kernel': '1', 'console/limit': '1048576', 'image/paddr-offset': '18446744071562067968', 'image/hypercall-page': '18446744071564189696', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '1', 'console/type': 'xenconsoled', 'image/features/auto-translated-physmap': '1', 'name': 'blade_test', 'domid': '3', 'image/xen-version': 'xen-3.0', 'store/port': '1'} [2009-07-21 17:05:58 9102] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/3/0'} to /local/domain/3/device/console/0. [2009-07-21 17:05:58 9102] DEBUG (DevController:97) DevController: writing {'domain': 'blade_test', 'frontend': '/local/domain/3/device/console/0', 'uuid': 'bfa86a07-8c0e-2e76-45d4-d7d48564d955', 'frontend-id': '3', 'state': '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/3/0. [2009-07-21 17:05:58 9102] DEBUG (DevController:139) Waiting for devices vif. [2009-07-21 17:05:58 9102] DEBUG (XendDomainInfo:1708) XendDomainInfo.handleShutdownWatch
[2009-07-21 17:05:58 9102] DEBUG (DevController:144) Waiting for 0.
[2009-07-21 17:05:58 9102] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status. [2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:2723) XendDomainInfo.destroy: domid=3 [2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:2198) Destroying device model
[2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:2205) Releasing devices
[2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:2218) Removing vif/0
[2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:1133) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:2218) Removing vbd/51713
[2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:1133) XendDomainInfo.destroyDevice: deviceClass = tap, device = vbd/51713
[2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:2218) Removing console/0
[2009-07-21 17:07:38 9102] DEBUG (XendDomainInfo:1133) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2009-07-21 17:07:39 9102] DEBUG (XendDomainInfo:2203) No device model
[2009-07-21 17:07:39 9102] DEBUG (XendDomainInfo:2205) Releasing devices
[2009-07-21 17:07:39 9102] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status. [2009-07-21 17:07:39 9102] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status. [2009-07-21 17:07:39 9102] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status. [2009-07-21 17:07:39 9102] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status. [2009-07-21 17:07:39 9102] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status.



If i comment the line with vif = [] in domU config file the sistem boot correctly.


Any idea?

Thanks in advance,
Muriel


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

<Prev in Thread] Current Thread [Next in Thread>