<font size="2"><font face="verdana,sans-serif">Hi,<br><br>I downloaded and built the latest libvirt source code 0.8. I installed the library in a custom directory libvirt-0.8.0-install/ keeping all other configurations default.<br>

</font></font><font size="2"><font face="verdana,sans-serif"><br>
After this I tried to execute the example </font></font><font size="2"><font face="verdana,sans-serif">hellolibvirt:</font></font><br><font size="2"><font face="verdana,sans-serif"><br></font></font><font size="2"><font face="verdana,sans-serif">[hellolibvirt]# ./hellolibvirt xen<br>


Attempting to connect to hypervisor<br>libvir: Remote error : unable to connect to '/root/ganeshp/libvirt-0.8.0-install/var/run/libvirt/libvirt-sock', libvirtd may need to be started: Connection refused<br>No connection to hypervisor<br>


Parameter error when attempting to get last error<br><br>My libvirtd was running from /etc/init.d/libvirtd. Still why is it trying to connect to the newly built libvirtd?<br><br>I stopped the </font></font><font size="2"><font face="verdana,sans-serif">/etc/init.d/libvirtd and started </font></font>my newly built daemon:<br>

<font size="2"><font face="verdana,sans-serif">[hellolibvirt]# </font></font>/root/ganeshp/libvirt-0.8.0-install/sbin/libvirtd start &<br>04:47:07.534: warning : qemudStartup:1574 : Unable to create cgroup for driver: No such device or address<br>

04:47:07.540: error : parse_socket:126 : cannot open /sys/devices/system/cpu/cpu1/topology/physical_package_id: No such file or directory<br>04:47:07.540: warning : qemudCapsInit:1068 : Failed to get host CPU<br>04:47:07.544: warning : lxcStartup:1835 : Unable to create cgroup for driver: No such device or address<br>

<br>After this I tried running hellolibvirt example again:<br>[hellolibvirt]# ./hellolibvirt xen<br>Attempting to connect to hypervisor<br>04:48:43.166: error : virLibConnError:450 : no hypervisor driver available for xen:///<br>

libvir: error : no hypervisor driver available for xen:///<br>libvir: error : no hypervisor driver available for xen:///<br>No connection to hypervisor<br>Parameter error when attempting to get last error<br><br>I do not understand why the program is not able to find the xen driver. I am able to launch VMM GUI and create VMs using xen connection. The system already has xen hypervisor (3.1.0).<br>

<br>Even the newly built virsh gives similar errors. Whereas /usr/bin/virsh works perfectly fine.<br><br>Am I missing some configuration or dependency? Any pointers/suggestion would greatly help. Thanks.<br><br clear="all">


Regards,<br>-Ganesh<br>