[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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' said but never worked:

root 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 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 shahe26:~# ls /usr/lib32 | grep libvirt
root shahe26:~# /etc/init.d/libvirt-bin restart
Restarting libvirt management daemon: /usr/sbin/libvirtd.
root 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 shahe26:~#

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

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

How to solve this problem?thanks.

best regards,
qinguan

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]