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

[Xen-users] Re: xend is not started: libvirtd: ERROR Internal error: Could not obtain handle on privileged command interface (13 = Permission denied)


  • To: avinash singh <avi2003itbhu@xxxxxxxxx>
  • From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
  • Date: Sun, 22 Nov 2009 14:00:16 -0800 (PST)
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sun, 22 Nov 2009 14:02:27 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=4ya6SHJOGYPgvaktIcNl0UTwwpptw2b6JfKFeme+g7tOUfBDk/BrO3gFdQE4x1tNhUrg9SNhjriyN62F4GBfBrsFxmRf183aFuj4SmEU6xnhVElVvj4Khu9NJ9D/IYL6dAmOq81pPMSbMf22S4qg6R972bR3KvOkUraMpn/ivh4=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Read PVOPS WIKI and build the most recent 2.6.31.6

   http://wiki.xensource.com/xenwiki/XenParavirtOps

Download
xen-3.4.1-5.fc12.src.rpm

install and build Xen Packages

Disable SELINUX.

Boris.
P.S You would better move to F12, regardless i have all this stuff working on F11.

--- On Sun, 11/22/09, avinash singh <avi2003itbhu@xxxxxxxxx> wrote:

From: avinash singh <avi2003itbhu@xxxxxxxxx>
Subject: xend is not started: libvirtd: ERROR Internal error: Could not obtain handle on privileged command interface (13 = Permission denied)
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Sunday, November 22, 2009, 1:38 PM

Hi Boris,
I tired to setup xen3.4.1 with FC11  but again this time i have problem with loading libvird as result xend service is not able to start. 

At console prompt, this error msg i have found
ERROR Internal error: Could not obtain handle on privileged command
interface (13 = Permission denied)

FATAL: Failed to open connection to hypervisor: Permission denied

Please can you look into this, I know this issue is because of not proper PV-ops kernel. I tried both version 2.6.30 and 2.6.31 pvops kernel but I am getting same issue again and again.

Please guide me. I am completely stuck and it is really frustrating :( ....

If you need any more info Please let me know.

I followed below steps for fresh installation,


-Installed fresh FC11
-Followed RPM build for xen-3.4.1-1.fc12.src.rpm.
[root@root ~]# rpm -qa |grep -i xen
xen-3.4.1-1.fc11.i586
xen-debuginfo-3.4.1-1.fc11.
i586

xen-libs-3.4.1-1.fc11.i586

xen-hypervisor-3.4.1-1.fc11.
i586
xen-runtime-3.4.1-1.fc11.i586
xen-doc-3.4.1-1.fc11.i586
xen-devel-3.4.1-1.fc11.i586


-installed virt.
[root@root ~]# rpm -qa |grep -i virt

virt-viewer-0.2.0-1.fc11.i586

libvirt-0.7.1-15.fc11.i586
python-virtinst-0.500.0-5.
fc11.noarch
libvirt-client-0.7.1-15.fc11.
i586
libvirt-python-0.7.1-15.fc11.
i586
virt-manager-0.7.0-7.fc11.i586

-Downloaded PV-ops kernel linux-2.6.31.1_pvops-xen-master.tree-2009-10-10 through git repository

and followed this blog, http://bderzhavets.wordpress.com/2009/06/10/setup-fedora-11-pv-domu-at-xen-3-4-1-dom0-kernel-2-6-30-rc6-tip-on-top-of-fedora-11/

and change ./config file for building dom0 kernel.

[root@root linux-2.6.31.1_pvops-xen-master.tree-2009-10-10]# uname -a
Linux root 2.6.31.1 #1 SMP Sun Nov 22 21:38:56 IST 2009 i686 i686 i386 GNU/Linux



-Changed the grub menu and rebooted machine into xen mode.

But unfortunately, xend service is not started this time giving this error,
ERROR Internal error: Could not obtain handle on privileged command

interface (13 = Permission denied)
FATAL: Failed to open connection to hypervisor: Permission denied


Please see xend.log below,

[2009-11-22 18:09:27 2068] INFO (SrvDaemon:339) Xend Daemon started

[2009-11-22 18:09:27 2068] INFO (SrvDaemon:343) Xend changeset: unavailable.
[2009-11-22 18:09:29 2068] ERROR (SrvDaemon:356) Exception starting xend ((111, 'Connection refused'))
Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvDaemon.py", line 348, in run
servers = SrvServer.create()
File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvServer.py", line 251, in create

root.putChild('xend', SrvRoot())
File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__
self.get(name)
File "/usr/lib/python2.6/site-packages/xen/web/SrvDir.py", line 84, in get

val = val.getobj()
File "/usr/lib/python2.6/site-packages/xen/web/SrvDir.py", line 52, in getobj
self.obj = klassobj()
File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvNode.py", line 30, in __init__

self.xn = XendNode.instance()
File "/usr/lib/python2.6/site-packages/xen/xend/XendNode.py", line 949, in instance
inst.save()
File "/usr/lib/python2.6/site-packages/xen/xend/XendNode.py", line 484, in save

self.save_networks()
File "/usr/lib/python2.6/site-packages/xen/xend/XendNode.py", line 499, in save_networks
for network_uuid in XendNetwork.get_all()])
File "/usr/lib/python2.6/site-packages/xen/xend/XendBase.py", line 102, in get_record

for key in keys])
File "/usr/lib/python2.6/site-packages/xen/xend/XendNetwork.py", line 196, in get_VIFs
vms = XendDomain.instance().get_all_vms()
File "/usr/lib/python2.6/site-packages/xen/xend/XendDomain.py", line 1736, in instance

inst.init()
File "/usr/lib/python2.6/site-packages/xen/xend/XendDomain.py", line 113, in init
xstransact.Mkdir(XS_VMROOT)
File "/usr/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 355, in Mkdir

complete(path, lambda t: t.mkdir(*args))
File "/usr/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 361, in complete
t = xstransact(path)
File "/usr/lib/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 29, in __init__

self.transaction = xshandle().transaction_start()
File "/usr/lib/python2.6/site-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle
xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')





On Sat, Nov 21, 2009 at 12:04 AM, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
You did it wrong. I just ran it on my Xen 3.4.1 Dom0 (2.6.31.6 pvops)  on top of F12 (F11 would show the same) :-

[root@fedora12sda ~]# rpm -qa|grep xen
xen-3.4.1-5.fc12.x86_64
xen-hypervisor-3.4.1-5.fc12.x86_64
xen-libs-3.4.1-5.fc12.x86_64
xen-runtime-3.4.1-5.fc12.x86_64

[root@fedora12sda ~]# rpm -qa|grep virt
virt-viewer-0.2.0-1.fc12.x86_64
virt-manager-0.8.0-7.fc12.noarch
libvirt-0.7.1-15.fc12.x86_64
libvirt-client-0.7.1-15.fc12.x86_64
libvirt-python-0.7.1-15.fc12.x86_64
python-virtinst-0.500.0-5.fc12.noarch

You need to install xen-3.4.1-5.fc12.src.rpm. Build xen packages via the most
recent xen-3.4.1-5.fc12.src.rpm. Install Xen Hypervisor ,then install libvirt. Then install pvops kernel. Virt-install perform HVM DomU setup with no problems. You shouldn't
need regular xm-profile. However, standard HVM xm-profile would work fine as well
if you pass through procedure properly

Boris.

--- On Fri, 11/20/09, avinash singh <avi2003itbhu@xxxxxxxxx> wrote:

From: avinash singh <avi2003itbhu@xxxxxxxxx>
Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working. One more question.
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>Date: Friday, November 20, 2009, 1:15 PM


Hi Boris,

I have followed this blog for my xen setup,
http://bderzhavets.wordpress.com/2009/06/10/setup-fedora-11-pv-domu-at-xen-3-4-1-dom0-kernel-2-6-30-rc6-tip-on-top-of-fedora-11/


See below for few installed rpms,
[root@localhost ~]# rpm -qa |  grep xen
xen-libs-3.3.1-11.fc11.i586
[root@localhost ~]# rpm -qa |grep libvirt
libvirt-python-0.6.2-19.fc11.i586
libvirt-0.6.2-19.fc11.i586
[root@localhost ~]# rpm -qa |grep bridg
bridge-utils-1.2-7.fc11.i586




On Fri, Nov 20, 2009 at 11:36 PM, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
Next question:-

eth0            8000.001c2596e32b       no              peth0

pan0            8000.000000000000       no

virbr0          8000.000000000000       yes


Presence virbr0 in report seems strange. Direct port  Xen 3.4.2  to F11 doesn't install daemon

libvirtd ( bridge virbr0 ) , unless you wrote xen-3.4.2-(x).fc12.src.rpm  yourself.


So , from where bridge virbr0 comes  ?

Install Libvirt on F11 for KVM would mess Xen 3.4.2 port .

What reports ?


# rpm -qa |  grep xen


build xen from souce on F11 doesn't change this output.


Boris.






--- On Fri, 11/20/09, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
To: "Geoff Armfield" <geoff.armfield@xxxxxxxxxxxxxx>, "avinash singh" <avi2003itbhu@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Friday, November 20, 2009, 12:04 PM

I believe disk should be also fixed.

hdc:cdrom

--- On Fri, 11/20/09, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
To: "Geoff Armfield" <geoff.armfield@xxxxxxxxxxxxxx>, "avinash singh" <avi2003itbhu@xxxxxxxxx>
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@xxxxxxxxx> wrote:

From: avinash singh <avi2003itbhu@xxxxxxxxx>
Subject: Re: [Xen-users] xm create: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
To: "Geoff Armfield" <geoff.armfield@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users






--
Avinash Singh
ECE-07 ITBHU Varanasi.

Bangalore.






--
Avinash Singh
ECE-07 ITBHU Varanasi.

Bangalore.



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

 


Rackspace

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