<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 03/22/2012 05:40 AM, Shawn Davis wrote:
<blockquote
cite="mid:CA+_nOodz5JBHvbnpPtNaedrmmYbpgGL7QoLcc5=uFvXsXTg-uA@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Wed, Mar 21, 2012 at 4:03 PM, Eric
Blake <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:eblake@redhat.com">eblake@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div class="im">On 03/21/2012 02:58 PM, Shawn Davis wrote:<br>
<br>
>> Older libvirt had a bug where it wouldn't parse
qemu 1.0 version (the<br>
>> change from 3 digits to 2 confused the older
libvirt). If you're going<br>
>> to go with self-built qemu, you might also want to
try self-built<br>
>> libvirt 0.9.10.<br>
>><br>
>> --<br>
>> Eric Blake <a moz-do-not-send="true"
href="mailto:eblake@redhat.com">eblake@redhat.com</a> <a
moz-do-not-send="true" href="tel:%2B1-919-301-3266"
value="+19193013266">+1-919-301-3266</a><br>
>> Libvirt virtualization library <a
moz-do-not-send="true" href="http://libvirt.org"
target="_blank">http://libvirt.org</a><br>
>><br>
><br>
> I installed libvirt 0.9.10 from source and now virsh is
not finding the<br>
> following:<br>
><br>
> testa@testaT4:~$ virsh list<br>
> virsh: /usr/lib/libvirt-qemu.so.0: version
`LIBVIRT_QEMU_0.9.4' not found<br>
> (required by virsh)<br>
<br>
</div>
Ouch - you've now got version mismatch, where you didn't
completely<br>
uninstall the distro version, and your self-built version is
installed<br>
in locations that pick up the distro version. Did you use the
right<br>
configure flags?<br>
<div class="im"><br>
> I can't install qemu 1.0 and libvirt 0.9.10 through apt
right?<br>
<br>
</div>
Ah, apt - are you on debian or ubuntu? I don't know as much
about the<br>
versions that those distros are using (I'm personally using
Fedora 16,<br>
along with the fedora-virt-preview repo, which gives 0.9.10
pre-built).<br>
<div class="im"><br>
> I assume I<br>
> had to get them from source. Anyways, please let me
know how I can get<br>
> virsh to see that I have 0.9.10. Once I get this
working and can run that<br>
> monitor command I will be in good shape.<br>
<br>
</div>
There might be someone already shipping a pre-built 0.9.10
apt, but I<br>
wouldn't know where to tell you to look, so building from
source is the<br>
other alternative. If you build from libvirt.git, you can use<br>
'./autobuild.sh --system' to help set the ./configure options
that match<br>
with the typical installation directories for at least Fedora,
but<br>
again, I don't know how that fares with the debian
installation layout<br>
(and patches are welcome to autobuild.sh for anyone that wants
to use it<br>
on a debian layout).<br>
<div class="HOEnZb">
<div class="h5"><br>
--<br>
Eric Blake <a moz-do-not-send="true"
href="mailto:eblake@redhat.com">eblake@redhat.com</a>
<a moz-do-not-send="true" href="tel:%2B1-919-301-3266"
value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a moz-do-not-send="true"
href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<br>
Yeah, I am using Ubuntu 11.10. I was able to uninstall the old
libvirt and virsh works again but still getting this when trying
to start the vm:<br>
<br>
testa@testaT4:~$ virsh list<br>
Id Name State<br>
----------------------------------------------------<br>
<br>
testa@testaT4:~$ virsh version<br>
Compiled against library: libvir 0.9.10<br>
Using library: libvir 0.9.10<br>
Using API: QEMU 0.9.10<br>
error: failed to get the hypervisor version<br>
error: internal error Cannot find suitable emulator for x86_64<br>
<br>
testa@testaT4:~$ virsh -c qemu:///system start Shawn<br>
error: Failed to connect socket to
'/usr/local/var/run/libvirt/libvirt-sock': No such file or
directory<br>
</blockquote>
<br>
I guess you're using a old virsh with new libvirt, you may check
your virsh command location,<br>
if `which virsh` says '/usr/bin/virsh' and `which libvirtd` says
/usr/sbin/libvirtd, and socket is <br>
/var/run/libvirt/libvirt-sock not above socket path, it's right.<br>
<br>
It probably your virsh command path is /usr/local/bin/virsh, and
your socket path is <br>
/var/run/libvirt/libvirt-sock now, if so, you may explicitly specify
/usr/bin/virsh or clean up<br>
your dirty environment then directly run virsh instead of a absolute
path.<br>
<br>
Good Luck!<br>
Alex<br>
<blockquote
cite="mid:CA+_nOodz5JBHvbnpPtNaedrmmYbpgGL7QoLcc5=uFvXsXTg-uA@mail.gmail.com"
type="cite">
error: failed to connect to the hypervisor<br>
testa@testaT4:~$ <br>
<br>
Thanks again for helping me out!<br>
<br>
<br>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
</blockquote>
<br>
</body>
</html>