<DIV>Hi,</DIV>
<DIV> I was finally able to connect to the xenapi hypervisor.  However, once I connect to virsh and give a 'quit' command I get  "* glibc detected *** virsh: double free or corruption (fasttop):". Please find below the actual memory dump.</DIV>
<DIV> </DIV>
<DIV><STRONG><EM>Note:</EM></STRONG> I have disabled the SSL certificate verification in xenapi_driver.c by setting curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0) & curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0).</DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><FONT color=#0000ff>[root@sharmila libvirt-0.9.2]# virsh -c "xenapi://localhost"</FONT></DIV>
<DIV><FONT color=#0000ff>Enter username for localhost: root</FONT></DIV>
<DIV><FONT color=#0000ff>Enter root's password for localhost: </FONT></DIV>
<DIV><FONT color=#0000ff>Welcome to virsh, the virtualization interactive terminal.</FONT></DIV>
<DIV><FONT color=#0000ff>  </FONT></DIV>
<DIV><FONT color=#0000ff>Type:  'help' for help with commands</FONT></DIV>
<DIV><FONT color=#0000ff>       'quit' to quit</FONT></DIV>
<DIV><FONT color=#0000ff>  </FONT></DIV>
<DIV><FONT color=#0000ff>virsh # list --all</FONT></DIV>
<DIV><FONT color=#0000ff> Id Name                 State</FONT></DIV>
<DIV><FONT color=#0000ff>----------------------------------</FONT></DIV>
<DIV><FONT color=#0000ff>  0 Control domain on host: sharmila running</FONT></DIV>
<DIV><FONT color=#0000ff>  - Control domain on host: sharmila running</FONT></DIV>
<DIV><FONT color=#0000ff>  - XenServer SDK 5.6.100-47101p import shut off</FONT></DIV>
<DIV><FONT color=#0000ff>  </FONT></DIV>
<DIV><FONT color=#0000ff>virsh # quit</FONT></DIV>
<DIV><FONT color=#0000ff>  </FONT></DIV>
<DIV><FONT color=#0000ff>*** glibc detected *** virsh: double free or corruption (fasttop): 0x09fcc370 ***</FONT></DIV>
<DIV><FONT color=#0000ff>======= Backtrace: =========</FONT></DIV>
<DIV><FONT color=#0000ff>/lib/libc.so.6[0xb6fc56c5]</FONT></DIV>
<DIV><FONT color=#0000ff>/lib/libc.so.6(cfree+0x59)[0xb6fc5b09]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/libvirt.so.0(virFree+0x42)[0xb760d712]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/libvirt.so.0[0xb777031d]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/libvirt.so.0[0xb776ec10]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/libvirt.so.0[0xb7676017]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/libvirt.so.0(virUnrefConnect+0x128)[0xb7677888]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/libvirt.so.0(virConnectClose+0xda)[0xb769ad4a]</FONT></DIV>
<DIV><FONT color=#0000ff>virsh[0x8065c73]</FONT></DIV>
<DIV><FONT color=#0000ff>virsh[0x806672f]</FONT></DIV>
<DIV><FONT color=#0000ff>/lib/libc.so.6(__libc_start_main+0xdc)[0xb6f71e9c]</FONT></DIV>
<DIV><FONT color=#0000ff>virsh[0x804e0f1]</FONT></DIV>
<DIV><FONT color=#0000ff>======= Memory map: ========</FONT></DIV>
<DIV><FONT color=#0000ff>08048000-08079000 r-xp 00000000 08:01 378273     /usr/local/bin/virsh</FONT></DIV>
<DIV><FONT color=#0000ff>08079000-0807a000 rw-p 00031000 08:01 378273     /usr/local/bin/virsh</FONT></DIV>
<DIV><FONT color=#0000ff>09fa1000-0a060000 rw-p 00000000 00:00 0          [heap]</FONT></DIV>
<DIV><FONT color=#0000ff>b6b61000-b6b6c000 r-xp 00000000 08:01 182153     /lib/libgcc_s-4.1.2-20080825.so.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6b6c000-b6b6d000 rw-p 0000a000 08:01 182153     /lib/libgcc_s-4.1.2-20080825.so.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6b6d000-b6b77000 r-xp 00000000 08:01 181027     /lib/libnss_files-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6b77000-b6b78000 r--p 00009000 08:01 181027     /lib/libnss_files-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6b78000-b6b79000 rw-p 0000a000 08:01 181027     /lib/libnss_files-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6b81000-b6b83000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b6b83000-b6d83000 r--p 00000000 08:01 447132     /usr/lib/locale/locale-archive</FONT></DIV>
<DIV><FONT color=#0000ff>b6d83000-b6d86000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b6d86000-b6d88000 r-xp 00000000 08:01 180820     /lib/libkeyutils-1.2.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6d88000-b6d89000 rw-p 00001000 08:01 180820     /lib/libkeyutils-1.2.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6d89000-b6d91000 r-xp 00000000 08:01 377484     /usr/lib/libkrb5support.so.0.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6d91000-b6d92000 rw-p 00007000 08:01 377484     /usr/lib/libkrb5support.so.0.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6d92000-b6d99000 r-xp 00000000 08:01 182148     /lib/librt-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6d99000-b6d9a000 r--p 00007000 08:01 182148     /lib/librt-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6d9a000-b6d9b000 rw-p 00008000 08:01 182148     /lib/librt-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6d9b000-b6dab000 r-xp 00000000 08:01 180816     /lib/libresolv-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6dab000-b6dac000 r--p 0000f000 08:01 180816     /lib/libresolv-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6dac000-b6dad000 rw-p 00010000 08:01 180816     /lib/libresolv-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b6dad000-b6daf000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b6daf000-b6ddf000 r-xp 00000000 08:01 378111     /usr/lib/libidn.so.11.5.19</FONT></DIV>
<DIV><FONT color=#0000ff>b6ddf000-b6de0000 rw-p 0002f000 08:01 378111     /usr/lib/libidn.so.11.5.19</FONT></DIV>
<DIV><FONT color=#0000ff>b6de0000-b6de1000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b6de1000-b6de3000 r-xp 00000000 08:01 180823     /lib/libcom_err.so.2.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6de3000-b6de4000 rw-p 00001000 08:01 180823     /lib/libcom_err.so.2.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6de4000-b6e0a000 r-xp 00000000 08:01 378185     /usr/lib/libk5crypto.so.3.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6e0a000-b6e0b000 rw-p 00025000 08:01 378185     /usr/lib/libk5crypto.so.3.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6e0b000-b6e9f000 r-xp 00000000 08:01 378198     /usr/lib/libkrb5.so.3.3</FONT></DIV>
<DIV><FONT color=#0000ff>b6e9f000-b6ea2000 rw-p 00093000 08:01 378198     /usr/lib/libkrb5.so.3.3</FONT></DIV>
<DIV><FONT color=#0000ff>b6ea2000-b6ece000 r-xp 00000000 08:01 378160     /usr/lib/libgssapi_krb5.so.2.2</FONT></DIV>
<DIV><FONT color=#0000ff>b6ece000-b6ecf000 rw-p 0002c000 08:01 378160     /usr/lib/libgssapi_krb5.so.2.2</FONT></DIV>
<DIV><FONT color=#0000ff>b6ecf000-b6ed2000 r-xp 00000000 08:01 377492     /usr/lib/libgpg-error.so.0.3.0</FONT></DIV>
<DIV><FONT color=#0000ff>b6ed2000-b6ed3000 rw-p 00002000 08:01 377492     /usr/lib/libgpg-error.so.0.3.0</FONT></DIV>
<DIV><FONT color=#0000ff>b6ed3000-b6ed4000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b6ed4000-b6f0f000 r-xp 00000000 08:01 182149     /lib/libsepol.so.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6f0f000-b6f10000 rw-p 0003b000 08:01 182149     /lib/libsepol.so.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6f10000-b6f1a000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b6f1a000-b6f5a000 r-xp 00000000 08:01 378242     /usr/local/lib/libcurl.so.4.1.0</FONT></DIV>
<DIV><FONT color=#0000ff>b6f5a000-b6f5b000 rw-p 00040000 08:01 378242     /usr/local/lib/libcurl.so.4.1.0</FONT></DIV>
<DIV><FONT color=#0000ff>b6f5b000-b6f5c000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b6f5c000-b70af000 r-xp 00000000 08:01 180994     /lib/libc-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70af000-b70b1000 r--p 00153000 08:01 180994     /lib/libc-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70b1000-b70b2000 rw-p 00155000 08:01 180994     /lib/libc-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70b2000-b70b5000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b70b5000-b70b8000 r-xp 00000000 08:01 180979     /lib/libdl-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70b8000-b70b9000 r--p 00002000 08:01 180979     /lib/libdl-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70b9000-b70ba000 rw-p 00003000 08:01 180979     /lib/libdl-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70ba000-b70e1000 r-xp 00000000 08:01 182017     /lib/libm-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70e1000-b70e2000 r--p 00026000 08:01 182017     /lib/libm-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70e2000-b70e3000 rw-p 00027000 08:01 182017     /lib/libm-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b70e3000-b70e4000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b70e4000-b70f6000 r-xp 00000000 08:01 378165     /usr/lib/libz.so.1.2.3</FONT></DIV>
<DIV><FONT color=#0000ff>b70f6000-b70f7000 rw-p 00011000 08:01 378165     /usr/lib/libz.so.1.2.3</FONT></DIV>
<DIV><FONT color=#0000ff>b70f7000-b7223000 r-xp 00000000 08:01 378174     /usr/lib/libxml2.so.2.6.26</FONT></DIV>
<DIV><FONT color=#0000ff>b7223000-b7228000 rw-p 0012c000 08:01 378174     /usr/lib/libxml2.so.2.6.26</FONT></DIV>
<DIV><FONT color=#0000ff>b7228000-b7229000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b7229000-b723e000 r-xp 00000000 08:01 181033     /lib/libpthread-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b723e000-b723f000 r--p 00015000 08:01 181033     /lib/libpthread-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b723f000-b7240000 rw-p 00016000 08:01 181033     /lib/libpthread-2.5.so</FONT></DIV>
<DIV><FONT color=#0000ff>b7240000-b7242000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b7242000-b7258000 r-xp 00000000 08:01 181005     /lib/libselinux.so.1</FONT></DIV>
<DIV><FONT color=#0000ff>b7258000-b725a000 rw-p 00015000 08:01 181005     /lib/libselinux.so.1</FONT></DIV>
<DIV><FONT color=#0000ff>b725a000-b7389000 r-xp 00000000 08:01 182129     /lib/libcrypto.so.0.9.8e</FONT></DIV>
<DIV><FONT color=#0000ff>b7389000-b739c000 rw-p 0012e000 08:01 182129     /lib/libcrypto.so.0.9.8e</FONT></DIV>
<DIV><FONT color=#0000ff>b739c000-b73a0000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b73a0000-b73e4000 r-xp 00000000 08:01 180822     /lib/libssl.so.0.9.8e</FONT></DIV>
<DIV><FONT color=#0000ff>b73e4000-b73e8000 rw-p 00043000 08:01 180822     /lib/libssl.so.0.9.8e</FONT></DIV>
<DIV><FONT color=#0000ff>b73e8000-b7419000 r-xp 00000000 08:01 383239     /usr/lib/libcurl.so.3.0.0</FONT></DIV>
<DIV><FONT color=#0000ff>b7419000-b741a000 rw-p 00031000 08:01 383239     /usr/lib/libcurl.so.3.0.0</FONT></DIV>
<DIV><FONT color=#0000ff>b741a000-b741b000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b741b000-b747b000 r-xp 00000000 08:01 378267     /usr/lib/libxenserver.so.1.3</FONT></DIV>
<DIV><FONT color=#0000ff>b747b000-b747f000 rw-p 00060000 08:01 378267     /usr/lib/libxenserver.so.1.3</FONT></DIV>
<DIV><FONT color=#0000ff>b747f000-b74a3000 r-xp 00000000 08:01 383129     /usr/lib/libssh2.so.1.0.1</FONT></DIV>
<DIV><FONT color=#0000ff>b74a3000-b74a4000 rw-p 00024000 08:01 383129     /usr/lib/libssh2.so.1.0.1</FONT></DIV>
<DIV><FONT color=#0000ff>b74a4000-b74a8000 r-xp 00000000 08:01 376977     /usr/lib/libxenstore.so.3.0.0</FONT></DIV>
<DIV><FONT color=#0000ff>b74a8000-b74a9000 rw-p 00003000 08:01 376977     /usr/lib/libxenstore.so.3.0.0</FONT></DIV>
<DIV><FONT color=#0000ff>b74a9000-b74ac000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b74ac000-b752a000 r-xp 00000000 08:01 378181     /usr/lib/libgcrypt.so.11.5.2</FONT></DIV>
<DIV><FONT color=#0000ff>b752a000-b752d000 rw-p 0007d000 08:01 378181     /usr/lib/libgcrypt.so.11.5.2</FONT></DIV>
<DIV><FONT color=#0000ff>b752d000-b75a6000 r-xp 00000000 08:01 380857     /usr/lib/libgnutls.so.13.0.6</FONT></DIV>
<DIV><FONT color=#0000ff>b75a6000-b75ac000 rw-p 00078000 08:01 380857     /usr/lib/libgnutls.so.13.0.6</FONT></DIV>
<DIV><FONT color=#0000ff>b75ac000-b75ad000 rw-p 00000000 00:00 0 </FONT></DIV>
<DIV><FONT color=#0000ff>b75ad000-b75cc000 r-xp 00000000 08:01 180978     /lib/libdevmapper.so.1.02</FONT></DIV>
<DIV><FONT color=#0000ff>b75cc000-b75ce000 rw-p 0001e000 08:01 180978     /lib/libdevmapper.so.1.02</FONT></DIV>
<DIV><FONT color=#0000ff>b75cf000-b75d6000 r--s 00000000 08:01 412913     /usr/lib/gconv/gconv-modules.cache</FONT></DIV>
<DIV><FONT color=#0000ff>b75d6000-b75d7000 r-xp 00000000 08:01 377141     /usr/local/lib/libvirt-qemu.so.0.9.2</FONT></DIV>
<DIV><FONT color=#0000ff>b75d7000-b75d8000 rw-p 00000000 08:01 377141     /usr/local/lib/libvirt-qemu.so.0.9.2Aborted</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE>
<DIV> Moreover, Iam not able to start any VMs uisng xencenter after i have started using virsh. It says,  <STRONG>Error: Starting VM 'XenServer SDK 5.6.100-47101p import' - Internal error: another frontend device is already connected to this domain (frontend (domid=0 | kind=vbd | devid=51712); backend (domid=0 | kind=vbd | devid=51712)).</STRONG> Even a reboot of the machine didnt help.</DIV>
<DIV> </DIV>
<DIV>Any pointers on the above 2 issues would be of great help.</DIV>
<DIV> </DIV>
<DIV>Thanks in Advance!</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Sharmila</DIV>
<DIV> </DIV>
<DIV>From: "G Naresh Kumar"naresh.gadepalli@gmail.com</DIV>
<DIV>Sent: Sat, 16 Jul 2011 16:55:16 +0530</DIV>
<DIV>To: Matthias Bolte matthias.bolte@googlemail.com</DIV>
<DIV>Cc: libvirt-users@redhat.com</DIV>
<DIV>Subject: Re: [libvirt-users] Is libvirt supported on Citrix Xenserver?</DIV>
<DIV> </DIV>
<DIV>Hi Matthias,</DIV>
<DIV>
<DIV>></DIV></DIV>
<DIV>
<P cl-ass="MsoNormal"></P>
<P cl-ass="MsoNormal">Sorry for the <a href='http://confusion.It'>confusion.It</a> was an edited one & hence thetypo. Below is the </P>
<P cl-ass="MsoNormal">actual output:</P>
<P cl-ass="MsoNormal"></P>
<P cl-ass="MsoNormal"># virsh -c xenapi://<myip></P>
<P cl-ass="MsoNormal">Enter username for <myip>: root</P>
<P cl-ass="MsoNormal">Enter root's password for <myip>: </P>
<P cl-ass="MsoNormal">error: authentication failed: (null)</P>
<P cl-ass="MsoNormal"></P>
<P cl-ass="MsoNormal">I was not able to get anything in the Xen logs. Somehowfigured out to print </P>
<P cl-ass="MsoNormal">the Xen error using the patch given at the link <a href='http://osdir.com/ml/libvir-'>http://osdir.com/ml/libvir-</a></P>
<P cl-ass="MsoNormal">list/2011-06/msg00298.html. It prints"TRANSPORT_FAULT". Any pointers to this </P>
<P cl-ass="MsoNormal">error would be much appreciated. Iam also trying to debugthis issue.</P>
<P cl-ass="MsoNormal"></P>
<P cl-ass="MsoNormal">As per your suggestion,</P>
<P cl-ass="MsoNormal">I had used make rpm. But it requires xen-devel pacakge,which I was </P>
<P cl-ass="MsoNormal">not able to get for Xen 3.4.2. Is there any way where I canuse the source </P>
<P cl-ass="MsoNormal">package and build & install the library without using'make rpm' ? </P>
<P cl-ass="MsoNormal"></P>
<P cl-ass="MsoNormal">Thanks for all the help.</P>
<P cl-ass="MsoNormal">
<DIV>></DIV>
<P cl-ass="MsoNormal">Regards</P>
<P cl-ass="MsoNormal">Naresh</P>
<DIV>> </DIV>
<DIV cl-ass="gmail_quote">On Thu, Jul 14, 2011 at 7:07 PM, Matthias Bolte <SPAN dir=ltr><<A onclick="top.ajaxMail.ext.switchTo('@Compose','mode=mail_to_individual&email=matthias.bolte@googlemail.com');" href="javascript:void(0);">matthias.bolte@googlemail.com</A>></SPAN> wrote: 
<DIV>> </DIV>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" cl-ass="gmail_quote">2011/7/14 G Naresh Kumar <<A onclick="top.ajaxMail.ext.switchTo('@Compose','mode=mail_to_individual&email=naresh.gadepalli@gmail.com');" href="javascript:void(0);">naresh.gadepalli@gmail.com</A>>: 
<DIV>>> Hi Maththias,</DIV>
<DIV>> </DIV>
<DIV cl-ass="im">> Thanks for the help. I finally was able to compile/install libvirt on 
<DIV>>> xenserver.</DIV>
<DIV>>></DIV>
<DIV>>> I tried compiling the libvirt 0.9.2 with xen api support. Was able to</DIV>
<DIV>>> install it successfully. When I tried giving the virsh command, I got an</DIV>
<DIV>>> â€˜authentication failed’ error as shown below.</DIV>
<DIV>>></DIV>
<DIV>>> # virsh -c xenapi://<my local ip></DIV>
<DIV>>> Enter username for <mylocalip>: root</DIV>
<DIV>></DIV>
<DIV>></DIV></DIV>Here you entered root 
<DIV>> </DIV>
<DIV cl-ass="im">
<DIV>>> Enter intel123's password for <my local ip>:</DIV>
<DIV>></DIV>
<DIV>></DIV></DIV>but here it asks for intel123's, that's unexpected. Did you edit this 
<DIV>>one before mailing it, or is there really this mismatch?</DIV>
<DIV>></DIV>
<DIV>>> error: authentication failed: (null)</DIV>
<DIV>></DIV>
<DIV>>Outputting (null) here is actually a bug. The only way this can happen</DIV>
<DIV>>is when the login attempt fails but the XenServer doesn't provide an</DIV>
<DIV>>error message. Maybe have a look at the XenServer logs to see if it</DIV>
<DIV>>says something about a failed login attempt.</DIV>
<DIV>> </DIV>
<DIV cl-ass="im">
<DIV>>> I also tried connecting to the local machine as below,</DIV>
<DIV>>></DIV>
<DIV>>> virsh -c "xenapi:///"</DIV>
<DIV>>> error: authentication failed: Server name not in URI</DIV>
<DIV>>> error: failed to connect to the hypervisor</DIV>
<DIV>></DIV>
<DIV>></DIV></DIV>The XenAPI driver expects a server name. xenapi:/// _could_ be treated 
<DIV>>as xenapi://localhost, but it's not implemented that way.</DIV>
<DIV>> </DIV>
<DIV cl-ass="im">
<DIV>>> Also I am trying to install ruby-libvirt on xenserver, which looks like</DIV>
<DIV>>> requires libvirt-devel package to be installed. How do I build it from the</DIV>
<DIV>>> libvirt 0.9.2 source package.</DIV>
<DIV>></DIV>
<DIV>></DIV></DIV>Running 'make rpm' should build an libvirt-devel RPM package for you. 
<DIV>> </DIV>
<DIV>
<DIV></DIV>
<DIV cl-ass="h5">
<DIV>>> Thanks,</DIV>
<DIV>>></DIV>
<DIV>>> Naresh</DIV>
<DIV>>></DIV>
<DIV>>> On Wed, Jun 15, 2011 at 8:19 PM, Matthias Bolte</DIV>
<DIV>>> <<A onclick="top.ajaxMail.ext.switchTo('@Compose','mode=mail_to_individual&email=matthias.bolte@googlemail.com');" href="javascript:void(0);">matthias.bolte@googlemail.com</A>> wrote:</DIV>
<DIV>>>></DIV>
<DIV>>>> 2011/6/15 G Naresh Kumar <<A onclick="top.ajaxMail.ext.switchTo('@Compose','mode=mail_to_individual&email=naresh.gadepalli@gmail.com');" href="javascript:void(0);">naresh.gadepalli@gmail.com</A>>:</DIV>
<DIV>>>> > Hi Maththias,</DIV>
<DIV>>>> ></DIV>
<DIV>>>> > Thanks a lot for your response!.</DIV>
<DIV>>>> ></DIV>
<DIV>>>> > Is there a specific version of libvirt from which xenserver support is</DIV>
<DIV>>>> > added? I am getting the below error</DIV>
<DIV>>>> ></DIV>
<DIV>>>> > "error: invalid argument in libvirt was built without the 'xenapi'</DIV>
<DIV>>>> > driver"</DIV>
<DIV>>>></DIV>
<DIV>>>> The means that your libvirt version is new enough and contains the</DIV>
<DIV>>>> XenAPI driver but that it was disabled on configure time, probably</DIV>
<DIV>>>> because the build server didn't have libxenserver installed and</DIV>
<DIV>>>> libvirt's configure script automatically disabled the driver because</DIV>
<DIV>>>> of a missing dependency.</DIV>
<DIV>>>></DIV>
<DIV>>>> > I have installed libvirt from citrix yum repo.</DIV>
<DIV>>>></DIV>
<DIV>>>> Then Citrix build libvirt without XenAPI support. As a long term</DIV>
<DIV>>>> solution you could report to whom ever is responsible for that repo</DIV>
<DIV>>>> and request to enabled XenAPI support in that libvirt package. As a</DIV>
<DIV>>>> short term solution you could build libvirt from source yourself and</DIV>
<DIV>>>> make sure to get the XenAPI driver enabled.</DIV>
<DIV>>>></DIV>
<DIV>>>> > I am using Xenserver 5.5 with libvirt 0.8.2 and it does not seem to be</DIV>
<DIV>>>> > working.</DIV>
<DIV>>>></DIV>
<DIV>>>> According to <a href='http://libvirt.org/hvsupport.html'>http://libvirt.org/hvsupport.html</a> and the error message</DIV>
<DIV>>>> 0.8.2 is new enough.</DIV>
<DIV>>>></DIV>
<DIV>>>> Matthias</DIV>
<DIV>>>></DIV>
<DIV>>>> > Thanks,</DIV>
<DIV>>>> ></DIV>
<DIV>>>> > Naresh</DIV>
<DIV>>>> ></DIV>
<DIV>>>> > On Jun 15, 2011 7:03 PM, "Matthias Bolte"</DIV>
<DIV>>>> > <<A onclick="top.ajaxMail.ext.switchTo('@Compose','mode=mail_to_individual&email=matthias.bolte@googlemail.com');" href="javascript:void(0);">matthias.bolte@googlemail.com</A>></DIV>
<DIV>>>> > wrote:</DIV>
<DIV>>>> >> 2011/6/15 G Naresh Kumar <<A onclick="top.ajaxMail.ext.switchTo('@Compose','mode=mail_to_individual&email=naresh.gadepalli@gmail.com');" href="javascript:void(0);">naresh.gadepalli@gmail.com</A>>:</DIV>
<DIV>>>> >>> Hi,</DIV>
<DIV>>>> >>> Is libvirt supported on Citrix Xenserver. I have been searching for</DIV>
<DIV>>>> >>> the</DIV>
<DIV>>>> >>> same</DIV>
<DIV>>>> >>> with little/no luck.</DIV>
<DIV>>>> >>> If supported, can you point to some links/documents which can help me</DIV>
<DIV>>>> >>> try</DIV>
<DIV>>>> >>> out the same.</DIV>
<DIV>>>> >>> Thanks,</DIV>
<DIV>>>> >>> Naresh</DIV>
<DIV>>>> >></DIV>
<DIV>>>> >> libvirt can use XenAPI via libxenserver [1]. That should allow you to</DIV>
<DIV>>>> >> use libvirt with a Citrix XenServer. You can use virsh like this</DIV>
<DIV>>>> >> assuming you have a libxenserver enabled libvirt:</DIV>
<DIV>>>> >></DIV>
<DIV>>>> >> virsh -c xenapi://my-xen-server</DIV>
<DIV>>>> >></DIV>
<DIV>>>> >> But it's true, there is no documentation about this on the libvirt</DIV>
<DIV>>>> >> website</DIV>
<DIV>>>> >> yet.</DIV>
<DIV>>>> >></DIV>
<DIV>>>> >> [1] <a href='http://community.citrix.com/display/xs/Download+SDKs'>http://community.citrix.com/display/xs/Download+SDKs</a></DIV>
<DIV>>>> >></DIV>
<DIV>>>> >> --</DIV>
<DIV>>>> >> Matthias Bolte</DIV>
<DIV>>>> >> <a href='http://photron.blogspot.com'>http://photron.blogspot.com</a></DIV>
<DIV>>>> ></DIV>
<DIV>>> --</DIV>
<DIV>>> I was an atheist till I realized I am GOD</DIV>
<DIV>>></DIV>
<DIV>></DIV>
<DIV>></DIV></DIV></DIV>-- 
<DIV>> </DIV>
<DIV>
<DIV></DIV>
<DIV cl-ass="h5">Matthias Bolte 
<DIV>><a href='http://photron.blogspot.com'>http://photron.blogspot.com</a></DIV>
<DIV>></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV>></DIV>
<DIV clear="all"> </DIV>
<DIV>>-- </DIV>
<DIV>>I was an atheist till I realized I am GOD</DIV>
<DIV>></DIV></DIV>_______________________________________________ 
<DIV>>libvirt-users mailing list</DIV>
<DIV>>libvirt-users@redhat.com</DIV>
<DIV>>https://www.redhat.com/mailman/listinfo/libvirt-users </DIV>
<P></P><br><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A><br>Treat yourself at a restaurant, spa, resort and much more with <b><a href="http://track.rediff.com/click?url=___http://dealhojaye.rediff.com?sc_cid=mailsignature___&cmp=signature&lnk=rediffmailsignature&newservice=deals" target ="_new">Rediff Deal ho jaye!</a></b>