<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">You can search nested kvm on the web to
      get more info, or you can try just use qemu not kvm on 2nd level.<br>
      <br>
      On 2014年08月06日 11:32, Chen CH Ji wrote:<br>
    </div>
    <blockquote
cite="mid:OF21B67019.CC12A48B-ON48257D2C.00132242-48257D2C.0013C75A@cn.ibm.com"
      type="cite">
      <p><font face="sans-serif" size="2">Thanks a lot for your
          suggestions , I guess it might be 2nd level configuration
          issue ... will take more time on it , thanks</font><br>
        <br>
        <br>
        <font face="sans-serif" size="2">my 1st level host has following
          output when 'virsh capabilities'</font><br>
        <br>
        <font face="sans-serif" size="2"><host></font><br>
        <font face="sans-serif" size="2">   
          <uuid>c476d525-bba7-e211-98a9-9cd4d92d1300</uuid></font><br>
        <font face="sans-serif" size="2">    <cpu></font><br>
        <font face="sans-serif" size="2">     
          <arch>x86_64</arch></font><br>
        <font face="sans-serif" size="2">     
          <model>SandyBridge</model></font><br>
        <font face="sans-serif" size="2">     
          <vendor>Intel</vendor></font><br>
        <font face="sans-serif" size="2">      <topology sockets='1'
          cores='4' threads='1'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='erms'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='smep'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='fsgsbase'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='rdrand'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='f16c'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='osxsave'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='pcid'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='pdcm'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='xtpr'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='tm2'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='est'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='smx'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='vmx'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='ds_cpl'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='monitor'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='dtes64'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='pbe'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='tm'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='ht'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='ss'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='acpi'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='ds'/></font><br>
        <font face="sans-serif" size="2">      <feature
          name='vme'/></font><br>
        <font face="sans-serif" size="2">    </cpu></font><br>
        <br>
        <font face="sans-serif" size="2">while the output on 2nd level
          is </font><br>
        <br>
        <font face="sans-serif" size="2"><host></font><br>
        <font face="sans-serif" size="2">   
          <uuid>a1bb0066-80d2-f9db-aa4e-0520a0562875</uuid></font><br>
        <font face="sans-serif" size="2">    <cpu></font><br>
        <font face="sans-serif" size="2">     
          <arch>x86_64</arch></font><br>
        <font face="sans-serif" size="2">      <topology sockets='1'
          cores='1' threads='1'/></font><br>
        <font face="sans-serif" size="2">    </cpu></font><br>
        <br>
        <br>
        <br>
        <br>
        <font face="sans-serif" size="2">Best Regards! <br>
          <br>
          Kevin (Chen) Ji 纪 晨<br>
          <br>
          Engineer, zVM Development, CSTL<br>
          Notes: Chen CH Ji/China/IBM@IBMCN   Internet:
          <a class="moz-txt-link-abbreviated" href="mailto:jichenjc@cn.ibm.com">jichenjc@cn.ibm.com</a><br>
          Phone: +86-10-82454158<br>
          Address: 3/F Ring Building, ZhongGuanCun Software Park,
          Haidian District, Beijing 100193, PRC </font><br>
        <br>
        <img src="cid:part1.04060409.02060909@linux.vnet.ibm.com"
          alt="Inactive hide details for Rafael Folco ---08/06/2014
          02:11:26 AM---cat /proc/cpuinfo Make sure the cpu model and
          version is lis" border="0" height="16" width="16"><font
          color="#424282" face="sans-serif" size="2">Rafael Folco
          ---08/06/2014 02:11:26 AM---cat /proc/cpuinfo Make sure the
          cpu model and version is listed on</font><br>
        <br>
        <font color="#5F5F5F" face="sans-serif" size="1">From: </font><font
          face="sans-serif" size="1">Rafael Folco
          <a class="moz-txt-link-rfc2396E" href="mailto:rafaelfolco@gmail.com"><rafaelfolco@gmail.com></a></font><br>
        <font color="#5F5F5F" face="sans-serif" size="1">To: </font><font
          face="sans-serif" size="1">"OpenStack Development Mailing List
          (not for usage questions)"
          <a class="moz-txt-link-rfc2396E" href="mailto:openstack-dev@lists.openstack.org"><openstack-dev@lists.openstack.org></a>, </font><br>
        <font color="#5F5F5F" face="sans-serif" size="1">Date: </font><font
          face="sans-serif" size="1">08/06/2014 02:11 AM</font><br>
        <font color="#5F5F5F" face="sans-serif" size="1">Subject: </font><font
          face="sans-serif" size="1">Re: [openstack-dev] [nova]
          libvirtError: XML error: Missing CPU model name on 2nd level
          vm</font><br>
      </p>
      <hr style="color:#8091A5; " align="left" noshade="noshade"
        size="2" width="100%"><br>
      <br>
      <br>
      <font face="serif" size="3">cat /proc/cpuinfo<br>
        Make sure the cpu model and version is listed on
        /usr/share/libvirt/cpu_map.xml<br>
      </font><br>
      <font face="serif" size="3">Hope this helps.</font><br>
      <font face="serif" size="3"><br>
      </font><br>
      <font face="serif" size="3"><br>
      </font><br>
      <font face="serif" size="3">On Tue, Aug 5, 2014 at 2:49 PM, Solly
        Ross <</font><a moz-do-not-send="true"
        href="mailto:sross@redhat.com" target="_blank"><font
          color="#0000FF" face="serif" size="3"><u>sross@redhat.com</u></font></a><font
        face="serif" size="3">> wrote:</font>
      <ul style="padding-left: 9pt">
        <font face="serif" size="3">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</font><br>
        <font face="serif" size="3"><br>
          ----- Original Message -----<br>
          > From: "Chen CH Ji" <</font><a moz-do-not-send="true"
          href="mailto:jichenjc@cn.ibm.com"><font color="#0000FF"
            face="serif" size="3"><u>jichenjc@cn.ibm.com</u></font></a><font
          face="serif" size="3">><br>
          > To: </font><a moz-do-not-send="true"
          href="mailto:openstack-dev@lists.openstack.org"><font
            color="#0000FF" face="serif" size="3"><u>openstack-dev@lists.openstack.org</u></font></a><font
          face="serif" size="3"><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: </font><a
          moz-do-not-send="true" href="mailto:jichenjc@cn.ibm.com"><font
            color="#0000FF" face="serif" size="3"><u>jichenjc@cn.ibm.com</u></font></a><font
          face="serif" size="3"><br>
          > Phone: </font><a moz-do-not-send="true"
          href="tel:%2B86-10-82454158"><font color="#0000FF"
            face="serif" size="3"><u>+86-10-82454158</u></font></a><font
          face="serif" size="3"><br>
          > Address: 3/F Ring Building, ZhongGuanCun Software Park,
          Haidian District,<br>
          > Beijing 100193, PRC<br>
          ></font><br>
        <font face="serif" size="3">>
          _______________________________________________<br>
          > OpenStack-dev mailing list<br>
          > </font><a moz-do-not-send="true"
          href="mailto:OpenStack-dev@lists.openstack.org"><font
            color="#0000FF" face="serif" size="3"><u>OpenStack-dev@lists.openstack.org</u></font></a><font
          face="serif" size="3"><br>
          > </font><a moz-do-not-send="true"
          href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"
          target="_blank"><font color="#0000FF" face="serif" size="3"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><font
          face="serif" size="3"><br>
          ><br>
          <br>
          _______________________________________________<br>
          OpenStack-dev mailing list</font><font color="#0000FF"
          face="serif" size="3"><u><br>
          </u></font><a moz-do-not-send="true"
          href="mailto:OpenStack-dev@lists.openstack.org"><font
            color="#0000FF" face="serif" size="3"><u>OpenStack-dev@lists.openstack.org</u></font></a><font
          color="#0000FF" face="serif" size="3"><u><br>
          </u></font><a moz-do-not-send="true"
          href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"
          target="_blank"><font color="#0000FF" face="serif" size="3"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a>
      </ul>
      <tt><font size="2">_______________________________________________<br>
          OpenStack-dev mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
        </font></tt><tt><font size="2"><a moz-do-not-send="true"
            href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font
          size="2"><br>
        </font></tt><br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>