<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Alex Jia [mailto:ajia@redhat.com] <br><b>Sent:</b> Wednesday, March 21, 2012 9:52 PM<br><b>To:</b> Shawn Davis<br><b>Cc:</b> Eric Blake; libvirt-users@redhat.com<br><b>Subject:</b> Re: [libvirt-users] qemu-monitor-command<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 03/22/2012 05:40 AM, Shawn Davis wrote: <o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Mar 21, 2012 at 4:03 PM, Eric Blake <<a href="mailto:eblake@redhat.com">eblake@redhat.com</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>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 href="mailto:eblake@redhat.com">eblake@redhat.com</a>    <a href="tel:%2B1-919-301-3266">+1-919-301-3266</a><br>>> Libvirt virtualization library <a 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)<o:p></o:p></p></div><p class=MsoNormal>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?<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>> I can't install qemu 1.0 and libvirt 0.9.10 through apt right?<o:p></o:p></p></div><p class=MsoNormal>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).<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><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.<o:p></o:p></p></div><p class=MsoNormal>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).<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>--<br>Eric Blake   <a href="mailto:eblake@redhat.com">eblake@redhat.com</a>    <a href="tel:%2B1-919-301-3266">+1-919-301-3266</a><br>Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><o:p></o:p></p></div></div></div><p class=MsoNormal><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<o:p></o:p></p><p class=MsoNormal><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><br><o:p></o:p></p><p class=MsoNormal>error: failed to connect to the hypervisor<br>testa@testaT4:~$ <br><br>Thanks again for helping me out!<br><br><br><span style='color:#1F497D'>I ended up starting over and reinstalled Ubuntu 11.10.  I removed the exiting kvm and downloaded qemu-kvm-1.0.tar.gz and built it from source out of my Downloads directory.  I then did the same thing with libvirt 0.9.10.  Virsh works but still when I do the version it still says:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal>error: failed to get the hypervisor version<br>error: internal error Cannot find suitable emulator for x86_64<br><br><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I also can’t seem to start libvirtd and it is not located in /etc/init.d<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Sorry for the noob question but how do I configure and build qemu-kvm and libvirt so that they are all installed in the correct places?  Is there a specific flag I need to use or do I need to install them from a specific directory?  It looks like the files and being put all over the place.  Some are in /etc and some are in /usr/local/etc.  If I can get everything to install in the correct spots I should be good I would hope.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Shawn</span><br><br><br><o:p></o:p></p><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>libvirt-users mailing list<o:p></o:p></pre><pre><a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><o:p></o:p></pre><pre><a href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a><o:p></o:p></pre><p class=MsoNormal><o:p> </o:p></p></div></body></html>