On 04/05/2018 03:59 PM, Mathieu Tarral wrote:
> Hi,
> 
> I managed to compile libvirt from the git repo,
> now i have some trouble to run it.
> 
> This is what i did:
> 
> I configured the source to use /var because i wanted the socket
> to be at the same place as the system one
> (/var/run/libvirt/libvirt-sock)
> ./configure --prefix=$HOME/usr --localstatedir=/var
> make
> make install
> 
> at this point i stopped my system libvirtd and virtlogd
> sudo systemctl stop libvirtd
> sudo systemctl stop virtlogd
> 
> And then i launched my custom libvirtd and virtlogd
> cd $HOME/usr/sbin
> sudo ./libvirtd -v
> sudo ./virtlogd -v
> 
> After that i tried to list the available domains with virsh (using the
> system binary)
> sudo virsh
> virsh # list --all
> 
> And this call hangs forever.
> There is no more output in libvirtd stdout/stderr, even if i set log_level to 
> 1.
> 
> Did i miss anything in the configuration ?

You can enable debugging for virsh too:

LIBVIRT_DEBUG=1 ./tools/virsh list --all

Alternatively, you can run the libvirtd under strace to see if it
accepts() the connection request. Seems like virsh is trying to connect
to a different socket than libvirtd is listening to.

Michal

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to