On Fri, Sep 28, 2012 at 8:53 AM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><div class="gmail_quote"><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:51:40AM -0700, hiren panchasara wrote:<br>
> On Fri, Sep 28, 2012 at 8:40 AM, Daniel P. Berrange <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>>wrote:<br>
><br>
> > 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><br>
> > >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>
> > Sounds like sudo is stripping the env variable. Try running it as root<br>
> > directly, without sudo.<br>
> ><br>
><br>
> Aah, right, o/p is huge so putting it in pastebin:<br>
> <a href="http://pastebin.com/YVrK0fRb" target="_blank">http://pastebin.com/YVrK0fRb</a><br>
<br>
</div></div>Looks somewhat like your libvirt has been built without support<br>
for the QEMU driver<br>
<div class="HOEnZb"><div class="h5"><br>
Daniel<br></div></div></blockquote><div> <br>Libvirt is currently incomplete for FreeBSD, and there is an effort to get it fully supported right now. Libvirtd daemon should not start, and I would be surprised if it did. QEMU drivers aren't enabled either, but if you would like to contribute anything please contact me and I can get you in contact with the right people to contribute. There is also efforts to implement the BSD Hypervisor into the libvirt codebase, as well.<br>
<br>Thanks!<br>-jgh<br clear="all">--<br>Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a> <br></div></div><br>