<br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 8:40 AM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Fri, Sep 28, 2012 at 08:37:54AM -0700, hiren panchasara wrote:<br>
> On Fri, Sep 28, 2012 at 1:11 AM, Daniel P. Berrange <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>>wrote:<br>
><br>
> > On Thu, Sep 27, 2012 at 11:15:56PM -0700, hiren panchasara wrote:<br>
> > > I've installed libvirt-0.9.13 from ports on my freebsd machine.<br>
> > ><br>
> > > I started libvirtd:<br>
> > ><br>
> > > $ ps awwux | grep libvirtd<br>
> > > root       11470   0.0  0.4  103100  31948  -  I    10:41PM   0:00.35<br>
> > > libvirtd -v -d<br>
> > ><br>
> > > $ sudo virsh --connect qemu:///system<br>
> > > error: no connection driver available for No connection for URI<br>
> > > qemu:///system<br>
> > > error: failed to connect to the hypervisor<br>
> > ><br>
> > > I am sure I am missing something obvious.<br>
> ><br>
> ><br>
> > Try collecting some debugging output using<br>
> ><br>
> >   LIBVIRT_DEBUG=1 sudo virsh --connect qemu:///system<br>
> ><br>
> > It should give a better idea why it failed.<br>
> ><br>
><br>
> Not getting any useful info:<br>
><br>
> $ ps awwux | grep libvirtd<br>
> root       3396   0.0  0.4  103100  32248  -  I     8:24AM  0:01.05<br>
> libvirtd -v -d<br>
><br>
> $ LIBVIRT_DEBUG=1 sudo virsh --connect qemu:///system<br>
> error: no connection driver available for No connection for URI<br>
> qemu:///system<br>
> error: failed to connect to the hypervisor<br>
><br>
> Tried 1-4 debug levels with the same response.<br>
<br>
</div></div>Sounds like sudo is stripping the env variable. Try running it as root<br>
directly, without sudo.<br></blockquote><div><br>Aah, right, o/p is huge so putting it in pastebin:<br><a href="http://pastebin.com/YVrK0fRb">http://pastebin.com/YVrK0fRb</a><br><br>Thanks a lot,<br>Hiren<br></div></div>