Skip to contentSkip to conversation

XM create issue: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

DISCUSSION avinash singh 2 participants 5 messages Nov 20, 2009

lore
Share & tools
lore
#0 lore raw

Hi All,

I am new to xen community. I am trying to setup Xen3.4.2 +FC11 Dom0 environs for lennovo T400. I have installed all prerequisite component for running xen and booted it.

while I am trying to create DomU I am getting error. I tried doing googling but none of suggested solution is working for me. For more details please see below, I have highlighted few details in bold color just for better & quick visibility.
I feel this is issue with 3.4.2.

[root@localhost rules.d]# brctl show

bridge name bridge id STP enabled interfaces

eth0 8000.001c2596e32b no peth0

pan0 8000.000000000000 no

virbr0 8000.000000000000 yes

[root@localhost xen]# cat test|grep -i vif

vif = [ 'type=ioemu, bridge=eth0' ]

root@localhost xen]# xm create test
Using config file "./test".

Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

Looking the xend.log, I can see that, vif virtual interface device is created and for status it is waiting in dom0(backend side) for hotplug callback status of device... for more details see below full xend.log, I have highlighted vif log details in red color just for better visibility... Please guide me through my installation.

[2009-11-20 12:24:17 2005] DEBUG (XendDomainInfo:92) XendDomainInfo.create(['vm', ['name', 'winHVMDomain'], ['memory', 1024], ['shadow_memory', 8], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['videoram', 4], ['device_model', '/usr/lib/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'cda'], ['fda', ''], ['fdb', ''], ['timer_mode', 1], ['localtime', 0], ['serial', 'pty'], ['stdvga', 0], ['isa', 0], ['nographic', 0], ['soundhw', ''], ['vnc', 1], ['vncdisplay', 1], ['vncunused', 1], ['vnclisten', '127.0.0.1'], ['xauthority', '/root/.Xauthority'], ['rtc_timeoffset', 0], ['monitor', 0], ['acpi', 1], ['apic', 1], ['usb', 0], ['usbdevice', 'tablet'], ['keymap', ''], ['pci', []], ['hpet', 0], ['guest_os_type', 'default'], ['hap', 1], ['cpuid', []], ['cpuid_check', []], ['viridian', 0], ['pci_msitranslate', 1], ['vpt_align', 1], ['pci_power_mgmt', 0], ['xen_platform_pci', 1]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'file:/root/xen.img'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/root/win.iso'], ['dev', 'cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'eth0'], ['type', 'ioemu']]]])
[2009-11-20 12:24:17 2005] DEBUG (XendDomainInfo:2304) XendDomainInfo.constructDomain
[2009-11-20 12:24:17 2005] DEBUG (balloon:166) Balloon: 1067752 KiB free; need 4096; done.
[2009-11-20 12:24:17 2005] DEBUG (XendDomain:453) Adding Domain: 2 [2009-11-20 12:24:17 2005] DEBUG (XendDomainInfo:2505) XendDomainInfo.initDomain: 2 256
[2009-11-20 12:24:17 2005] DEBUG (image:322) No VNC passwd configured for vfb access
[2009-11-20 12:24:17 2005] DEBUG (image:813) args: boot, val: cda [2009-11-20 12:24:17 2005] DEBUG (image:813) args: fda, val: None [2009-11-20 12:24:17 2005] DEBUG (image:813) args: fdb, val: None [2009-11-20 12:24:17 2005] DEBUG (image:813) args: soundhw, val: None [2009-11-20 12:24:17 2005] DEBUG (image:813) args: localtime, val: 0 [2009-11-20 12:24:17 2005] DEBUG (image:813) args: serial, val: ['pty'] [2009-11-20 12:24:17 2005] DEBUG (image:813) args: std-vga, val: 0 [2009-11-20 12:24:17 2005] DEBUG (image:813) args: isa, val: 0 [2009-11-20 12:24:17 2005] DEBUG (image:813) args: acpi, val: 1 [2009-11-20 12:24:17 2005] DEBUG (image:813) args: usb, val: 0 [2009-11-20 12:24:17 2005] DEBUG (image:813) args: usbdevice, val: tablet [2009-11-20 12:24:17 2005] INFO (image:749) Need to create platform device.[domid:2]
[2009-11-20 12:24:17 2005] DEBUG (XendDomainInfo:2529) _initDomain:shadow_memory=0x8, memory_static_max=0x40000000, memory_static_min=0x0.
[2009-11-20 12:24:17 2005] DEBUG (balloon:166) Balloon: 1066468 KiB free; need 1065984; done.
[2009-11-20 12:24:17 2005] INFO (image:173) buildDomain os=hvm dom=2 vcpus=1
[2009-11-20 12:24:17 2005] DEBUG (image:866) domid = 2
[2009-11-20 12:24:17 2005] DEBUG (image:867) image =
/usr/lib/xen/boot/hvmloader

[2009-11-20 12:24:17 2005] DEBUG (image:868) store_evtchn   = 2
[2009-11-20 12:24:17 2005] DEBUG (image:869) memsize        = 1024
[2009-11-20 12:24:17 2005] DEBUG (image:870) target         = 1024
[2009-11-20 12:24:17 2005] DEBUG (image:871) vcpus          = 1
[2009-11-20 12:24:18 2005] DEBUG (image:872) acpi           = 1
[2009-11-20 12:24:18 2005] DEBUG (image:873) apic           = 1

[2009-11-20 12:24:18 2005] INFO (XendDomainInfo:2168) createDevice: vfb :
{'vncunused': 1, 'other_config': {'vncunused': 1, 'vnclisten': '127.0.0.1', 'vnc': '1', 'vncdisplay': 1}, 'vnc': '1', 'uuid':
'1585ac69-1b11-f212-1cd5-3f9c791c7d37', 'vnclisten': '127.0.0.1', 'vncdisplay': 1}
[2009-11-20 12:24:18 2005] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/2/0'} to /local/domain/2/device/vfb/0. [2009-11-20 12:24:18 2005] DEBUG (DevController:97) DevController: writing {'vncunused': '1', 'domain': 'winHVMDomain', 'vnc': '1', 'uuid':
'1585ac69-1b11-f212-1cd5-3f9c791c7d37', 'frontend-id': '2', 'vnclisten':
'127.0.0.1', 'vncdisplay': '1', 'state': '1', 'online': '1', 'frontend':
'/local/domain/2/device/vfb/0'} to /local/domain/0/backend/vfb/2/0. [2009-11-20 12:24:18 2005] INFO (XendDomainInfo:2168) createDevice: vbd :
{'uuid': 'cbba8159-51ae-ab49-1d07-c26cc7f6af36', 'bootable': 1, 'driver':
'paravirtualised', 'dev': 'hda', 'uname': 'file:/root/xen.img', 'mode': 'w'} [2009-11-20 12:24:18 2005] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/2/768'} to /local/domain/2/device/vbd/768.
[2009-11-20 12:24:18 2005] DEBUG (DevController:97) DevController: writing {'domain': 'winHVMDomain', 'frontend': '/local/domain/2/device/vbd/768', 'uuid': 'cbba8159-51ae-ab49-1d07-c26cc7f6af36', 'bootable': '1', 'dev':
'hda', 'state': '1', 'params': '/root/xen.img', 'mode': 'w', 'online': '1', 'frontend-id': '2', 'type': 'file'} to /local/domain/0/backend/vbd/2/768. [2009-11-20 12:24:18 2005] INFO (XendDomainInfo:2168) createDevice: vbd :
{'uuid': '395cfd84-3de3-aaf7-608c-af63db0b5742', 'bootable': 0, 'driver':
'paravirtualised', 'dev': 'cdrom', 'uname': 'file:/root/win.iso', 'mode':
'r'}
[2009-11-20 12:24:18 2005] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'virtual-device': '2816', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/2/2816'} to /local/domain/2/device/vbd/2816.
[2009-11-20 12:24:18 2005] DEBUG (DevController:97) DevController: writing {'domain': 'winHVMDomain', 'frontend': '/local/domain/2/device/vbd/2816', 'uuid': '395cfd84-3de3-aaf7-608c-af63db0b5742', 'bootable': '0', 'dev':
'cdrom', 'state': '1', 'params': '/root/win.iso', 'mode': 'r', 'online':
'1', 'frontend-id': '2', 'type': 'file'} to /local/domain/0/backend/vbd/2/2816.
[2009-11-20 12:24:18 2005] INFO (XendDomainInfo:2168) createDevice: vif :
{'bridge': 'eth0', 'mac': '00:16:3e:66:60:cf', 'type': 'ioemu', 'uuid':
'5d23eadf-6a0b-fb8b-296d-a7d7966894e9'}
[2009-11-20 12:24:18 2005] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vif/2/0'} to /local/domain/2/device/vif/0. [2009-11-20 12:24:18 2005] DEBUG (DevController:97) DevController: writing {'bridge': 'eth0', 'domain': 'winHVMDomain', 'handle': '0', 'uuid':
'5d23eadf-6a0b-fb8b-296d-a7d7966894e9', 'script':
'/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:66:60:cf', 'frontend-id':
'2', 'state': '1', 'online': '1', 'frontend':
'/local/domain/2/device/vif/0', 'type': 'ioemu'} to /local/domain/0/backend/vif/2/0.
[2009-11-20 12:24:18 2005] INFO (image:394) spawning device models:
/usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '2', '-domain-name', 'winHVMDomain', '-videoram', '4', '-vnc', '127.0.0.1:1', '-vncunused', '-vcpus', '1', '-boot', 'cda', '-serial', 'pty', '-acpi', '-usbdevice', 'tablet', '-net', 'nic,vlan=1,macaddr=00:16:3e:66:60:cf,model=rtl8139', '-net', 'tap,vlan=1,ifname=tap2.0,bridge=eth0', '-M', 'xenfv'] [2009-11-20 12:24:18 2005] INFO (image:443) device model pid: 2618 [2009-11-20 12:24:18 2005] INFO (image:531) waiting for sentinel_fifo[2009-11-20 12:24:18 2005] DEBUG (XendDomainInfo:3060) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '9', 'uuid':
'6801e5fe-6fb0-08fe-dac5-a4d78a1eaffb', 'on_reboot': 'restart', 'start_time': '1258700058.32', 'on_poweroff': 'destroy', 'bootloader_args':
'', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count':
'0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': '(hvm (kernel ) (timer_mode 1) (videoram 4) (vnc 1) (vpt_align 1) (nographic 0) (hpet 0) (rtc_timeoffset 0) (vnclisten 127.0.0.1) (vncdisplay 1) (loader /usr/lib/xen/boot/hvmloader) (pci ()) (pci_msitranslate 1) (guest_os_type default) (apic 1) (serial pty) (xen_platform_pci 1) (hap 1) (monitor 0) (device_model /usr/lib/xen/bin/qemu-dm) (boot cda) (pci_power_mgmt 0) (usbdevice tablet) (pae 1) (stdvga 0) (usb 0) (xauthority /root/.Xauthority) (isa 0) (viridian 0) (acpi 1) (vncunused 1) (localtime 0) (notes (SUSPEND_CANCEL 1)))', 'name': 'winHVMDomain'}[2009-11-20 12:24:18 2005] DEBUG (XendDomainInfo:1622) Storing domain details: {'console/port': '3', 'name': 'winHVMDomain', 'console/limit': '1048576', 'store/port': '2', 'vm':
'/vm/6801e5fe-6fb0-08fe-dac5-a4d78a1eaffb', 'domid': '2', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/target': '1048576', 'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref':
'1044476', 'console/type': 'ioemu'}
[2009-11-20 12:24:18 2005] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/2/0'} to /local/domain/2/device/console/0.[2009-11-20 12:24:18 2005] DEBUG (DevController:97) DevController: writing {'domain': 'winHVMDomain', 'frontend': '/local/domain/2/device/console/0', 'uuid':
'1511fbb3-0da0-455e-bb0d-b13f470d68d9', 'frontend-id': '2', 'state': '1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/2/0.
[2009-11-20 12:24:18 2005] DEBUG (XendDomainInfo:1709) XendDomainInfo.handleShutdownWatch
[2009-11-20 12:24:18 2005] DEBUG (DevController:139) Waiting for devices vif.
[2009-11-20 12:24:18 2005] DEBUG (DevController:144) Waiting for 0. [2009-11-20 12:24:18 2005] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status.
[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2732) XendDomainInfo.destroy: domid=2
[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2207) Destroying device model
[2009-11-20 12:25:59 2005] INFO (image:556) winHVMDomain device model terminated
[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2214) Releasing devices [2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2227) Removing vif/0 [2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2227) Removing console/0[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0 [2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2227) Removing vbd/768 [2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2227) Removing vbd/2816 [2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/2816[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2227) Removing vfb/0
[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0[2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2212) No device model [2009-11-20 12:25:59 2005] DEBUG (XendDomainInfo:2214) Releasing devices

Signature · 4 lines
Avinash Singh
ECE-07 ITBHU Varanasi.

Bangalore.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

avinash singh writes ("[Xen-devel] XM create issue: Error: Device 0 (vif) could not be connected. Hotplug scripts not working."):

Quoted 9 lines

I am new to xen community. I am trying to setup Xen3.4.2 +FC11 Dom0 environs for lennovo T400. I have installed all prerequisite component for running xen and booted it.

while I am trying to create DomU I am getting error. I tried doing googling but none of suggested solution is working for me. For more details please see below, I have highlighted few details in bold color just for better & quick visibility.
I feel this is issue with 3.4.2.

This is almost certainly a configuration error. You should post your question to the xen-users list, not xen-devel.

xen-devel is for developers to talk to each other about development.

Thanks,
Ian.

#2 lore raw

Hi Ian,

I posted my query to Xen-user-list as well but I didn't get any proper hack of this issue. Please if you can quickly see the xend.log, you may get the answer of my issue. I have everything installed properly ( udev-devel,bridge-utils, and etc..). I am not able to understand why this is giving me error. I did enough research on that. Please guide me through this. Thanks in advance for your help...

Quoted 24 lines · Ian Jackson

avinash singh writes ("[Xen-devel] XM create issue: Error: Device 0 (vif) could not be connected. Hotplug scripts not working."):

Quoted 1 line

I am new to xen community. I am trying to setup Xen3.4.2 +FC11 Dom0

environs

Quoted 1 line

for lennovo T400. I have installed all prerequisite component for

running

Quoted 3 lines

xen and booted it.

while I am trying to create DomU I am getting error. I tried doing

googling

Quoted 2 lines

but none of suggested solution is working for me. For more details please see below, I have highlighted few details in bold color just for better

&

Quoted 2 lines

quick visibility.
I feel this is issue with 3.4.2.

This is almost certainly a configuration error. You should post your question to the xen-users list, not xen-devel.

xen-devel is for developers to talk to each other about development.

Thanks,
Ian.

Signature · 4 lines
Avinash Singh
ECE-07 ITBHU Varanasi.

Bangalore.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

avinash singh writes ("Re: [Xen-devel] XM create issue: Error: Device 0 (vif) could not be connected. Hotplug scripts not working."):

Quoted 7 lines

I posted my query to Xen-user-list as well but I didn't get any proper hack of this issue. Please if you can quickly see the xend.log, you may get the answer of my issue. I have everything installed properly ( udev-devel,bridge-utils, and etc..). I am not able to understand why this is giving me error. I did enough research on that. Please guide me through this. Thanks in advance for your help...

Sorry to take a tough line, but:

No, sorry, we should be spending our time improving the software, not answering user questions. Please would you set a good example by not repeating your question on xen-devel.

Please would other readers of xen-devel also set a good example by _not_ answering the question.

Ian.

#4 lore raw

Thanks Ian,

I haven't expected this kind of mail. I am also developer but new with this environment ;)

Quoted 21 lines · Ian Jackson

avinash singh writes ("Re: [Xen-devel] XM create issue: Error: Device 0 (vif) could not be connected. Hotplug scripts not working."):

Quoted 7 lines

I posted my query to Xen-user-list as well but I didn't get any proper hack of this issue. Please if you can quickly see the xend.log, you may get the answer of my issue. I have everything installed properly ( udev-devel,bridge-utils, and etc..). I am not able to understand why this is giving me error. I did enough research on that. Please guide me through this. Thanks in advance for your help...

Sorry to take a tough line, but:

No, sorry, we should be spending our time improving the software, not answering user questions. Please would you set a good example by not repeating your question on xen-devel.

Please would other readers of xen-devel also set a good example by _not_ answering the question.

Ian.

Signature · 4 lines
Avinash Singh
ECE-07 ITBHU Varanasi.

Bangalore.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel