Problems when using libvirt-cim provider

Hello,everyone: I am trying to use libvirt API and libvirt-cim now. After installed them successfully, I can see the "Virt_*****" providers using "cimprovider -l -s"commond. My cimom is pegasus. Then I used wbemcli as cim client. But when I used "wbemcli ei" to enumerate instances of a specified class,for example,Xen_DiskPool, error code was: wbemcli:Cim(1) CIM_ERR_FAILED: A general error occurred that is not covered by a more specific error code:"For provider Virt_DevicePool the library name was empty. Check provider registered location". Could you please help me to solve this problem? Did it mean that the providers were not registered correctly? But I "make postinstall" the provider and no errors occourred. Thank you! Regards, Chun Shan Disclaimer: The contents of this e-mail, and its attachments, if any, are confidential and may be protected by law against any unauthorized use. If you have received this e-mail by mistake or have reason to believe that you are not the intended recipient, please notify the sender by reply e-mail as soon as possible and delete it from your computer system immediately thereafter. If you are not the intended recipient, you must not copy this e-mail or attachment or disclose the contents to any other person. While we have made every effort to keep our network virus free, we take no responsibility for any computer virus which might be transferred by way of this e-mail.

SC> wbemcli:Cim(1) CIM_ERR_FAILED: A general error occurred that SC> is not covered by a more specific error code:"For provider SC> Virt_DevicePool the library name was empty. Check provider SC> registered location". This usually happens because the CIMOM is unable to load some dependent libraries for the providers. Where did the .so files get installed? I think the default is /usr/local/lib/cmpi for Pegasus if you don't specify a location. Figure out where your Pegasus providers directory is and set that with PROVIDERDIR like this: ./configure PROVIDERDIR=/usr/lib64/cmpi Then clean and rebuild/reinstall your tree. Also, make sure that the above path is set in your linker config (i.e. /etc/ld.so.conf). -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com

Hi, Mr. Smith: Now the problem is solved. Thank you very much! Best Regards Chun Shan Open System Software Laboratory ---------------------------------------------------------------------------- -- Hitachi (China) Research & Development Corporation 301, Tower C Raycom infotech Park, 2 kexueyuan Nanlu, Hai Dian District, Beijing 100080, China Tel:(86)-10-8286-2918 (Ext.) 371 Fax:(86)-10-8286-2919 E-mail: cshan@hitachi.cn ---------------------------------------------------------------------------- -- -----邮件原件----- 发件人: libvirt-cim-bounces@redhat.com [mailto:libvirt-cim-bounces@redhat.com] 代表 Dan Smith 发送时间: 2008年7月29日 0:05 收件人: List for discussion and development of libvirt CIM 主题: Re: [Libvirt-cim] Problems when using libvirt-cim provider SC> wbemcli:Cim(1) CIM_ERR_FAILED: A general error occurred that SC> is not covered by a more specific error code:"For provider SC> Virt_DevicePool the library name was empty. Check provider SC> registered location". This usually happens because the CIMOM is unable to load some dependent libraries for the providers. Where did the .so files get installed? I think the default is /usr/local/lib/cmpi for Pegasus if you don't specify a location. Figure out where your Pegasus providers directory is and set that with PROVIDERDIR like this: ./configure PROVIDERDIR=/usr/lib64/cmpi Then clean and rebuild/reinstall your tree. Also, make sure that the above path is set in your linker config (i.e. /etc/ld.so.conf). -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com
participants (3)
-
cshan
-
Dan Smith
-
SHAN, CHUN -HCHBJ