[libvirt-users] Error: unable to connect to '/var/run/libvirt/libvirt-sock'

guan qin qinguan0619 at gmail.com
Thu May 5 12:07:30 UTC 2011


Hi,
I meet with the problem that "Error: unable to connect to
'/var/run/libvirt/libvirt-sock' ".
I do as  Error: unable to connect to '/var/run/libvirt/libvirt-sock'
<http://wiki.libvirt.org/page/FAQ#Error:_unable_to_connect_to_.27.2Fvar.2Frun.2Flibvirt.2Flibvirt-sock.27>said
but never worked:

root at shahe26:~# virsh
error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may
need to be started: No such file or directory
error: failed to connect to the hypervisor
root at shahe26:~# ls /usr/lib64 | grep libvirt
libvirt
libvirt.a
libvirt.la
libvirt-qemu.a
libvirt-qemu.la
libvirt-qemu.so
libvirt-qemu.so.0
libvirt-qemu.so.0.8.3
libvirt-qemu.so.0.9.0
libvirt.so
libvirt.so.0
libvirt.so.0.8.3
libvirt.so.0.9.0
root at shahe26:~# ls /usr/lib32 | grep libvirt
root at shahe26:~# /etc/init.d/libvirt-bin restart
Restarting libvirt management daemon: /usr/sbin/libvirtd.
root at shahe26:~# virsh
error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may
need to be started: No such file or directory
error: failed to connect to the hypervisor
root at shahe26:~#

I install the libvirt as follows:
#./configure --prefix=/usr --libdir=/usr/lib64
#make
#make install

my OS is debian6.0.1a:
root at shahe26:~# uname -a
Linux shahe26 2.6.32 #1 SMP Wed Apr 27 21:52:04 PDT 2011 x86_64 GNU/Linux
root at shahe26:~#

How to solve this problem?thanks.

best regards,
qinguan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110505/ab7c4176/attachment.htm>


More information about the libvirt-users mailing list