Ram Srivatsa Kannan
2014-Mar-04 19:43 UTC
[libvirt-users] libvirt-sock No such file or directory
Hi, When I run the following command *~/kvm/virt-manager $ virsh -c qemu:///system list* i get the following errors. Please help me out with this issue. error: failed to connect to the hypervisor error: Failed to connect socket to '/usr/local/var/run/libvirt/libvirt-sock': No such file or directory' Thank you Ram PhD student Dept of EECS UMich
Eric Blake
2014-Mar-04 20:29 UTC
Re: [libvirt-users] libvirt-sock No such file or directory
On 03/04/2014 12:43 PM, Ram Srivatsa Kannan wrote:> Hi, > When I run the following command > > *~/kvm/virt-manager $ virsh -c qemu:///system list* > > i get the following errors. Please help me out with this issue. > error: failed to connect to the hypervisor > error: Failed to connect socket to > '/usr/local/var/run/libvirt/libvirt-sock': No such file or directory'Did you build libvirt yourself? This error generally occurs when the libvirtd binary was compiled to live in one location, but your self-compiled virsh and libvirt.so are compiled to look in another. If you are going to self-compile, you must ensure that the system libvirtd is running at the same location; the easiest way to do that is to make sure you specify configure options that match what your distro would do ('./autogen.sh --system' can help with that, especially for Fedora-based systems); but it's also possible to uninstall your distro's version and install your self-built version, as well as modify your system's init setup to make sure it runs your self-built libvirtd as a daemon. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org