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.
# virsh -c xenapi://<my local ip>
Enter username for <mylocalip>: root
Enter intel123's password for <my local ip>:
error: authentication failed: (null)
I also tried connecting to the local machine as below,
virsh -c "xenapi:///"
error: authentication failed: Server name not in URI
error: failed to connect to the hypervisor
What am I missing here?
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.
2011/6/15 G Naresh Kumar <naresh gadepalli gmail com>:
> Hi Maththias,The means that your libvirt version is new enough and contains the
> Thanks a lot for your response!.
> Is there a specific version of libvirt from which xenserver support is
> added? I am getting the below error
> "error: invalid argument in libvirt was built without the 'xenapi' driver"
XenAPI driver but that it was disabled on configure time, probably
because the build server didn't have libxenserver installed and
libvirt's configure script automatically disabled the driver because
of a missing dependency.
Then Citrix build libvirt without XenAPI support. As a long term
> I have installed libvirt from citrix yum repo.
solution you could report to whom ever is responsible for that repo
and request to enabled XenAPI support in that libvirt package. As a
short term solution you could build libvirt from source yourself and
make sure to get the XenAPI driver enabled.
According to http://libvirt.org/hvsupport.html and the error message
> I am using Xenserver 5.5 with libvirt 0.8.2 and it does not seem to be
0.8.2 is new enough.
> On Jun 15, 2011 7:03 PM, "Matthias Bolte" <matthias bolte googlemail com>
>> 2011/6/15 G Naresh Kumar <naresh gadepalli gmail com>:
>>> Is libvirt supported on Citrix Xenserver. I have been searching for the
>>> with little/no luck.
>>> If supported, can you point to some links/documents which can help me try
>>> out the same.
>> libvirt can use XenAPI via libxenserver . That should allow you to
>> use libvirt with a Citrix XenServer. You can use virsh like this
>> assuming you have a libxenserver enabled libvirt:
>> virsh -c xenapi://my-xen-server
>> But it's true, there is no documentation about this on the libvirt website
>>  http://community.citrix.com/display/xs/Download+SDKs
>> Matthias Bolte