<DIV>Hi,</DIV>
<DIV> I was finally able to connect to the xenapi hypervisor using virsh of libvirt 0.9.2.  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/<a href='http://libc.so'><FONT color=#0055cc>libc.so</FONT></a>.6[0xb6fc56c5]</FONT></DIV>
<DIV><FONT color=#0000ff>/lib/<a href='http://libc.so'><FONT color=#0055cc>libc.so</FONT></a>.6(cfree+0x59)[0xb6fc5b09]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/<a href='http://libvirt.so'><FONT color=#0055cc>libvirt.so</FONT></a>.0(virFree+0x42)[0xb760d712]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/<a href='http://libvirt.so'><FONT color=#0055cc>libvirt.so</FONT></a>.0[0xb777031d]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/<a href='http://libvirt.so'><FONT color=#0055cc>libvirt.so</FONT></a>.0[0xb776ec10]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/<a href='http://libvirt.so'><FONT color=#0055cc>libvirt.so</FONT></a>.0[0xb7676017]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/<a href='http://libvirt.so'><FONT color=#0055cc>libvirt.so</FONT></a>.0(virUnrefConnect+0x128)[0xb7677888]</FONT></DIV>
<DIV><FONT color=#0000ff>/usr/local/lib/<a href='http://libvirt.so'><FONT color=#0055cc>libvirt.so</FONT></a>.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/<a href='http://libc.so'><FONT color=#0055cc>libc.so</FONT></a>.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-2008082<a href='http://5.so'><FONT color=#0055cc>5.so</FONT></a>.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6b6c000-b6b6d000 rw-p 0000a000 08:01 182153     /lib/libgcc_s-4.1.2-2008082<a href='http://5.so'><FONT color=#0055cc>5.so</FONT></a>.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/<a href='http://libkrb5support.so'><FONT color=#0055cc>libkrb5support.so</FONT></a>.0.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6d91000-b6d92000 rw-p 00007000 08:01 377484     /usr/lib/<a href='http://libkrb5support.so'><FONT color=#0055cc>libkrb5support.so</FONT></a>.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_<a href='http://err.so'><FONT color=#0055cc>err.so</FONT></a>.2.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6de3000-b6de4000 rw-p 00001000 08:01 180823     /lib/libcom_<a href='http://err.so'><FONT color=#0055cc>err.so</FONT></a>.2.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6de4000-b6e0a000 r-xp 00000000 08:01 378185     /usr/lib/<a href='http://libk5crypto.so'><FONT color=#0055cc>libk5crypto.so</FONT></a>.3.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6e0a000-b6e0b000 rw-p 00025000 08:01 378185     /usr/lib/<a href='http://libk5crypto.so'><FONT color=#0055cc>libk5crypto.so</FONT></a>.3.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6e0b000-b6e9f000 r-xp 00000000 08:01 378198     /usr/lib/libkrb<a href='http://5.so'><FONT color=#0055cc>5.so</FONT></a>.3.3</FONT></DIV>
<DIV><FONT color=#0000ff>b6e9f000-b6ea2000 rw-p 00093000 08:01 378198     /usr/lib/libkrb<a href='http://5.so'><FONT color=#0055cc>5.so</FONT></a>.3.3</FONT></DIV>
<DIV><FONT color=#0000ff>b6ea2000-b6ece000 r-xp 00000000 08:01 378160     /usr/lib/libgssapi_krb<a href='http://5.so'><FONT color=#0055cc>5.so</FONT></a>.2.2</FONT></DIV>
<DIV><FONT color=#0000ff>b6ece000-b6ecf000 rw-p 0002c000 08:01 378160     /usr/lib/libgssapi_krb<a href='http://5.so'><FONT color=#0055cc>5.so</FONT></a>.2.2</FONT></DIV>
<DIV><FONT color=#0000ff>b6ecf000-b6ed2000 r-xp 00000000 08:01 377492     /usr/lib/<a href='http://libgpg-error.so'><FONT color=#0055cc>libgpg-error.so</FONT></a>.0.3.0</FONT></DIV>
<DIV><FONT color=#0000ff>b6ed2000-b6ed3000 rw-p 00002000 08:01 377492     /usr/lib/<a href='http://libgpg-error.so'><FONT color=#0055cc>libgpg-error.so</FONT></a>.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/<a href='http://libsepol.so'><FONT color=#0055cc>libsepol.so</FONT></a>.1</FONT></DIV>
<DIV><FONT color=#0000ff>b6f0f000-b6f10000 rw-p 0003b000 08:01 182149     /lib/<a href='http://libsepol.so'><FONT color=#0055cc>libsepol.so</FONT></a>.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/<a href='http://libcurl.so'><FONT color=#0055cc>libcurl.so</FONT></a>.4.1.0</FONT></DIV>
<DIV><FONT color=#0000ff>b6f5a000-b6f5b000 rw-p 00040000 08:01 378242     /usr/local/lib/<a href='http://libcurl.so'><FONT color=#0055cc>libcurl.so</FONT></a>.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/<a href='http://libz.so'><FONT color=#0055cc>libz.so</FONT></a>.1.2.3</FONT></DIV>
<DIV><FONT color=#0000ff>b70f6000-b70f7000 rw-p 00011000 08:01 378165     /usr/lib/<a href='http://libz.so'><FONT color=#0055cc>libz.so</FONT></a>.1.2.3</FONT></DIV>
<DIV><FONT color=#0000ff>b70f7000-b7223000 r-xp 00000000 08:01 378174     /usr/lib/libxml<a href='http://2.so'><FONT color=#0055cc>2.so</FONT></a>.2.6.26</FONT></DIV>
<DIV><FONT color=#0000ff>b7223000-b7228000 rw-p 0012c000 08:01 378174     /usr/lib/libxml<a href='http://2.so'><FONT color=#0055cc>2.so</FONT></a>.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/<a href='http://libselinux.so'><FONT color=#0055cc>libselinux.so</FONT></a>.1</FONT></DIV>
<DIV><FONT color=#0000ff>b7258000-b725a000 rw-p 00015000 08:01 181005     /lib/<a href='http://libselinux.so'><FONT color=#0055cc>libselinux.so</FONT></a>.1</FONT></DIV>
<DIV><FONT color=#0000ff>b725a000-b7389000 r-xp 00000000 08:01 182129     /lib/<a href='http://libcrypto.so'><FONT color=#0055cc>libcrypto.so</FONT></a>.0.9.8e</FONT></DIV>
<DIV><FONT color=#0000ff>b7389000-b739c000 rw-p 0012e000 08:01 182129     /lib/<a href='http://libcrypto.so'><FONT color=#0055cc>libcrypto.so</FONT></a>.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/<a href='http://libssl.so'><FONT color=#0055cc>libssl.so</FONT></a>.0.9.8e</FONT></DIV>
<DIV><FONT color=#0000ff>b73e4000-b73e8000 rw-p 00043000 08:01 180822     /lib/<a href='http://libssl.so'><FONT color=#0055cc>libssl.so</FONT></a>.0.9.8e</FONT></DIV>
<DIV><FONT color=#0000ff>b73e8000-b7419000 r-xp 00000000 08:01 383239     /usr/lib/<a href='http://libcurl.so'><FONT color=#0055cc>libcurl.so</FONT></a>.3.0.0</FONT></DIV>
<DIV><FONT color=#0000ff>b7419000-b741a000 rw-p 00031000 08:01 383239     /usr/lib/<a href='http://libcurl.so'><FONT color=#0055cc>libcurl.so</FONT></a>.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/<a href='http://libxenserver.so'><FONT color=#0055cc>libxenserver.so</FONT></a>.1.3</FONT></DIV>
<DIV><FONT color=#0000ff>b747b000-b747f000 rw-p 00060000 08:01 378267     /usr/lib/<a href='http://libxenserver.so'><FONT color=#0055cc>libxenserver.so</FONT></a>.1.3</FONT></DIV>
<DIV><FONT color=#0000ff>b747f000-b74a3000 r-xp 00000000 08:01 383129     /usr/lib/libssh<a href='http://2.so'><FONT color=#0055cc>2.so</FONT></a>.1.0.1</FONT></DIV>
<DIV><FONT color=#0000ff>b74a3000-b74a4000 rw-p 00024000 08:01 383129     /usr/lib/libssh<a href='http://2.so'><FONT color=#0055cc>2.so</FONT></a>.1.0.1</FONT></DIV>
<DIV><FONT color=#0000ff>b74a4000-b74a8000 r-xp 00000000 08:01 376977     /usr/lib/<a href='http://libxenstore.so'><FONT color=#0055cc>libxenstore.so</FONT></a>.3.0.0</FONT></DIV>
<DIV><FONT color=#0000ff>b74a8000-b74a9000 rw-p 00003000 08:01 376977     /usr/lib/<a href='http://libxenstore.so'><FONT color=#0055cc>libxenstore.so</FONT></a>.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/<a href='http://libdevmapper.so'><FONT color=#0055cc>libdevmapper.so</FONT></a>.1.02</FONT></DIV>
<DIV><FONT color=#0000ff>b75cc000-b75ce000 rw-p 0001e000 08:01 180978     /lib/<a href='http://libdevmapper.so'><FONT color=#0055cc>libdevmapper.so</FONT></a>.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/<a href='http://libvirt-qemu.so'><FONT color=#0055cc>libvirt-qemu.so</FONT></a>.0.9.2</FONT></DIV>
<DIV><FONT color=#0000ff>b75d7000-b75d8000 rw-p 00000000 08:01 377141     /usr/local/lib/<a href='http://libvirt-qemu.so'><FONT color=#0055cc>libvirt-qemu.so</FONT></a>.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><BR><!-- Message id:CAL5cDxVUYhN3R_uBh_9hoZ+rgecXds7UxUNeQ2_bbgHqE+vGBQ --><BR><BR>From: "G Naresh Kumar"naresh.gadepalli@gmail.com<BR>Sent: Sat, 16 Jul 2011 16:55:16 +0530<BR>To: Matthias Bolte matthias.bolte@googlemail.com<BR>Cc: libvirt-users@redhat.com<BR>Subject: Re: [libvirt-users] Is libvirt supported on Citrix Xenserver?<BR><BR>Hi Matthias, 
<DIV><BR>></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"><BR>></P>
<P cl-ass="MsoNormal">Regards</P>
<P cl-ass="MsoNormal">Naresh</P><BR>> 
<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:<BR>> 
<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>>:<BR>>> Hi Maththias,<BR>> 
<DIV cl-ass="im">> Thanks for the help. I finally was able to compile/install libvirt on<BR>>> xenserver.<BR>>><BR>>> I tried compiling the libvirt 0.9.2 with xen api support. Was able to<BR>>> install it successfully. When I tried giving the virsh command, I got an<BR>>> â€˜authentication failed’ error as shown below.<BR>>><BR>>> # virsh -c xenapi://<my local ip><BR>>> Enter username for <mylocalip>: root<BR>><BR>></DIV>Here you entered root<BR>> 
<DIV cl-ass="im"><BR>>> Enter intel123's password for <my local ip>:<BR>><BR>></DIV>but here it asks for intel123's, that's unexpected. Did you edit this<BR>>one before mailing it, or is there really this mismatch?<BR>><BR>>> error: authentication failed: (null)<BR>><BR>>Outputting (null) here is actually a bug. The only way this can happen<BR>>is when the login attempt fails but the XenServer doesn't provide an<BR>>error message. Maybe have a look at the XenServer logs to see if it<BR>>says something about a failed login attempt.<BR>> 
<DIV cl-ass="im"><BR>>> I also tried connecting to the local machine as below,<BR>>><BR>>> virsh -c "xenapi:///"<BR>>> error: authentication failed: Server name not in URI<BR>>> error: failed to connect to the hypervisor<BR>><BR>></DIV>The XenAPI driver expects a server name. xenapi:/// _could_ be treated<BR>>as xenapi://localhost, but it's not implemented that way.<BR>> 
<DIV cl-ass="im"><BR>>> Also I am trying to install ruby-libvirt on xenserver, which looks like<BR>>> requires libvirt-devel package to be installed. How do I build it from the<BR>>> libvirt 0.9.2 source package.<BR>><BR>></DIV>Running 'make rpm' should build an libvirt-devel RPM package for you.<BR>> 
<DIV>
<DIV></DIV>
<DIV cl-ass="h5"><BR>>> Thanks,<BR>>><BR>>> Naresh<BR>>><BR>>> On Wed, Jun 15, 2011 at 8:19 PM, Matthias Bolte<BR>>> <<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:<BR>>>><BR>>>> 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>>:<BR>>>> > Hi Maththias,<BR>>>> ><BR>>>> > Thanks a lot for your response!.<BR>>>> ><BR>>>> > Is there a specific version of libvirt from which xenserver support is<BR>>>> > added? I am getting the below error<BR>>>> ><BR>>>> > "error: invalid argument in libvirt was built without the 'xenapi'<BR>>>> > driver"<BR>>>><BR>>>> The means that your libvirt version is new enough and contains the<BR>>>> XenAPI driver but that it was disabled on configure time, probably<BR>>>> because the build server didn't have libxenserver installed and<BR>>>> libvirt's configure script automatically disabled the driver because<BR>>>> of a missing dependency.<BR>>>><BR>>>> > I have installed libvirt from citrix yum repo.<BR>>>><BR>>>> Then Citrix build libvirt without XenAPI support. As a long term<BR>>>> solution you could report to whom ever is responsible for that repo<BR>>>> and request to enabled XenAPI support in that libvirt package. As a<BR>>>> short term solution you could build libvirt from source yourself and<BR>>>> make sure to get the XenAPI driver enabled.<BR>>>><BR>>>> > I am using Xenserver 5.5 with libvirt 0.8.2 and it does not seem to be<BR>>>> > working.<BR>>>><BR>>>> According to <a href='http://libvirt.org/hvsupport.html'>http://libvirt.org/hvsupport.html</a> and the error message<BR>>>> 0.8.2 is new enough.<BR>>>><BR>>>> Matthias<BR>>>><BR>>>> > Thanks,<BR>>>> ><BR>>>> > Naresh<BR>>>> ><BR>>>> > On Jun 15, 2011 7:03 PM, "Matthias Bolte"<BR>>>> > <<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>><BR>>>> > wrote:<BR>>>> >> 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>>:<BR>>>> >>> Hi,<BR>>>> >>> Is libvirt supported on Citrix Xenserver. I have been searching for<BR>>>> >>> the<BR>>>> >>> same<BR>>>> >>> with little/no luck.<BR>>>> >>> If supported, can you point to some links/documents which can help me<BR>>>> >>> try<BR>>>> >>> out the same.<BR>>>> >>> Thanks,<BR>>>> >>> Naresh<BR>>>> >><BR>>>> >> libvirt can use XenAPI via libxenserver [1]. That should allow you to<BR>>>> >> use libvirt with a Citrix XenServer. You can use virsh like this<BR>>>> >> assuming you have a libxenserver enabled libvirt:<BR>>>> >><BR>>>> >> virsh -c xenapi://my-xen-server<BR>>>> >><BR>>>> >> But it's true, there is no documentation about this on the libvirt<BR>>>> >> website<BR>>>> >> yet.<BR>>>> >><BR>>>> >> [1] <a href='http://community.citrix.com/display/xs/Download+SDKs'>http://community.citrix.com/display/xs/Download+SDKs</a><BR>>>> >><BR>>>> >> --<BR>>>> >> Matthias Bolte<BR>>>> >> <a href='http://photron.blogspot.com'>http://photron.blogspot.com</a><BR>>>> ><BR>>> --<BR>>> I was an atheist till I realized I am GOD<BR>>><BR>><BR>></DIV></DIV>--<BR>> 
<DIV>
<DIV></DIV>
<DIV cl-ass="h5">Matthias Bolte<BR>><a href='http://photron.blogspot.com'>http://photron.blogspot.com</a><BR>></DIV></DIV></BLOCKQUOTE></DIV><BR>><BR clear=all><BR>>-- <BR>>I was an atheist till I realized I am GOD<BR>></DIV>_______________________________________________<BR>>libvirt-users mailing list<BR>>libvirt-users@redhat.com<BR>>https://www.redhat.com/mailman/listinfo/libvirt-users<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>