<div dir="ltr">hi,<div><br></div><div>i prepared my xen-4.2.1 document with this mail. kindly refer the below attachment.</div><div><br></div><div>i installed libvirt 1.1.1 like this it giving the following error:</div><div>
<br></div><div>./autogen.sh --system --with-xen=yes</div><div>make</div><div>/daemon/libvirtd -d</div><div><br></div><div><br></div><div>then i checked with the virsh ->version</div><div><div>virsh # version</div><div>
error: failed to connect to the hypervisor</div><div>error: no valid connection</div><div>error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory</div></div><div><br></div><div>
but virsh -version -> 1.1.1</div><div>and also libvirtd --version -> 1.1.1</div><div><br></div><div>how to solve the above error.</div><div><br></div><div>Small request i found the libvirt but its not active kindly make active that one. It will help the beginners.</div>
<div><br></div><div>regards,</div><div>cooldharma06</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 4, 2013 at 9:52 PM, Jim Fehlig <span dir="ltr"><<a href="mailto:jfehlig@suse.com" target="_blank">jfehlig@suse.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">cooldharma06 wrote:<br>
> hi,<br>
><br>
> i found something im my log: (libvirtd.log)<br>
><br>
> i dont know about this. but it may be helpful for you. So i am<br>
> forwarding this.<br>
><br>
> 2013-09-26 11:43:58.507+0000: 10718: error : virDriverLoadModule:78 :<br>
> failed to load module<br>
> /usr/local/lib/libvirt/connection-driver/libvirt_driver_libxl.so<br>
> /usr/lib/libxenlight.so.2.0: undefined symbol: xs_check_watch<br>
<br>
</div>Seems your libxenlight.so is not linked properly.  xs_check_watch is<br>
provided by libxenstore, which should be linked with libxenlight<br>
<br>
# ldd /usr/lib64/libxenlight.so.4.3 | grep libxenstore<br>
libxenstore.so.3.0 => /usr/lib64/libxenstore.so.3.0 (0x00007faa807a5000)<br>
<br>
As Dario mentioned elsewhere in this thread, you need to tell how you<br>
"installed" Xen 4.2.1 from source.  Perhaps it is not<br>
configured/built/installed properly.<br>
<br>
Regards,<br>
Jim<br>
<div><div class="h5"><br>
> 2013-09-26 11:43:58.790+0000: 10729: error : virCommandWait:2348 :<br>
> internal error: Child process (LC_ALL=C<br>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin<br>
> HOME=/root USER=root LOGNAME=root /usr/bin/kvm -no-user-config -device<br>
> '?' -device 'pci-assign,?' -device 'virtio-blk-pci,?' -device<br>
> 'virtio-net-pci,?' -device 'scsi-disk,?' -device 'PIIX4_PM,?' -device<br>
> 'usb-redir,?' -device 'ide-drive,?' -device 'usb-host,?' -device<br>
> 'scsi-generic,?') unexpected exit status 1: Could not access KVM<br>
> kernel module: No such file or directory<br>
> failed to initialize KVM: No such file or directory<br>
> No accelerator found!<br>
><br>
> 2013-09-26 11:43:58.838+0000: 10729: error : virCommandWait:2348 :<br>
> internal error: Child process (LC_ALL=C<br>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin<br>
> HOME=/root USER=root LOGNAME=root /usr/bin/kvm -no-user-config -device<br>
> '?' -device 'pci-assign,?' -device 'virtio-blk-pci,?' -device<br>
> 'virtio-net-pci,?' -device 'scsi-disk,?' -device 'PIIX4_PM,?' -device<br>
> 'usb-redir,?' -device 'ide-drive,?' -device 'usb-host,?' -device<br>
> 'scsi-generic,?') unexpected exit status 1: Could not access KVM<br>
> kernel module: No such file or directory<br>
> failed to initialize KVM: No such file or directory<br>
> No accelerator found!<br>
><br>
> 2013-09-26 12:20:14.030+0000: 10721: error : xenHypervisorDoV2Sys:1011<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-09-26 12:20:14.030+0000: 10721: error : xenHypervisorDoV2Sys:1011<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-09-26 12:20:14.030+0000: 10721: error : xenHypervisorDoV2Sys:1011<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-09-26 12:20:14.030+0000: 10721: error : xenHypervisorDoV2Sys:1011<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-09-26 12:20:14.030+0000: 10721: error : xenHypervisorDoV2Sys:1011<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
> 2013-09-26 12:20:14.030+0000: 10721: error : xenHypervisorDoV2Sys:1011<br>
> : Unable to issue hypervisor ioctl 3166208: Permission denied<br>
><br>
> *********<br>
> suggest me some solutions.<br>
><br>
> Regards,<br>
> cooldharma06<br>
><br>
><br>
><br>
><br>
> On Mon, Sep 30, 2013 at 6:36 PM, cooldharma06 <<a href="mailto:cooldharma06@gmail.com">cooldharma06@gmail.com</a><br>
</div></div><div class="im">> <mailto:<a href="mailto:cooldharma06@gmail.com">cooldharma06@gmail.com</a>>> wrote:<br>
><br>
>     hi,<br>
><br>
>     i am using debian flavor called BOSS.<br>
><br>
</div>>     *uname -a*<br>
<div class="im">>     Linux boss 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux<br>
><br>
>     i installed XEN-4.2.1 from the source.<br>
><br>
</div>>     *virsh # version*<br>
<div class="im">>     error: failed to connect to the hypervisor<br>
>     error: no valid connection<br>
>     error: Failed to connect socket to<br>
>     '/usr/local/var/run/libvirt/libvirt-sock': No such file or directory<br>
</div>>     *<br>
>     *<br>
>     *root@boss[src]#libvirtd -v*<br>
<div class="im">>     2013-09-30 13:05:36.836+0000: 8199: info : libvirt version: 1.1.2<br>
>     2013-09-30 13:05:36.836+0000: 8199: error : libxlCapsInitHost:86 :<br>
>     internal error: Failed to get node physical info from libxenlight<br>
>     2013-09-30 13:05:36.836+0000: 8199: error :<br>
>     libxlStateInitialize:1362 : cannot create capabilities for libxenlight<br>
>     2013-09-30 13:05:36.836+0000: 8199: error : virStateInitialize:840<br>
>     : Initialization of LIBXL state driver failed: internal error:<br>
>     Failed to get node physical info from libxenlight<br>
>     2013-09-30 13:05:36.836+0000: 8199: error : daemonRunStateInit:909<br>
>     : Driver state initialization failed<br>
><br>
><br>
</div>>     *root@boss[src]#libvirtd --version*<br>
<div class="im HOEnZb">>     /opt/libvirt-1.1.2/daemon/.libs/lt-libvirtd (libvirt) 1.1.2<br>
><br>
>     these are the things which is in my system.<br>
><br>
>     Regards,<br>
>     cooldharma06.<br>
><br>
><br>
><br>
>     On Mon, Sep 30, 2013 at 4:23 PM, Dario Faggioli<br>
</div><div class="HOEnZb"><div class="h5">>     <<a href="mailto:dario.faggioli@citrix.com">dario.faggioli@citrix.com</a> <mailto:<a href="mailto:dario.faggioli@citrix.com">dario.faggioli@citrix.com</a>>> wrote:<br>

><br>
>         On lun, 2013-09-30 at 11:27 +0530, cooldharma06 wrote:<br>
>         > hi,<br>
>         ><br>
>         Hi,<br>
><br>
>         > thanks for your response.<br>
>         ><br>
>         ><br>
>         > i cleaned that above one and installed in this following steps:<br>
>         ><br>
>         ><br>
>         > * sudo apt-get install gcc make pkg-config libxml2-dev<br>
>         libgnutils-dev<br>
>         > libdevmapper-dev libcurl4-gnutls-dev python-dev libpciaccess-dev<br>
>         > libxen-dev libnl-dev<br>
>         ><br>
>         Oh, so you are on Debian/Ubuntu... Which version (so that I<br>
>         can try to<br>
>         replicate your configuration) ?<br>
><br>
>         > * ./configure = --prefix=/usr --localstatedir=/var<br>
>         --sysconfdir=/etc<br>
>         > --with-xen=yes --with-libxl=yes<br>
>         ><br>
>         Mmm... ok, that's the libvirt part. How did you install Xen?<br>
>         I'm sure I<br>
>         asked that already, but I can't remember whether or no you<br>
>         answered (if<br>
>         yes, sorry).<br>
><br>
>         Last time I tired to compile libvirt with libxl=yes on a<br>
>         Debian system<br>
>         it was failing because of some issues with the Xen Debian<br>
>         packages (or<br>
>         so I recall), although that was with Xen 4.3.0.<br>
><br>
>         So, did you also build Xen yourself or you apt-get installed it?<br>
><br>
>         > root@boss[daemon]#xl info -n<br>
>         > host                   : boss<br>
>         > release                : 3.2.0-4-amd64<br>
>         > version                : #1 SMP Debian 3.2.41-2<br>
>         > machine                : x86_64<br>
>         > nr_cpus                : 8<br>
>         > max_cpu_id             : 7<br>
>         > nr_nodes               : 1<br>
>         > cores_per_socket       : 4<br>
>         > threads_per_core       : 2<br>
>         > cpu_mhz                : 3392<br>
>         > hw_caps                :<br>
>         ><br>
>         bfebfbff:28100800:00000000:00007f40:77bae3ff:00000000:00000001:00000281<br>
>         > virt_caps              : hvm<br>
>         > total_memory           : 3970<br>
>         > free_memory            : 442<br>
>         > sharing_freed_memory   : 0<br>
>         > sharing_used_memory    : 0<br>
>         > free_cpus              : 0<br>
>         > cpu_topology           :<br>
>         > cpu:    core    socket     node<br>
>         >   0:       0        0        0<br>
>         >   1:       0        0        0<br>
>         >   2:       1        0        0<br>
>         >   3:       1        0        0<br>
>         >   4:       2        0        0<br>
>         >   5:       2        0        0<br>
>         >   6:       3        0        0<br>
>         >   7:       3        0        0<br>
>         > numa_info              :<br>
>         > node:    memsize    memfree    distances<br>
>         >    0:      4590        442      10<br>
>         > xen_major              : 4<br>
>         > xen_minor              : 2<br>
>         > xen_extra              : .1<br>
>         ><br>
>         Mmm... I have to admit that the most of the testing I did when<br>
>         working<br>
>         on the patch for libvirt that introduced the call to<br>
>         libxl_get_physinfo() that is failing, happened on Xen 4.3, but<br>
>         I'm sure<br>
>         I tested it with 4.2 a couple of times, and I don't see why it<br>
>         wouldn't<br>
>         work there...<br>
><br>
>         If you tell me the precise version of the distro you're using<br>
>         I'll see<br>
>         if I can give it a try.<br>
><br>
>         Regards,<br>
>         Dario<br>
><br>
>         --<br>
>         <<This happens because I choose it to happen!>> (Raistlin Majere)<br>
>         -----------------------------------------------------------------<br>
>         Dario Faggioli, Ph.D, <a href="http://about.me/dario.faggioli" target="_blank">http://about.me/dario.faggioli</a><br>
>         Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)<br>
><br>
><br>
><br>
</div></div></blockquote></div><br></div>