
You dont mention whether you are running the test case as root or an unprivileged user ? Also what config options are in your /etc/xen/xend-config.sxp file ?
I'm running as root. My xend-config is attached.
As root your test case succeeds in getting the XML. As non-root, I see a failure on the first call - the test case is a little bit misleading though - virDomainLookupByID is working fine - the place I see failure is in the virDomainGetXMLDesc - which is because the setuid proxy doesn't not yet support fetching the XML.
In my case, the failure is with virDomainLookupByID. For example, I get the following output: [root@guinness examples]# ./test (0) (null) ERROR: Failed to find Domain 1 Failed on second try [root@guinness examples]#
reproduce the problem here. Oh, what Xen version and distro are you using And is it 32 or 64 bit would be helpful
[root@guinness examples]# xm info host : guinness.beer.home release : 2.6.16-xen version : #1 SMP Tue Jun 20 22:00:41 EDT 2006 machine : i686 nr_cpus : 1 nr_nodes : 1 sockets_per_node : 1 cores_per_socket : 1 threads_per_core : 1 cpu_mhz : 2202 hw_caps : 078bfbff:e3d3fbff:00000000:00000010:00000000:00000001:00000001 total_memory : 2048 free_memory : 1 xen_major : 3 xen_minor : 0 xen_extra : .2-2 xen_caps : xen-3.0-x86_32 platform_params : virt_start=0xfc000000 xen_changeset : Thu Apr 13 15:18:37 2006 +0100 9617:5802713c159b cc_compiler : gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) cc_compile_by : root cc_compile_domain : beer.home cc_compile_date : Tue Jun 20 22:02:29 EDT 2006 [root@guinness examples]# I'm running xen 3.0.2-2, built from source. My machine is running FC5 (32-bit). When I tested the two libvirt versions, I build both directly from source using the standard (./configure ; make ; make install).
I'm curious - what is XenAccess you mention here ? Is this some application being developed with libvirt ?
Yes, XenAccess is a project that I'm working on to provide introspection for Xen. Currently, I use libvirt to obtain the kernel version of a running domain, but may use it for more info in the future. Details available here: http://xenaccess.sourceforge.net/ Thanks, bryan