avinash singh
2009-Nov-19 11:57 UTC
[Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
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 following error. I tried doing googling but none of suggested solution is working for me. Please guide me through my first experience with xen.for more details please see below, *root@localhost ~]# xm create /etc/xen/test Using config file "/etc/xen/test". Error: Device 0 (vif) could not be connected. Hotplug scripts not working.* Along with that, I am attaching all perquisite installed rpms for xen (install_log). Please help me to fix this issue. DOmU configuration file: ------------------------------ -------------------------- import os, re arch_libdir = ''lib'' arch = os.uname()[4] if os.uname()[0] == ''Linux'' and re.search(''64'', arch): arch_libdir = ''lib64'' #---------------------------------------------------------------------------- # Kernel image file. kernel = "/usr/lib/xen/boot/hvmloader" # The domain build function. HVM domain uses ''hvm''. builder=''hvm'' # Initial memory allocation (in megabytes) for the new domain. # # WARNING: Creating a domain with insufficient memory may cause out of # memory errors. The domain needs enough memory to boot kernel # and modules. Allocating less than 32MBs is not recommended. memory = 1024 # Shadow pagetable memory for the domain, in MB. # If not explicictly set, xend will pick an appropriate value. # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. shadow_memory = 8 name = "winHVMDomain" vcpus=1 #cpus = "" # leave to Xen to pick #cpus = "0" # all vcpus run on CPU0 #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3 vif = [ ''type=ioemu, bridge=eth0'' ] disk = [ ''file:/root/xen.img,hda,w'', ''file:/root/win.iso,cdrom,r'' ] device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' boot="cda" vnc=1 vnclisten="127.0.0.1" vncdisplay=1 stdvga=0 -- Avinash Singh ECE-07 ITBHU Varanasi. Bangalore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
avinash singh
2009-Nov-20 08:11 UTC
Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
Hi Geoff, Thanks for prompt reply. I have assigned correct interface. Please see below for more detail, [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 On Fri, Nov 20, 2009 at 4:40 AM, Geoff Armfield < geoff.armfield@googlemail.com> wrote:> Check your vif=statement (domU config) and or bridging. "brctl show" and > any xend logs helps the situation. > > Kind Regards, > Geoff > -- > Nothing is fool proof to a sufficiently talented fool. > > On Thu, Nov 19, 2009 at 11:57 AM, avinash singh <avi2003itbhu@gmail.com>wrote: > >> 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 following error. I tried >> doing googling but none of suggested solution is working for me. Please >> guide me through my first experience with xen.for more details please see >> below, >> >> *root@localhost ~]# xm create /etc/xen/test >> Using config file "/etc/xen/test". >> Error: Device 0 (vif) could not be connected. Hotplug scripts not working. >> * >> >> >> Along with that, I am attaching all perquisite installed rpms for xen >> (install_log). Please help me to fix this issue. >> >> >> DOmU configuration file: >> >> ------------------------------ >> -------------------------- >> import os, re >> >> arch_libdir = ''lib'' >> arch = os.uname()[4] >> if os.uname()[0] == ''Linux'' and re.search(''64'', arch): >> arch_libdir = ''lib64'' >> >> >> #---------------------------------------------------------------------------- >> # Kernel image file. >> kernel = "/usr/lib/xen/boot/hvmloader" >> >> # The domain build function. HVM domain uses ''hvm''. >> builder=''hvm'' >> >> # Initial memory allocation (in megabytes) for the new domain. >> # >> # WARNING: Creating a domain with insufficient memory may cause out of >> # memory errors. The domain needs enough memory to boot kernel >> # and modules. Allocating less than 32MBs is not recommended. >> memory = 1024 >> >> # Shadow pagetable memory for the domain, in MB. >> # If not explicictly set, xend will pick an appropriate value. >> # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. >> shadow_memory = 8 >> name = "winHVMDomain" >> vcpus=1 >> #cpus = "" # leave to Xen to pick >> #cpus = "0" # all vcpus run on CPU0 >> #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5 >> #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3 >> >> vif = [ ''type=ioemu, bridge=eth0'' ] >> >> >> disk = [ ''file:/root/xen.img,hda,w'', ''file:/root/win.iso,cdrom,r'' ] >> >> device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' >> boot="cda" >> >> vnc=1 >> vnclisten="127.0.0.1" >> vncdisplay=1 >> >> stdvga=0 >> >> >> >> -- >> Avinash Singh >> ECE-07 ITBHU Varanasi. >> >> Bangalore. >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > > > -- > "Nothing is fool proof to a sufficiently talented fool" >-- Avinash Singh ECE-07 ITBHU Varanasi. Bangalore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-Nov-20 17:04 UTC
Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
I believe disk should be also fixed. hdc:cdrom --- On Fri, 11/20/09, Boris Derzhavets <bderzhavets@yahoo.com> wrote: From: Boris Derzhavets <bderzhavets@yahoo.com> Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. To: "Geoff Armfield" <geoff.armfield@googlemail.com>, "avinash singh" <avi2003itbhu@gmail.com> Date: Friday, November 20, 2009, 12:01 PM Remove vif and try to start HVM DomU. What happens ? B. --- On Fri, 11/20/09, avinash singh <avi2003itbhu@gmail.com> wrote: From: avinash singh <avi2003itbhu@gmail.com> Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. To: "Geoff Armfield" <geoff.armfield@googlemail.com> Date: Friday, November 20, 2009, 3:11 AM Hi Geoff, Thanks for prompt reply. I have assigned correct interface. Please see below for more detail, [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 On Fri, Nov 20, 2009 at 4:40 AM, Geoff Armfield <geoff.armfield@googlemail.com> wrote: Check your vif=statement (domU config) and or bridging. "brctl show" and any xend logs helps the situation. Kind Regards, Geoff -- Nothing is fool proof to a sufficiently talented fool. On Thu, Nov 19, 2009 at 11:57 AM, avinash singh <avi2003itbhu@gmail.com> wrote: 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 following error. I tried doing googling but none of suggested solution is working for me. Please guide me through my first experience with xen.for more details please see below, root@localhost ~]# xm create /etc/xen/test Using config file "/etc/xen/test". Error: Device 0 (vif) could not be connected. Hotplug scripts not working. Along with that, I am attaching all perquisite installed rpms for xen (install_log). Please help me to fix this issue. DOmU configuration file: ------------------------------ -------------------------- import os, re arch_libdir = ''lib'' arch = os.uname()[4] if os.uname()[0] == ''Linux'' and re.search(''64'', arch): arch_libdir = ''lib64'' #---------------------------------------------------------------------------- # Kernel image file. kernel = "/usr/lib/xen/boot/hvmloader" # The domain build function. HVM domain uses ''hvm''. builder=''hvm'' # Initial memory allocation (in megabytes) for the new domain. # # WARNING: Creating a domain with insufficient memory may cause out of # memory errors. The domain needs enough memory to boot kernel # and modules. Allocating less than 32MBs is not recommended. memory = 1024 # Shadow pagetable memory for the domain, in MB. # If not explicictly set, xend will pick an appropriate value. # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. shadow_memory = 8 name = "winHVMDomain" vcpus=1 #cpus = "" # leave to Xen to pick #cpus = "0" # all vcpus run on CPU0 #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3 vif = [ ''type=ioemu, bridge=eth0'' ] disk = [ ''file:/root/xen.img,hda,w'', ''file:/root/win.iso,cdrom,r'' ] device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' boot="cda" vnc=1 vnclisten="127.0.0.1" vncdisplay=1 stdvga=0 -- Avinash Singh ECE-07 ITBHU Varanasi. Bangalore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -- "Nothing is fool proof to a sufficiently talented fool" -- Avinash Singh ECE-07 ITBHU Varanasi. Bangalore. -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
avinash singh
2009-Nov-20 17:45 UTC
Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
Hi Brois and Geoff, Disk entry was typo mistake. After removing virtual interface entry(vif), I am able to create DomU guest, But What is wrong with my Vif entry ? [root@localhost ~]# xm create /etc/xen/test Using config file "/etc/xen/test". Started domain winHVMDomain (id=1) [root@localhost ~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1938 2 r----- 114.2 winHVMDomain 1 1024 1 ------ 1.1 root@localhost ~]# xm info host : localhost.localdomain release : 2.6.31.5 version : #1 SMP Tue Nov 17 14:18:23 IST 2009 machine : i686 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 2261 hw_caps : bfebfbff:20100000:00000000:00000140:0008e3fd:00000000:00000001:00000000 virt_caps : hvm total_memory : 3014 free_memory : 1042 node_to_cpu : node0:0-1 node_to_memory : node0:1042 xen_major : 3 xen_minor : 4 xen_extra : .2 xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xf5800000 xen_changeset : unavailable cc_compiler : gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC) cc_compile_by : root cc_compile_domain : localdomain cc_compile_date : Thu Nov 19 17:17:51 IST 2009 xend_config_format : 4 On Fri, Nov 20, 2009 at 10:34 PM, Boris Derzhavets <bderzhavets@yahoo.com>wrote:> I believe disk should be also fixed. > > hdc:cdrom > > --- On *Fri, 11/20/09, Boris Derzhavets <bderzhavets@yahoo.com>* wrote: > > > From: Boris Derzhavets <bderzhavets@yahoo.com> > > Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be > connected. Hotplug scripts not working. > To: "Geoff Armfield" <geoff.armfield@googlemail.com>, "avinash singh" < > avi2003itbhu@gmail.com> > Date: Friday, November 20, 2009, 12:01 PM > > > Remove vif and try to start HVM DomU. > What happens ? > > B. > > --- On *Fri, 11/20/09, avinash singh <avi2003itbhu@gmail.com>* wrote: > > > From: avinash singh <avi2003itbhu@gmail.com> > Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be > connected. Hotplug scripts not working. > To: "Geoff Armfield" <geoff.armfield@googlemail.com> > Date: Friday, November 20, 2009, 3:11 AM > > Hi Geoff, > > Thanks for prompt reply. I have assigned correct interface. Please see > below for more detail, > > [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 > > > > > > > > > On Fri, Nov 20, 2009 at 4:40 AM, Geoff Armfield < > geoff.armfield@googlemail.com> wrote: > >> Check your vif=statement (domU config) and or bridging. "brctl show" and >> any xend logs helps the situation. >> >> Kind Regards, >> Geoff >> -- >> Nothing is fool proof to a sufficiently talented fool. >> >> On Thu, Nov 19, 2009 at 11:57 AM, avinash singh <avi2003itbhu@gmail.com>wrote: >> >>> 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 following error. I tried >>> doing googling but none of suggested solution is working for me. Please >>> guide me through my first experience with xen.for more details please see >>> below, >>> >>> *root@localhost ~]# xm create /etc/xen/test >>> Using config file "/etc/xen/test". >>> Error: Device 0 (vif) could not be connected. Hotplug scripts not >>> working.* >>> >>> >>> Along with that, I am attaching all perquisite installed rpms for xen >>> (install_log). Please help me to fix this issue. >>> >>> >>> DOmU configuration file: >>> >>> ------------------------------ >>> -------------------------- >>> import os, re >>> >>> arch_libdir = ''lib'' >>> arch = os.uname()[4] >>> if os.uname()[0] == ''Linux'' and re.search(''64'', arch): >>> arch_libdir = ''lib64'' >>> >>> >>> #---------------------------------------------------------------------------- >>> # Kernel image file. >>> kernel = "/usr/lib/xen/boot/hvmloader" >>> >>> # The domain build function. HVM domain uses ''hvm''. >>> builder=''hvm'' >>> >>> # Initial memory allocation (in megabytes) for the new domain. >>> # >>> # WARNING: Creating a domain with insufficient memory may cause out of >>> # memory errors. The domain needs enough memory to boot kernel >>> # and modules. Allocating less than 32MBs is not recommended. >>> memory = 1024 >>> >>> # Shadow pagetable memory for the domain, in MB. >>> # If not explicictly set, xend will pick an appropriate value. >>> # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. >>> shadow_memory = 8 >>> name = "winHVMDomain" >>> vcpus=1 >>> #cpus = "" # leave to Xen to pick >>> #cpus = "0" # all vcpus run on CPU0 >>> #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5 >>> #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3 >>> >>> vif = [ ''type=ioemu, bridge=eth0'' ] >>> >>> >>> disk = [ ''file:/root/xen.img,hda,w'', ''file:/root/win.iso,cdrom,r'' ] >>> >>> device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' >>> boot="cda" >>> >>> vnc=1 >>> vnclisten="127.0.0.1" >>> vncdisplay=1 >>> >>> stdvga=0 >>> >>> >>> >>> -- >>> Avinash Singh >>> ECE-07 ITBHU Varanasi. >>> >>> Bangalore. >>> >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >>> >> >> >> >> -- >> "Nothing is fool proof to a sufficiently talented fool" >> > > > > -- > Avinash Singh > ECE-07 ITBHU Varanasi. > > Bangalore. > > > > -----Inline Attachment Follows----- > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > >-- Avinash Singh ECE-07 ITBHU Varanasi. Bangalore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maybe Matching Threads
- Re: xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. One more question.
- Task blocked for more than 120 seconds.
- Error: Device 768 (vbd) could not be connected. Path closed or removed during hotplug add: backend/vbd/9/768 state: 1
- Xen 4.0 - prerequisites for succesfull live migration?
- Bug#636552: xen-hypervisor-4.1-i386: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.