Friday, February 7, 2014

OpenStack Installtion notes


The problem 1: 

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

$ 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.

The solution 1:
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.

------------------------------------------------------------------------
The problem 2:

How do I install the qemu command?
I type qemu and press tab and I get a list of several binaries installed.
qemu-alpha
qemu-arm
...
qemu-x86_64
but no qemu.
I type man qemu and it returns the docs as if the command is already instaled.
I type qemu to run the command but it doesn't exist?
No command 'qemu' found, did you mean:
 Command 'qtemu' from package 'qtemu' (universe)
 Command 'aqemu' from package 'aqemu' (universe)
qemu: command not found
But after installing sudo apt-get install qtemu aqemu I still unable to run qemu.
I'm just attempting to run the following command qemu -localtime -net user -net nic -m 256 -cdrom minix.iso -hda minix.img -boot d, for a minix tutorial.
Any help would be appreciated.

The solution 2:
Just replace qemu with qemu-system-i386 or qemu-system-x86_64 as appropriate (whether you want a 32-bit or 64-bit system, and which ISO you're using).
You can also use aqemu, which is a graphical (GUI) front-end to qemu.

No comments:

Post a Comment