Hi Matthias,<div><br></div><div><p class="MsoNormal"> </p>

<p class="MsoNormal">Sorry for the confusion.It was an edited one & hence the
typo. Below is the </p>

<p class="MsoNormal">actual output:</p>

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

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

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

<p class="MsoNormal">Enter root's password for <myip>: </p>

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

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

<p class="MsoNormal">I was not able to get anything in the Xen logs. Somehow
figured out to print </p>

<p class="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 class="MsoNormal">list/2011-06/msg00298.html. It prints
"TRANSPORT_FAULT". Any pointers to this </p>

<p class="MsoNormal">error would be much appreciated. Iam also trying to debug
this issue.</p>

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

<p class="MsoNormal">As per your suggestion,</p>

<p class="MsoNormal">I had used make rpm. But it requires xen-devel pacakge,
which I was </p>

<p class="MsoNormal">not able to get for Xen 3.4.2. Is there any way where I can
use the source </p>

<p class="MsoNormal">package and build & install the library without using
'make rpm' ? </p>

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

<p class="MsoNormal">Thanks for all the help.</p><p class="MsoNormal"><br></p><p class="MsoNormal">Regards</p><p class="MsoNormal">Naresh</p><br><div class="gmail_quote">On Thu, Jul 14, 2011 at 7:07 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;">2011/7/14 G Naresh Kumar <<a href="mailto:naresh.gadepalli@gmail.com">naresh.gadepalli@gmail.com</a>>:<br>
> Hi Maththias,<br>
<div class="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 class="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 class="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 class="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 class="h5"><br>
> Thanks,<br>
><br>
> Naresh<br>
><br>
> On Wed, Jun 15, 2011 at 8:19 PM, Matthias Bolte<br>
> <<a href="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.com</a>> wrote:<br>
>><br>
>> 2011/6/15 G Naresh Kumar <<a href="mailto:naresh.gadepalli@gmail.com">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" target="_blank">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 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<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" 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>
> --<br>
> I was an atheist till I realized I am GOD<br>
><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Matthias Bolte<br>
<a href="http://photron.blogspot.com" target="_blank">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>