Description of problem: Compile and install libvirt in $HOME/usr If you edit /etc/libvirt/libvirtd.conf to set unix_sock_dir = "/var/run/libvirt", virLogManagerDaemonPath() will not read the configuration file, and still try to connect to LOCALSTATEDIR/run/libvirt/virtlogd-sock, which is wrong. Version-Release number of selected component (if applicable): 3.0.0 How reproducible: always Steps to Reproduce: 1. compile and install libvirt 3.0.0 to $HOME/usr 2. edit $HOME/usr/etc/libvirt/libvirtd.conf, and set /run/libvirt/virtlogd-sock 3. run $HOME/usr/sbin/libvirtd 4. run $HOME/usr/sbin/virtlogd 4. try to start a VM Actual results: It fails because libvirt tries to connect to the wrong socket path. Expected results: libvirt should connect to /var/run/libvirt/virtlogd-sock Additional info: Discussed on the mailing list with Martin Kletzander. Could you provide a fix ? I don't really have the time to learn how to contribute to libvirt. Thanks !
Err, if you've set configure --prefix to install into $HOME/user, then /etc/libvirt/libvirtd.conf is no longer the right path. Unless you set an explicit --sysconfdir=/etc arg to configure, the right config file is going to be $HOME/usr/etc/libvirt/libvirtd.conf
Hi Daniel, There is a word missing here in my initial report: > If you edit /etc/libvirt/libvirtd.conf to set > unix_sock_dir = "/var/run/libvirt", should be If you edit $HOME/usr/etc/libvirt/libvirtd.conf to set unix_sock_dir = "/var/run/libvirt", As you said: > the right config file is going to be $HOME/usr/etc/libvirt/libvirtd.conf yes, and the bug is that virLogManagerDaemonPath() doesn't read this config file to get the unix_sock_dir location. Is this more clear ? Thanks.
Note that the libvirtd.conf file is only for configuring libvirtd daemon - it has no impact on virtlogd or virtlockd, which have their own configuration files. Now, neither virtlogd.conf or virtlockd.conf support changing unix_sock_dir right now, so that would be an RFE. If we make those paths configurable, we'll also need another config file option to set the path for the client to use, as those config files are both for the server side.