<div dir="ltr">I see, thank you very much!<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Best,<div>Yuanzhen</div></div></div>
<br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 12:40 PM, Claudio Bley <span dir="ltr"><<a href="mailto:cbley@av-test.de" target="_blank">cbley@av-test.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

At Wed, 30 Jul 2014 09:30:45 -0600,<br>
<div class="">Eric Blake wrote:<br>
><br>
> On 07/30/2014 08:55 AM, Yuanzhen Gu wrote:<br>
> > Hi folks,<br>
> ><br>
> > I compiled and installed libvirt latest version 1.2.6, based on this<br>
> > tutorial,<br>
> ><br>
> > <a href="http://blog.scottlowe.org/2012/11/05/compiling-libvirt-1-0-0-on-ubuntu-12-04-and-12-10/" target="_blank">http://blog.scottlowe.org/2012/11/05/compiling-libvirt-1-0-0-on-ubuntu-12-04-and-12-10/</a><br>
> ><br>
> > I have compiled qemu and installed too, and make a symbolic link to<br>
> > /usr/bin/qemu-system-x86_64<br>
> ><br>
> > but my question is even I launch a vm in qemu, $virsh list showed nothing,<br>
> > further more,<br>
> ><br>
> > 1) if I use virtual machine manager, it get connection failiure, due to<br>
> > socket to '/var/run/libvirt/libvirt-sock'; No such file of dirctory.<br>
><br>
> That's not the actual error message (because the actual message wouldn't<br>
> mis-spell directory), but is generally the message you see when libvirtd<br>
> is not running.  Are you sure you got your self-built libvirtd installed<br>
> and running correctly?<br>
><br>
> ><br>
> > 2). there is missing libvirt-bin under /etc/init.d/,  after compile and<br>
> > installed libvirt 1.2.6<br>
><br>
> I'm not familiar enough with libvirt on ubuntu to know if this is a<br>
> problem.  If you are going to replace your distro's old libvirt with a<br>
> newer self-built version, it is STILL helpful to install your distro's<br>
> libvirt first, to make sure that all the distro-specific tweaks (such as<br>
> setting up /etc/init.d/ and so forth to run libvirtd as a daemon) are in<br>
> place.<br>
<br>
</div>Usually, Ubuntu uses upstart. So, there should be a<br>
/etc/init/libvirt-bin.conf which defines the libvirt daemon upstart<br>
job.<br>
<br>
I'm not sure whether the configure script detects upstart and installs<br>
the upstart files automatically, though.<br>
<div class=""><br>
> > 3). I tried to start libvirtd daemon, sudo  /usr/sbin/libvirtd/start<br>
> > shows    "/usr/sbin/libvirtd: unexpected, non-option, command line<br>
> > arguments"<br>
<br>
</div>I guess that you tried to run "sudo /usr/sbin/libvirtd start"?! This<br>
won't work as "/start" is not a valid non-option command line argument<br>
as the error message already told you.<br>
<div class=""><br>
> According to the tutorial blog that you linked to, it seems like you<br>
> would use 'sudo initctl start libvirt-bin' and not 'sudo<br>
> /usr/sbin/libvirtd/start' to start libvirtd<br>
<br>
</div>"sudo start libvirt-bin" is a shortcut method which does the same, BTW.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Claudio<br>
--<br>
<br>
</font></span></blockquote></div><br></div>