在openstack上安装centos 出现的问题scheduler. 虚机内嵌套

openstack版本(k?i?大软件版本是3.6.1)openstack跑在esxi的虚机上。

centos: CentOS-6-x86_64-GenericCloud.qcow2.xz

vi /var/log/nova/nova-scheduler.log

2016-01-13 11:52:24.532 1893 WARNING nova.scheduler.driver [req-9a36cb28-8100-460f-b247-b4685be1adc5 81a4483303e84ec8b5f1de91472a6399 6a61ed0a13044b25b970449eea77a5d3] [instance: 5526bb73-0fed-4510-87a3-d272d135eb33] Setting instance to ERROR state.

2016-01-13 11:52:40.028 1893 INFO nova.scheduler.filter_scheduler [req-9a36cb28-8100-460f-b247-b4685be1adc5 81a4483303e84ec8b5f1de91472a6399 6a61ed0a13044b25b970449eea77a5d3] Attempting to build 1 instance(s) uuids: [u'7447ef5f-ffd5-4861-a72e-51947cbe8622']
2016-01-13 11:52:40.029 1893 ERROR nova.scheduler.filter_scheduler [req-9a36cb28-8100-460f-b247-b4685be1adc5 81a4483303e84ec8b5f1de91472a6399 6a61ed0a13044b25b970449eea77a5d3] [instance: 7447ef5f-ffd5-4861-a72e-51947cbe8622] Error from last host: node1 (node node1): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1331, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 396, in decorated_function\n    return function(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1743, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1740, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2297, in spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3721, in _create_domain_and_network\n    power_on=power_on)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3613, in _create_domain\n    raise e\n', u"libvirtError: internal error: no supported architecture for os type 'hvm'\n"]
2016-01-13 11:52:40.033 1893 WARNING nova.scheduler.host_manager [req-9a36cb28-8100-460f-b247-b4685be1adc5 81a4483303e84ec8b5f1de91472a6399 6a61ed0a13044b25b970449eea77a5d3] Host has more disk space than database expected (30gb > -42gb)
2016-01-13 11:52:40.034 1893 INFO nova.filters [req-9a36cb28-8100-460f-b247-b4685be1adc5 81a4483303e84ec8b5f1de91472a6399 6a61ed0a13044b25b970449eea77a5d3] Filter RetryFilter returned 0 hosts

2016-01-13 11:52:40.035 1893 WARNING nova.scheduler.driver [req-9a36cb28-8100-460f-b247-b4685be1adc5 81a4483303e84ec8b5f1de91472a6399 6a61ed0a13044b25b970449eea77a5d3] [instance: 7447ef5f-ffd5-4861-a72e-51947cbe8622] Setting instance to ERROR state.


错误显示是不支持hvm格式。这个怎么是hvm格式?


根据下面的提示,发现我确实是把openstack跑在虚机上,然后嵌套又跑虚机。对于vmware来说,需要用vcenter开启openstack所在虚机的虚拟化。

ubuntu openstack处的修改是修改计算节点的nova-compute.conf


参考

https://ask.openstack.org/en/question/7519/instance-error-caused-by-libvirterror-internal-error-no-supported-architecture-for-os-type-hvm/

原文

As you are running OpenStack within a virtual machine you need to set this in /etc/nova/nova.conf on your compute host(s) to use QEMU:

libvirt_type=qemu

Currently the compute host is trying to use KVM but the virtualization extensions KVM requires are not available, because you are running in a virtual machine and nested virtualization is not enabled/available.




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值