Hi Maththias,<div><br></div><div>Thanks for the help. I finally was able to compile/install libvirt on xenserver.</div><div><br></div><div>

<p class="MsoNormal">I tried compiling the libvirt 0.9.2 with xen api support.
Was able to install it successfully. When I tried giving the virsh command, I
got an ‘authentication failed’ error as shown below. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"># virsh -c xenapi://<my local ip></p>

<p class="MsoNormal">Enter username for <mylocalip>: root</p>

<p class="MsoNormal">Enter intel123's password for <my local ip>: </p>

<p class="MsoNormal">error: authentication failed: (null)</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I also tried connecting to the local machine as below,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">virsh -c
"xenapi:///"                         
</p>

<p class="MsoNormal">error: authentication failed: Server name not in URI</p>

<p class="MsoNormal">error: failed to connect to the hypervisor</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">What am I missing here?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Also I am trying to install ruby-libvirt on xenserver, which looks like requires libvirt-devel package to be installed. How do I build it from the libvirt 0.9.2
source package.</p><p class="MsoNormal"><br></p><p class="MsoNormal">Thanks,</p><p class="MsoNormal">Naresh</p><br><div class="gmail_quote">On Wed, Jun 15, 2011 at 8:19 PM, Matthias Bolte <span dir="ltr"><<a href="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.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">2011/6/15 G Naresh Kumar <<a href="mailto:naresh.gadepalli@gmail.com">naresh.gadepalli@gmail.com</a>>:<br>


</div><div class="im">> 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' driver"<br>
<br>
</div>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>
<div class="im"><br>
> I have installed libvirt from citrix yum repo.<br>
<br>
</div>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>
<div class="im"><br>
> I am using Xenserver 5.5 with libvirt 0.8.2 and it does not seem to be<br>
> working.<br>
<br>
</div>According to <a href="http://libvirt.org/hvsupport.html" target="_blank">http://libvirt.org/hvsupport.html</a> and the error message<br>
0.8.2 is new enough.<br>
<font color="#888888"><br>
Matthias<br>
</font><div><div></div><div class="h5"><br>
> Thanks,<br>
><br>
> Naresh<br>
><br>
> On Jun 15, 2011 7:03 PM, "Matthias Bolte" <<a href="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.com</a>><br>
> wrote:<br>
>> 2011/6/15 G Naresh Kumar <<a href="mailto:naresh.gadepalli@gmail.com">naresh.gadepalli@gmail.com</a>>:<br>
>>> Hi,<br>
>>> Is libvirt supported on Citrix Xenserver. I have been searching for the<br>
>>> same<br>
>>> with little/no luck.<br>
>>> If supported, can you point to some links/documents which can help me 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 website<br>
>> yet.<br>
>><br>
>> [1] <a href="http://community.citrix.com/display/xs/Download+SDKs" target="_blank">http://community.citrix.com/display/xs/Download+SDKs</a><br>
>><br>
>> --<br>
>> Matthias Bolte<br>
>> <a href="http://photron.blogspot.com" target="_blank">http://photron.blogspot.com</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>I was an atheist till I realized I am GOD<br>
</div>