Hi Eric:<div><br></div><div>Yes, I mean sudo make install.</div><div><br></div><div>What I installed the libvirt on ubuntu is as below:</div><div><br></div><div>./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc</div>
<div>make</div><div>sudo make install. </div><div><br></div><div>after installation, I try to start the libvirtd and the error is:</div><div><br></div><div>service libvirtd start</div><div>libvirtd: unrecognized service</div>
<div><br></div><div>Also when I type:</div><div><br></div><div>virsh list --all:</div><div><div>error: Failed to reconnect to the hypervisor</div><div>error: no valid connection</div><div>error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory</div>
</div><div><br></div><div>So what's wrong with that?</div><div><br></div><div>Thank you so much</div><div><br></div><div>Tianwei</div><div><br></div><div><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 11:00 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@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="im">On 01/06/2013 09:14 PM, tianwei zhang wrote:<br>
> Hi everyone:<br>
><br>
> I am just a new user to libvirt. I installed libvirt as:<br>
><br>
> ./configure<br>
> make<br>
> sudo make<br>
<br>
</div>Did you mean 'sudo make install' here?<br>
<div class="im"><br>
><br>
> After that I run the program in the development guide.<br>
<br>
</div>Which guide?  Having a URL to the guide you were following will help us<br>
know whether we can improve that guide to make it easier to use.<br>
<div class="im"><br>
> But it seems that<br>
> the program is stuck in the function of virConnectOpenReadOnly. When I<br>
> tried the command: virsh list --all, it is also stuck. So could anyone tell<br>
> me what's wrong with this?<br>
<br>
</div>It may be easier to use a pre-built version from your distro, as that<br>
will eliminate the possibility of user error in building your package<br>
until you are more familiar with using libvirt.  Beyond that, you didn't<br>
give us much to go on - it is not obvious whether libvirtd is running,<br>
or whether you ran 'virsh' as root or as a normal user, or even what is<br>
in the log files, so it could be a number of problems.<br>
<br>
Does this page help? <a href="http://wiki.libvirt.org/page/Troubleshooting" target="_blank">http://wiki.libvirt.org/page/Troubleshooting</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Tianwei Zhang<div>Department of Electrical Engineering</div><div>Princeton University</div><div>NJ, USA</div>
</div>