Will (and all other users),<div><br></div><div>So I think I figured out what my issue is but I'm not certain where and how to fix it. As I stated before when I run "sudo virsh -c qemu:///system list" I get these errors:</div>
<div><br></div><div><div>error: Failed to connect socket to '/usr/local/var/run/libvirt/libvirt-sock': Permission denied</div><div>error: failed to connect to the hypervisor</div><div><br></div><div>Well interesting enough, when I start the daemon and run "lsof | grep libvirt-sock" it returns this path:</div>
<div><br></div><div>libvirtd  5598      shawn   11u     unix 0xffff88042192d050      0t0    39057 /home/users/shawn/.cache/libvirt/libvirt-sock</div><div><br></div><div>So if I'm not mistaken, it appears that the daemon is creating the socket at "/home/users/shawn/.cache/libvirt" but the virsh command is trying to connect at "/usr/local/var/run/libvirt". I figured that changing the unix_sock_dir variable in "/usr/local/etc/libvirt/libvirtd.conf" to be set to "/usr/local/var/run/libvirt" would fix it but it doesn't. The daemon still creates the libvirt-sock socket at "/home/users/shawn/.cache/libvirt/libvirt-sock".</div>
<div><br></div><div>Do you happen to know where or how to set daemon's default location for creating the libvirt-sock?</div><div><br></div><div>Shawn</div><br><div class="gmail_quote">On Thu, Aug 23, 2012 at 12:52 PM, Whit Blauvelt <span dir="ltr"><<a href="mailto:whit.virt@transpect.com" target="_blank">whit.virt@transpect.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Shawn,<br>
<br>
First off, nobody would call me an expert at this. Fumbling like you are.<br>
But it's working for me.<br>
<br>
Are you sure you killed all libvirtd processes before starting libvirtd? You<br>
might check for them with "ps aux | grep libvirtd". I recall a tendency for<br>
them to hang around short of explicitly killing them.<br>
<br>
Which user did you start libvirtd as? I'd doing that as root.<br>
<br>
Speaking of users, there's another step I took, and I'm not sure if it was<br>
essential or not. In /usr/local/etc/libvirt/qemu.conf I set the qemu user<br>
and group to the Ubuntu defaults:<br>
<br>
  # The user ID for QEMU processes run by the system instance.<br>
  #user = "root"<br>
  user = "libvirt-qemu"<br>
<br>
  # The group ID for QEMU processes run by the system instance.<br>
  #group = "root"<br>
  group = "kvm"<br>
<br>
Did that while I was fumbling. Not sure if it was critical.<br>
<br>
Whit<br>
<br>
<br>
<br>
<br>
On Thu, Aug 23, 2012 at 12:27:01PM -0400, Shawn Furrow wrote:<br>
> Whit,<br>
><br>
> I was able to get around the library problem by simply uninstalling the<br>
> xsltproc distribution package. The docs are not made but the installation<br>
> finishes. (Let me know if you think this is a bad idea or if it will mess up<br>
> the running of libvirt somehow)<br>
><br>
> I tried your suggestion and I can run the libvirt daemon from the location you<br>
> suggested. However, when I cannot seem to connect to the libvirt-sock socket or<br>
> the qemu hypervisor. When I run the command "sudo virsh -c qemu:///system list"<br>
> I get the follow error messages:<br>
><br>
> error: Failed to connect socket to '/usr/local/var/run/libvirt/libvirt-sock':<br>
> Connection refused<br>
> error: failed to connect to the hypervisor<br>
><br>
> Any ideas how to get this working. I've been running into this problem for<br>
> several combinations of installs except for when I use the distro packages for<br>
> both qemu-kvm and libvirt.<br>
><br>
> Thanks,<br>
> Shawn<br>
><br>
><br>
><br>
> On Wed, Aug 22, 2012 at 4:20 PM, Whit Blauvelt <<a href="mailto:whit.virt@transpect.com">whit.virt@transpect.com</a>> wrote:<br>
><br>
>     What works for me (Ubuntu 10.10):<br>
><br>
>     Stop the old version.<br>
><br>
>     Start the new one with:<br>
><br>
>     /usr/local/sbin/libvirtd -d<br>
><br>
>     That's assuming that you did a "make install" and let it go to the default<br>
>     location, which that is. Now, if it's all default (both the original and<br>
>     your builds), then replace /usr/local/etc/libvirt/qemu with a symlink to<br>
>     /etc/libvirt/qemu before starting.<br>
><br>
>     Also, if you've built qemu-kvm to replace the distro version, then<br>
>     /usr/bin/kvm should be a symlink to /usr/local/bin/qemu-system-x86_64<br>
>     rather<br>
>     than the distro's /usr/bin/qemu-system-x86_64.<br>
><br>
>     There's also another daemon or two that you may or may not need running<br>
>     according to how you're handling the VM interfaces. Since I'm bridging<br>
>     them,<br>
>     I haven't concerned myself with that.<br>
><br>
>     In recent versions Ubuntu has omitted a proper /etc/init.d script in favor<br>
>     of upstart (which I hate; YMMV). There's still a decent init.d script for<br>
>     libvirt in Debian, which can be edited to work with a built-from-source<br>
>     version. Of course, Ubuntu will replace that whenever you do updates, if it<br>
>     still thinks that libvirt is something it should update.<br>
><br>
>     BTW, what did you do to get around the library problem?<br>
><br>
>     Whit<br>
><br>
>     On Wed, Aug 22, 2012 at 03:50:12PM -0400, Shawn Furrow wrote:<br>
>     > Daniel (and all others),<br>
>     ><br>
>     > I have been able to get past the libvirt installation but I cannot start<br>
>     the<br>
>     > libvirtd daemon. For ubuntu, what is the best way to start the libvirtd<br>
>     daemon?<br>
>     > "sudo make install" did not put libvirtd in /etc/init.d so the only place<br>
>     I see<br>
>     > it is in libvirt-0.10.0/daemon/. I have looked up this issue online and<br>
>     the<br>
>     > best I have seen is to install the distribution package and replace the<br>
>     daemon<br>
>     > with the one I build from source. Does anyone know anything about this?<br>
>     ><br>
>     > Thanks,<br>
>     > Shawn<br>
>     ><br>
>     > On Wed, Aug 22, 2012 at 10:40 AM, Shawn Furrow <<a href="mailto:sfurrow@vt.edu">sfurrow@vt.edu</a>> wrote:<br>
>     ><br>
>     >     If I run xmllint --noout docs/<a href="http://news.html.in" target="_blank">news.html.in</a> inside the libvirt-0.10.0<br>
>     >     directory I get no output.<br>
>     ><br>
>     >     Shawn<br>
>     ><br>
>     ><br>
>     >     On Wed, Aug 22, 2012 at 10:33 AM, Daniel Veillard <<br>
>     <a href="mailto:veillard@redhat.com">veillard@redhat.com</a>><br>
>     >     wrote:<br>
>     ><br>
>     >         On Wed, Aug 22, 2012 at 10:02:53AM -0400, Shawn Furrow wrote:<br>
>     >         > Daniel,<br>
>     >         ><br>
>     >         > I tried re-installing all of those libraries and I still get<br>
>     the same<br>
>     >         > segfault. Here are the outputs you requested:<br>
>     >         ><br>
>     >         > *xsltproc --version*<br>
>     >         > Using libxml 20706, libxslt 10126 and libexslt 815<br>
>     >         > xsltproc was compiled against libxml 20706, libxslt 10126 and<br>
>     >         libexslt 815<br>
>     >         > libxslt 10126 was compiled against libxml 20706<br>
>     >         > libexslt 815 was compiled against libxml 20706<br>
>     >         ><br>
>     >         > *xmllint --version*<br>
>     >         > xmllint: using libxml version 20706<br>
>     >         >    compiled with: Threads Tree Output Push Reader Patterns<br>
>     Writer<br>
>     >         SAXv1 FTP<br>
>     >         > HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude<br>
>     Iconv<br>
>     >         > ISO8859X Unicode Regexps Automata Expr Schemas Schematron<br>
>     Modules<br>
>     >         Debug Zlib<br>
>     ><br>
>     >           what does xmllint --noout docs/<a href="http://news.html.in" target="_blank">news.html.in</a> gives within<br>
>     libvirt ?<br>
>     >         if it crashes then check which libz is used by<br>
>     >            ldd /usr/bin/xmllint<br>
>     >         and check where that library comes from, it's very likely a<br>
>     problem<br>
>     >         like that, xsltproc should not crash<br>
>     ><br>
>     >         Daniel<br>
>     ><br>
>     >         --<br>
>     >         Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://<br>
>     >         <a href="http://xmlsoft.org/" target="_blank">xmlsoft.org/</a><br>
>     >         <a href="mailto:daniel@veillard.com">daniel@veillard.com</a>  | Rpmfind RPM search engine http://<br>
>     <a href="http://rpmfind.net/" target="_blank">rpmfind.net/</a><br>
>     >         <a href="http://veillard.com/" target="_blank">http://veillard.com/</a> | virtualization library  <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
>     /<br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     >     --<br>
>     >     Virginia Tech<br>
>     >     Bradley Department of Electrical and Computer Engineering<br>
>     >     B.S. Electrical Engineering<br>
>     >     B.S. Computer Engineering<br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     > --<br>
>     > Virginia Tech<br>
>     > Bradley Department of Electrical and Computer Engineering<br>
>     > B.S. Electrical Engineering<br>
>     > B.S. Computer Engineering<br>
>     ><br>
><br>
>     > _______________________________________________<br>
>     > libvirt-users mailing list<br>
>     > <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
>     > <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
><br>
><br>
><br>
><br>
<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> Virginia Tech<br>
> Bradley Department of Electrical and Computer Engineering<br>
> B.S. Electrical Engineering<br>
> B.S. Computer Engineering<br>
><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Virginia Tech<br>Bradley Department of Electrical and Computer Engineering<br>B.S. Electrical Engineering</div><div>B.S. Computer Engineering</div>
<br>
</div>