Hi,<br>I recompile the libvirt-0.9.0 with "./configure --prefix=/usr --libdir=/usr/lib64 --localstatedir=/var --sysconfdir=/etc " <br>in both the dell optiplex 780 and Xeon(R) E5620,find that in the dell 780 shows:<br>
<br>root@Optiplex-780:/home/qinguan# virsh<br>error:unable to connect to '/usr/local/var/run/libvirt/libvirt-sock', libvirtd may need to be started: 没有那个文件或目录(no such file or directory )<br>error:连接到管理程序失败(failed to connect the monitor)<br>
root@Optiplex-780:/home/qinguan# /usr/local/sbin/libvirtd -d<br>root@Optiplex-780:/home/qinguan# virsh<br>Welcome to virsh, the virtualization interactive terminal.<br><br>Type:  'help' for help with commands<br>       'quit' to quit<br>
<br>virsh # <br>
root@Optiplex-780:/home/qinguan# virsh --version<br>
0.9.0<br>
root@Optiplex-780:/home/qinguan# <br>××××××××××××××××××××××××××××××××<br>In Xeon E5620,it's OK , but I still can't connect the VM running on the E5620 from dell 780 by "virt-viewer -c qemu+ssh://<a href="http://192.168.7.126/system">192.168.7.126/system</a> ubuntu" or "virsh -c qemu+ssh://<a href="http://root@192.168.7.126/system">root@192.168.7.126/system</a>".<br>
<br><br>best regards,<br>qinguan<br><br><br><br><div class="gmail_quote">2011/5/5 Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, May 05, 2011 at 08:07:30PM +0800, guan qin wrote:<br>
> Hi,<br>
> I meet with the problem that "Error: unable to connect to<br>
> '/var/run/libvirt/libvirt-sock' ".<br>
> I do as  Error: unable to connect to '/var/run/libvirt/libvirt-sock'<br>
</div>> <<a href="http://wiki.libvirt.org/page/FAQ#Error:_unable_to_connect_to_.27.2Fvar.2Frun.2Flibvirt.2Flibvirt-sock.27" target="_blank">http://wiki.libvirt.org/page/FAQ#Error:_unable_to_connect_to_.27.2Fvar.2Frun.2Flibvirt.2Flibvirt-sock.27</a>>said<br>

<div><div></div><div class="h5">> but never worked:<br>
><br>
> root@shahe26:~# virsh<br>
> error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may<br>
> need to be started: No such file or directory<br>
> error: failed to connect to the hypervisor<br>
> root@shahe26:~# ls /usr/lib64 | grep libvirt<br>
> libvirt<br>
> libvirt.a<br>
> <a href="http://libvirt.la" target="_blank">libvirt.la</a><br>
> libvirt-qemu.a<br>
> <a href="http://libvirt-qemu.la" target="_blank">libvirt-qemu.la</a><br>
> libvirt-qemu.so<br>
> libvirt-qemu.so.0<br>
> libvirt-qemu.so.0.8.3<br>
> libvirt-qemu.so.0.9.0<br>
> libvirt.so<br>
> libvirt.so.0<br>
> libvirt.so.0.8.3<br>
> libvirt.so.0.9.0<br>
> root@shahe26:~# ls /usr/lib32 | grep libvirt<br>
> root@shahe26:~# /etc/init.d/libvirt-bin restart<br>
> Restarting libvirt management daemon: /usr/sbin/libvirtd.<br>
> root@shahe26:~# virsh<br>
> error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may<br>
> need to be started: No such file or directory<br>
> error: failed to connect to the hypervisor<br>
> root@shahe26:~#<br>
><br>
> I install the libvirt as follows:<br>
> #./configure --prefix=/usr --libdir=/usr/lib64<br>
<br>
</div></div>You're missing   --localstatedir=/var --sysconfdir=/etc<br>
<br>
> #make<br>
> #make install<br>
><br>
<br>
<br>
Regards,<br>
Daniel<br>
<font color="#888888">--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/%7Edanberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></blockquote></div><br>