Zhihua Che
2012-May-25 09:39 UTC
[libvirt-users] How to specify the libvirtd in connect call
Hi, Here is my situation, I install libvirt in a non-default directory and start libvird with sudo. While I can connect virsh to libvirtd using "virsh --connect qemu:///system", I fail to connect my app using "virConnectOpen("qemu:///system")", which complains "unable to locate libvirtd daemon in $PATH". Then, I take another try and add the path of libvirtd in env variable PATH. Unfortunately, it doesn't work. I read through the api reference and find no place to specify this path explicitly. Thanks for any tip. Harvey
Zhihua Che
2012-May-25 10:10 UTC
[libvirt-users] How to specify the libvirtd in connect call
2012/5/25 Zhihua Che <zhihua.che at gmail.com>:> Hi, > ? ?Here is my situation, I install libvirt in a non-default directory > and start libvird with sudo. While I can connect virsh to libvirtd > using "virsh --connect qemu:///system", I fail to connect my app using > "virConnectOpen("qemu:///system")", which complains "unable to locate > libvirtd daemon in $PATH". ?Then, I take another try and add the path > of libvirtd in env variable PATH. Unfortunately, it doesn't work. > ? ?I read through the api reference and find no place to specify this > path explicitly. > > Thanks for any tip. > HarveyI guess I resolve this problem. I test my app with another libvirt.so which is compiled with option "--with-yajl", and my app can connect to libvirtd. The previous libvirt.so was compiled with no "--with-yajl" I don't why this yajl can cause the problem.