<span id="internal-source-marker_0.39945655362680554"><h4 dir="ltr"><font color="#666666" face="'Courier New'"><span style="font-size:15px;font-weight:normal;white-space:pre-wrap"><i>Hi Andi</i></span></font></h4><div>
<font color="#666666" face="'Courier New'"><span style="font-size:15px;white-space:pre-wrap"><i>Here is an extract from an installation guide for Essex which describes a bit different approach to the problem solution rather than command line customization:</i></span></font></div>
<h4 dir="ltr" style="font-family:'Times New Roman';font-size:medium;font-weight:bold"><span style="font-size:15px;font-family:'Courier New';color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">When running Nova within a vmWare/VirtualBox/etc</span></h4>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">The default libvirt-bin provided by the official Ubuntu repository (ver. </span><span style="font-size:13px;font-family:'Courier New';font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">0.9.8-2ubuntu17</span><span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">) has a problem with pure software virtualization fallback which doesn’t allow it to run instances within a virtualized machine. However this problem is fixed in the latest version of libvirt which can be installed from the PPA with the following commands</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><br><span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap"># apt-get install python-software-properties</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap"># add-apt-repository ppa:ubuntu-virt/ppa</span><br><span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap"># apt-get update && apt-get upgrade</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><br><span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">The packages proved to be working have the following versions</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">qemu-common                  <span class="Apple-tab-span" style="white-space:pre">     </span>1.0+noroms-20120330-0ubuntu3</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">qemu-kvm                     <span class="Apple-tab-span" style="white-space:pre">     </span>1.0+noroms-0ubuntu13</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">qemu-utils                   <span class="Apple-tab-span" style="white-space:pre">     </span>1.0+noroms-20120330-0ubuntu3</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">libvirt-bin                  <span class="Apple-tab-span" style="white-space:pre">     </span>0.9.9-3ubuntu1~ppa1</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">libvirt0                     <span class="Apple-tab-span" style="white-space:pre">     </span>0.9.9-3ubuntu1~ppa1</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><br><span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Also make sure you have the following line in /etc/nova/nova-compute.conf</span><br>
<span style="font-size:13px;font-family:'Courier New';font-weight:normal;vertical-align:baseline;white-space:pre-wrap">--libvirt_type=qemu</span></span><div><font face="'Courier New'"><span style="white-space:pre-wrap"><br>
</span></font></div><div><font face="'Courier New'"><span style="white-space:pre-wrap">You can also try running /usr/bin/qemu-system-x86_64 manually, this might help to troubleshoot the problem. This binary might have some dependencies missing when being improperly packaged.</span></font></div>
<div><font face="'Courier New'"><span style="white-space:pre-wrap"><br></span></font></div><div><font face="'Courier New'"><span style="white-space:pre-wrap">Hope this helps.<br></span></font><br><div class="gmail_quote">
On Mon, Aug 27, 2012 at 11:42 PM, andi abes <span dir="ltr"><<a href="mailto:andi.abes@gmail.com" target="_blank">andi.abes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---------- Forwarded message ----------<br>
From: andi abes <<a href="mailto:andi.abes@gmail.com">andi.abes@gmail.com</a>><br>
Date: Mon, Aug 27, 2012 at 1:54 PM<br>
Subject: nova-compute on VirtualBox with qemu<br>
To: <a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a><br>
<br>
<br>
I'm using Essex on virtual box, and am having some issues getting<br>
nova-compute to not hate me that much.<br>
The error I'm getting is: libvir: QEMU error : internal error Cannot<br>
find suitable emulator for x86_64<br>
Running the same steps as in [1] seems to reproduce the same behavior.<br>
<br>
The VB guest is 12.04.<br>
<br>
nova-compute.conf has:<br>
[DEFAULT]<br>
libvirt_type=qemu<br>
<br>
I guess my question is - where do i supply libvirt / nova the magical<br>
'disable accel' flags? (i.e. '-machine accel=kvm:tcg', which seem to<br>
make qemu happy).<br>
<br>
<br>
TIA,<br>
a.<br>
<br>
<br>
[1] <a href="https://lists.fedoraproject.org/pipermail/virt/2012-July/003358.html" target="_blank">https://lists.fedoraproject.org/pipermail/virt/2012-July/003358.html</a><br>
<br>
<br>
<br>
(adding openstack, and some more details)<br>
<br>
Versions:<br>
qemu-system-x86_64 --version<br>
QEMU emulator version 1.0.50 (qemu-kvm-devel), Copyright (c) 2003-2008<br>
Fabrice Bellard<br>
<br>
libvirtd --version<br>
libvirtd (libvirt) 0.9.9<br>
<br>
tia,<br>
a<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>