Hi,<br>I started using libvirt few days back...while using virDomainMemoryStats API, got "unknown procedure: 159"  runtime error<br><br>code is <br>-------------------------------------------------------------------------------------------------------------------------------------<br>
virDomainMemoryStatPtr statPtr;<br>statPtr = malloc(VIR_DOMAIN_MEMORY_STAT_NR* sizeof (virDomainMemoryStatStruct));<br>unsigned int flags=0;<br>int Ret;<br>Ret = virDomainMemoryStats(domPtr,statPtr, VIR_DOMAIN_MEMORY_STAT_NR,flags);<br>
-------------------------------------------------------------------------------------------------------------------------------------<br><br>Machine details:<br>------------------------------------------------------------------------------------------------------------------------------------<br>
[root@wlng-ppcore-nd3 hellolibvirt]# uname -a<br>Linux wlng-ppcore-nd3 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux<br><br>[root@wlng-ppcore-nd3 hellolibvirt]# cat /etc/redhat-release<br>
Red Hat Enterprise Linux Server release 5.5 (Tikanga)<br>------------------------------------------------------------------------------------------------------------------------------------<br><br><br>virsh details:<br><br>
[root@wlng-ppcore-nd3 hellolibvirt]# virsh version<br>Compiled against library: libvir 0.8.1<br>Using library: libvir 0.8.1<br>Using API: QEMU 0.8.1<br>Running hypervisor: QEMU 0.9.1<br>------------------------------------------------------------------------------------------------------------------------------------<br>
There are two libvirtd installations here..<br>------------------------------------------------------------------------------------------------------------------------------------<br>[root@wlng-ppcore-nd3 sbin]# pwd<br>/usr/sbin<br>
[root@wlng-ppcore-nd3 sbin]# ls -l libvirtd<br>-rwxr-xr-x 1 root root 380064 Jun 10 02:33 libvirtd<br>[root@wlng-ppcore-nd3 sbin]# ./libvirtd --version<br>./libvirtd (libvirt) 0.6.3<br>------------------------------------------------------------------------------------------------------------------------------------<br>
[root@wlng-ppcore-nd3 sbin]# pwd<br>/usr/local/sbin<br>[root@wlng-ppcore-nd3 sbin]# ls -l<br>total 3084<br>-rwxr-xr-x 1 root root 3152977 Jun 10 01:25 libvirtd<br>[root@wlng-ppcore-nd3 sbin]# ./libvirtd --version<br>./libvirtd (libvirt) 0.8.1<br>
------------------------------------------------------------------------------------------------------------------------------------<br><br>found a link which mentions libvirtd can be old hence this error is possible... not sure how to configure the latest libvirtd? <br>
How to solve "unknown procedure: 159"  runtime error? <br><br>Thanks,<br>osvdev<br><br>