[openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm
Alex Xu
xuhj at linux.vnet.ibm.com
Wed Aug 6 04:08:32 UTC 2014
You can search nested kvm on the web to get more info, or you can try
just use qemu not kvm on 2nd level.
On 2014?08?06? 11:32, Chen CH Ji wrote:
>
> Thanks a lot for your suggestions , I guess it might be 2nd level
> configuration issue ... will take more time on it , thanks
>
>
> my 1st level host has following output when 'virsh capabilities'
>
> <host>
> <uuid>c476d525-bba7-e211-98a9-9cd4d92d1300</uuid>
> <cpu>
> <arch>x86_64</arch>
> <model>SandyBridge</model>
> <vendor>Intel</vendor>
> <topology sockets='1' cores='4' threads='1'/>
> <feature name='erms'/>
> <feature name='smep'/>
> <feature name='fsgsbase'/>
> <feature name='rdrand'/>
> <feature name='f16c'/>
> <feature name='osxsave'/>
> <feature name='pcid'/>
> <feature name='pdcm'/>
> <feature name='xtpr'/>
> <feature name='tm2'/>
> <feature name='est'/>
> <feature name='smx'/>
> <feature name='vmx'/>
> <feature name='ds_cpl'/>
> <feature name='monitor'/>
> <feature name='dtes64'/>
> <feature name='pbe'/>
> <feature name='tm'/>
> <feature name='ht'/>
> <feature name='ss'/>
> <feature name='acpi'/>
> <feature name='ds'/>
> <feature name='vme'/>
> </cpu>
>
> while the output on 2nd level is
>
> <host>
> <uuid>a1bb0066-80d2-f9db-aa4e-0520a0562875</uuid>
> <cpu>
> <arch>x86_64</arch>
> <topology sockets='1' cores='1' threads='1'/>
> </cpu>
>
>
>
>
> Best Regards!
>
> Kevin (Chen) Ji ? ?
>
> Engineer, zVM Development, CSTL
> Notes: Chen CH Ji/China/IBM at IBMCN Internet: jichenjc at cn.ibm.com
> Phone: +86-10-82454158
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian
> District, Beijing 100193, PRC
>
> Inactive hide details for Rafael Folco ---08/06/2014 02:11:26 AM---cat
> /proc/cpuinfo Make sure the cpu model and version is lisRafael Folco
> ---08/06/2014 02:11:26 AM---cat /proc/cpuinfo Make sure the cpu model
> and version is listed on
>
> From: Rafael Folco <rafaelfolco at gmail.com>
> To: "OpenStack Development Mailing List (not for usage questions)"
> <openstack-dev at lists.openstack.org>,
> Date: 08/06/2014 02:11 AM
> Subject: Re: [openstack-dev] [nova] libvirtError: XML error: Missing
> CPU model name on 2nd level vm
>
> ------------------------------------------------------------------------
>
>
>
> cat /proc/cpuinfo
> Make sure the cpu model and version is listed on
> /usr/share/libvirt/cpu_map.xml
>
> Hope this helps.
>
>
>
>
> On Tue, Aug 5, 2014 at 2:49 PM, Solly Ross <_sross at redhat.com_
> <mailto:sross at redhat.com>> wrote:
>
> Hi Kevin,
> Running devstack in a VM is perfectly doable. Many developers use
> devstack inside a VM (I run mine inside a VM launched using libvirt
> on KVM). I can't comment on the issue that you're encountering,
> but perhaps something wasn't configured correctly when you
> launched the
> VM?
>
> Best Regards,
> Solly Ross
>
> ----- Original Message -----
> > From: "Chen CH Ji" <_jichenjc at cn.ibm.com_
> <mailto:jichenjc at cn.ibm.com>>
> > To: _openstack-dev at lists.openstack.org_
> <mailto:openstack-dev at lists.openstack.org>
> > Sent: Friday, August 1, 2014 5:04:16 AM
> > Subject: [openstack-dev] [nova] libvirtError: XML error: Missing
> CPU model name on 2nd level vm
> >
> >
> >
> > Hi
> > I don't have a real PC to so created a test env ,so I created a
> 2nd level env
> > (create a kvm virtual machine on top of a physical host then run
> devstack o
> > the vm)
> > I am not sure whether it's doable because I saw following error
> when start
> > nova-compute service , is it a bug or I need to update my
> configuration
> > instead? thanks
> >
> >
> > 2014-08-01 17:04:51.532 DEBUG nova.virt.libvirt.config [-]
> Generated XML
> > ('<cpu>\n <arch>x86_64</arch>\n <topology sockets="1" cores="1"
> > threads="1"/>\n</cpu>\n',) from (pid=16956) to_xml
> > /opt/stack/nova/nova/virt/libvirt/config.py:79
> > Traceback (most recent call last):
> > File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py",
> line 346, in
> > fire_timers
> > timer()
> > File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py",
> line 56, in
> > __call__
> > cb(*args, **kw)
> > File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line
> 163, in
> > _do_send
> > waiter.switch(result)
> > File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py",
> line 194, in
> > main
> > result = function(*args, **kwargs)
> > File "/opt/stack/nova/nova/openstack/common/service.py", line
> 490, in
> > run_service
> > service.start()
> > File "/opt/stack/nova/nova/service.py", line 164, in start
> > self.manager.init_host()
> > File "/opt/stack/nova/nova/compute/manager.py", line 1055, in
> init_host
> > self.driver.init_host(host=self.host)
> > File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 633, in
> init_host
> > self._do_quality_warnings()
> > File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 616, in
> > _do_quality_warnings
> > caps = self._get_host_capabilities()
> > File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2942, in
> > _get_host_capabilities
> > libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)
> > File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line
> 179, in doit
> > result = proxy_call(self._autowrap, f, *args, **kwargs)
> > File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line
> 139, in
> > proxy_call
> > rv = execute(f,*args,**kwargs)
> > File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line
> 77, in
> > tworker
> > rv = meth(*args,**kwargs)
> > File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3127,
> in baselineCPU
> > if ret is None: raise libvirtError ('virConnectBaselineCPU()
> failed',
> > conn=self)
> > libvirtError: XML error: Missing CPU model name
> >
> > Best Regards!
> >
> > Kevin (Chen) Ji ? ?
> >
> > Engineer, zVM Development, CSTL
> > Notes: Chen CH Ji/China/IBM at IBMCN Internet:
> _jichenjc at cn.ibm.com_ <mailto:jichenjc at cn.ibm.com>
> > Phone: _+86-10-82454158_ <tel:%2B86-10-82454158>
> > Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian
> District,
> > Beijing 100193, PRC
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > _OpenStack-dev at lists.openstack.org_
> <mailto:OpenStack-dev at lists.openstack.org>
> > _http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev_
> >
>
> _______________________________________________
> OpenStack-dev mailing list_
> __OpenStack-dev at lists.openstack.org_
> <mailto:OpenStack-dev at lists.openstack.org>_
> __http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev_
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140806/10449c17/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140806/10449c17/attachment-0001.gif>
More information about the OpenStack-dev
mailing list