<div dir="ltr"><div>cat /proc/cpuinfo<br>Make sure the cpu model and version is listed on /usr/share/libvirt/cpu_map.xml<br><br><div>Hope this helps.<br></div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Aug 5, 2014 at 2:49 PM, Solly Ross <span dir="ltr"><<a href="mailto:sross@redhat.com" target="_blank">sross@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Kevin,<br>
Running devstack in a VM is perfectly doable. Many developers use<br>
devstack inside a VM (I run mine inside a VM launched using libvirt<br>
on KVM). I can't comment on the issue that you're encountering,<br>
but perhaps something wasn't configured correctly when you launched the<br>
VM?<br>
<br>
Best Regards,<br>
Solly Ross<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> From: "Chen CH Ji" <<a href="mailto:jichenjc@cn.ibm.com">jichenjc@cn.ibm.com</a>><br>
> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
> Sent: Friday, August 1, 2014 5:04:16 AM<br>
> Subject: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm<br>
><br>
><br>
><br>
> Hi<br>
> I don't have a real PC to so created a test env ,so I created a 2nd level env<br>
> (create a kvm virtual machine on top of a physical host then run devstack o<br>
> the vm)<br>
> I am not sure whether it's doable because I saw following error when start<br>
> nova-compute service , is it a bug or I need to update my configuration<br>
> instead? thanks<br>
><br>
><br>
> 2014-08-01 17:04:51.532 DEBUG nova.virt.libvirt.config [-] Generated XML<br>
> ('<cpu>\n <arch>x86_64</arch>\n <topology sockets="1" cores="1"<br>
> threads="1"/>\n</cpu>\n',) from (pid=16956) to_xml<br>
> /opt/stack/nova/nova/virt/libvirt/config.py:79<br>
> Traceback (most recent call last):<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 346, in<br>
> fire_timers<br>
> timer()<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 56, in<br>
> __call__<br>
> cb(*args, **kw)<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 163, in<br>
> _do_send<br>
> waiter.switch(result)<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in<br>
> main<br>
> result = function(*args, **kwargs)<br>
> File "/opt/stack/nova/nova/openstack/common/service.py", line 490, in<br>
> run_service<br>
> service.start()<br>
> File "/opt/stack/nova/nova/service.py", line 164, in start<br>
> self.manager.init_host()<br>
> File "/opt/stack/nova/nova/compute/manager.py", line 1055, in init_host<br>
> self.driver.init_host(host=self.host)<br>
> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 633, in init_host<br>
> self._do_quality_warnings()<br>
> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 616, in<br>
> _do_quality_warnings<br>
> caps = self._get_host_capabilities()<br>
> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2942, in<br>
> _get_host_capabilities<br>
> libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit<br>
> result = proxy_call(self._autowrap, f, *args, **kwargs)<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in<br>
> proxy_call<br>
> rv = execute(f,*args,**kwargs)<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in<br>
> tworker<br>
> rv = meth(*args,**kwargs)<br>
> File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3127, in baselineCPU<br>
> if ret is None: raise libvirtError ('virConnectBaselineCPU() failed',<br>
> conn=self)<br>
> libvirtError: XML error: Missing CPU model name<br>
><br>
> Best Regards!<br>
><br>
> Kevin (Chen) Ji 纪 晨<br>
><br>
> Engineer, zVM Development, CSTL<br>
> Notes: Chen CH Ji/China/IBM@IBMCN Internet: <a href="mailto:jichenjc@cn.ibm.com">jichenjc@cn.ibm.com</a><br>
> Phone: <a href="tel:%2B86-10-82454158" value="+861082454158">+86-10-82454158</a><br>
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,<br>
> Beijing 100193, PRC<br>
><br>
</div></div>> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>