LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   some problemS about developing with libvirt onXCP,can not connect to xen hypervisor (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/some-problems-about-developing-with-libvirt-onxcp-can-not-connect-to-xen-hypervisor-946553/)

code penguin 05-23-2012 11:00 PM

some problemS about developing with libvirt onXCP,can not connect to xen hypervisor
 
I want to use Libvirt to do development on XCP and I write a simple test program of local connection,they are as follows:

conn = virConnectOpenReadOnly("xen:///");
if(conn == NULL) printf("connect\n");

But it has an error:

[root@xenserver-wss monitor_xcl]# ./vm1libvir: Xen Daemon error : unable to connect to 'localhost:8000': Connection refused connect
Then I use the “virsh version”,errors happen again:

[root@xenserver-wss monitor_xcl]# virsh versionerror: unable to connect to 'localhost:8000': Connection refusederror: failed to connect to the hypervisor

Most people suggest to modify the configuration file of“xend”: /etc/xen/xend-config.sxp
but I can’t find this file.
System information:
libvirtd (libvirt) 0.8.2Linux xenserver-wss 2.6.32.12-0.7.1.xs1.4.90.530.170661xen #1 SMP Mon Feb 6 17:55:01 EST 2012 i686 i686 i386 GNU/LinuxXCP-1.0

I would like to know whether Libvirt need Xend to support it and if XCP is no longer supports XM or not? How can I solve this problem?

Thanks in advance.If you require any ore information, please ask.


All times are GMT -5. The time now is 05:36 PM.