Ask Your Question
3

Instance Error, caused by libvirtError: internal error no supported architecture for os type 'hvm ?? [closed]

asked 2013-11-22 18:03:06 -0500

samky2005 gravatar image

updated 2013-11-22 18:09:43 -0500

sgordon gravatar image

Hello

Following the documentation to install on CentOS64, I never got to the instance Active. Not sure what I'm doing wrong. I'm running controller and compute node on a single CentOS64(VM). Please shed some light. Whatelse to look for to fix this??

$ more /var/log/nova/scheduler.log 
2013-11-21 16:05:55.977 6905 WARNING nova.openstack.common.loopingcall [-] task run outlasted interval by 9.294922 sec
2013-11-21 16:28:49.589 6905 ERROR nova.scheduler.filter_scheduler [req-759a9e37-133b-4935-8ec1-83ffa8053498 b68eb1df2d4f48a1b099b05a7386ebe9 00
f43b8a5b204c45903f03b401401d44] [instance: 6fbd6fd9-852c-4273-8dbb-4d65a5da29cc] Error from last host: controller (node controller): [u'Tracebac
k (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1037, in _build_instance\n    set_acces
s_ip=set_access_ip)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1410, in _spawn\n    LOG.exception(_(\'Instanc
e failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1407, in _spawn\n    bloc
k_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2070, in spawn\n    block_device_info, context=
context)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3205, in _create_domain_and_network\n    domain = sel
f._create_domain(xml, instance=instance, power_on=power_on)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 31
39, in _create_domain\n    raise e\n', u"libvirtError: internal error no supported architecture for os type 'hvm'\n"]
2013-11-21 16:28:49.649 6905 WARNING nova.scheduler.driver [req-759a9e37-133b-4935-8ec1-83ffa8053498 b68eb1df2d4f48a1b099b05a7386ebe9 00f43b8a5b
204c45903f03b401401d44] [instance: 6fbd6fd9-852c-4273-8dbb-4d65a5da29cc] Setting instance to ERROR state.

[root@controller .ssh]# nova show 6fbd6fd9-852c-4273-8dbb-4d65a5da29cc
+--------------------------------------+-----------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                         |
+--------------------------------------+-----------------------------------------------------------------------------------------------+
| status                               | ERROR                                                                                         |
| updated                              | 2013-11-22T00:28:49Z                                                                          |
| OS-EXT-STS:task_state                | None                                                                                          |
| OS-EXT-SRV-ATTR:host                 | controller                                                                                    |
| key_name                             | mykey                                                                                         |
| image                                | CirrOS 0.3.1 (af54e4b2-746a-4a07-ad96-5347fde43961)                                           |
| hostId                               | 397482846b28a9f27f67a93614f42a07c349fdc2cba5290c0049d261                                      |
| OS-EXT-STS:vm_state                  | error                                                                                         |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000001                                                                             |
| OS-SRV-USG:launched_at               | None                                                                                          |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | controller                                                                                    |
| flavor                               | m1.tiny (1)                                                                                   |
| id                                   | 6fbd6fd9-852c-4273-8dbb-4d65a5da29cc                                                          |
| security_groups                      | [{u'name': u'default'}]                                                                       |
| OS-SRV-USG:terminated_at             | None                                                                                          |
| user_id                              | b68eb1df2d4f48a1b099b05a7386ebe9                                                              |
| name                                 | cirrOS                                                                                        |
| created                              | 2013-11-22T00:27:07Z                                                                          |
| tenant_id                            | 00f43b8a5b204c45903f03b401401d44                                                              |
| OS-DCF:diskConfig                    | MANUAL                                                                                        |
| metadata                             | {}                                                                                            |
| os-extended-volumes:volumes_attached | []                                                                                            |
| accessIPv4                           |                                                                                               |
| accessIPv6                           |                                                                                               |
| fault                                | {u'message': u'No valid host was found. ', u'code': 500, u'created': u'2013-11-22T00:28:49Z'} |
| OS-EXT-STS:power_state               | 0                                                                                             |
| OS-EXT-AZ:availability_zone          | nova                                                                                          |
| config_drive                         |                                                                                               |
+--------------------------------------+-----------------------------------------------------------------------------------------------+

Thanks,

samky2005

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by laboshinl
close date 2013-11-23 08:26:27.977269

Comments

met this error when i put virt_type=qemu in nova.conf instead of in nova-compute.conf

whg gravatar imagewhg ( 2015-06-14 19:50:26 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
7

answered 2013-11-22 18:09:03 -0500

sgordon gravatar image

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.

edit flag offensive delete link more

Comments

This should fix the issue. I think it is good to close this question.

dheeru gravatar imagedheeru ( 2013-11-22 20:44:55 -0500 )edit

It was /etc/nova/nova-compute.conf in my case.

stzoannos gravatar imagestzoannos ( 2014-04-08 07:07:14 -0500 )edit

i wasted one day for this... now my problem was cleared

rajcoumar gravatar imagerajcoumar ( 2014-05-07 05:05:15 -0500 )edit

This affect me as well. But I don't seem to understand why this happens even when I'm running it directly on a Linux machine which supports virtualization. I ran this according to the install guide and it returns 4.

$ egrep -c '(vmx|svm)' /proc/cpuinfo

So I still do not know why this happens to me when I try to use KVM.

Kashyap Kopparam gravatar imageKashyap Kopparam ( 2014-07-15 01:26:08 -0500 )edit
1

@kashyapk I had the same issue. I checked /var/log/messages and found VT-x was disabled in BIOS. So I enabled VT-x in BIOS, and the issue was gone.

RainFlying gravatar imageRainFlying ( 2014-08-19 21:01:28 -0500 )edit

i met this error when i put virt_type=qemu in nova.conf instead of in nova-compute.conf

whg gravatar imagewhg ( 2015-06-14 19:49:53 -0500 )edit
0

answered 2013-11-23 01:09:57 -0500

samky2005 gravatar image

Hi sgordon and dheeru.

Thank you very much ! That made my day.

samky2005

edit flag offensive delete link more

Comments

For Juno Installation over Cent OS 7 I was facing similar problem. This has been resolved by enabling visualization support from system BIOS configuration. As o/p of command "egrep -c '(vmx|svm)' /proc/cpuinfo" is > 0 it means KVMs are available.

Rajeshwar Mukund gravatar imageRajeshwar Mukund ( 2015-02-06 04:05:06 -0500 )edit

Note: With visualization disable on same server cloud instance was launched successfully.

Rajeshwar Mukund gravatar imageRajeshwar Mukund ( 2015-02-06 04:05:56 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

4 followers

Stats

Asked: 2013-11-22 18:03:06 -0500

Seen: 11,962 times

Last updated: Nov 23 '13