← Back to team overview

openstack team mailing list archive

Re: HELP: create VM failure

 

Hi Sam,

did you check /etc/nova/nova-compute.conf ?
Ubuntu has this special configuration file in which the libvirt_type is set again, overriding what you set in nova.conf.
I didn't notice that on my first install of OpenStack on Ubuntu, causing instance spawning to fail.

Best regards,
Philipp Wollermann

Infrastructure Engineer
CyberAgent, Inc. (Tokyo)
https://github.com/philwo


On 2012/04/02, at 8:35, Sam Su wrote:

> Hi Leander,
> 
> Thank you for you response.
> 
> I have double checked the value of libvirt_type in nova.conf, it is kvm, not hvm. I search this problem in Google, it looks like a bug of libvirt before.
> https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/445253
> 
> I tried to change  libvirt_type=qemu and reboot system, nothing was changed.
> 
> Maybe this problem is because my Ubuntu server is installed in a VMWare VM. I am planning to re-install Openstack in a physical machine.
> 
> 
> Thanks,
> Sam
> 
> 
> On Sun, Apr 1, 2012 at 3:04 PM, Leander Bessa <leanderbb@xxxxxxxxx> wrote:
> 
> Maybe you specified --libvirt_type=hvm instead of --libvirt_type=kvm in your nova.conf file.
> 
> On Sun, Apr 1, 2012 at 8:44 PM, Sam Su <susltd.su@xxxxxxxxx> wrote:
> Hi, 
> 
> I am trying to deploy Openstack all-in-one environment (Nova, Glance, Keystone, Dashboard ) from scratch in an Ubuntu 12.04 server, After installed Nova,  I tried to create a VM with nova command but failed:
> 
> root@ubuntu:/etc/nova#  nova boot --flavor 1 --image 8e7f9978-86b2-4c75-a0a8-44b0bb2a46e2 --key_name key1 VM2
> +-------------------------------------+--------------------------------------+
> |               Property              |                Value                 |
> +-------------------------------------+--------------------------------------+
> | OS-DCF:diskConfig                   | MANUAL                               |
> | OS-EXT-SRV-ATTR:host                | ubuntu                               |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | None                                 |
> | OS-EXT-SRV-ATTR:instance_name       | instance-00000002                    |
> | OS-EXT-STS:power_state              | 0                                    |
> | OS-EXT-STS:task_state               | scheduling                           |
> | OS-EXT-STS:vm_state                 | building                             |
> | accessIPv4                          |                                      |
> | accessIPv6                          |                                      |
> | adminPass                           | Yj6mVrxaEiX6                         |
> | config_drive                        |                                      |
> | created                             | 2012-04-01T19:25:54Z                 |
> | flavor                              | m1.tiny                              |
> | hostId                              |                                      |
> | id                                  | c15be925-c4d8-4b76-b7c3-e94ebe513cf1 |
> | image                               | Ubuntu 11.10 cloudimg amd64          |
> | key_name                            | key1                                 |
> | metadata                            | {}                                   |
> | name                                | VM2                                  |
> | progress                            | 0                                    |
> | status                              | BUILD                                |
> | tenant_id                           | 2660dedf826c4510aff873c05d9d506b     |
> | updated                             | 2012-04-01T19:25:54Z                 |
> | user_id                             | b42c715d94384aa6a66c56df44ac69b2     |
> +-------------------------------------+--------------------------------------+
> root@ubuntu:/etc/nova# nova show VM2
> +-------------------------------------+----------------------------------------------------------------------------------+
> |               Property              |                                      Value                                       |
> +-------------------------------------+----------------------------------------------------------------------------------+
> | OS-DCF:diskConfig                   | MANUAL                                                                           |
> | OS-EXT-SRV-ATTR:host                | ubuntu                                                                           |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | None                                                                             |
> | OS-EXT-SRV-ATTR:instance_name       | instance-00000002                                                                |
> | OS-EXT-STS:power_state              | 0                                                                                |
> | OS-EXT-STS:task_state               | spawning                                                                         |
> | OS-EXT-STS:vm_state                 | error                                                                            |
> | accessIPv4                          |                                                                                  |
> | accessIPv6                          |                                                                                  |
> | config_drive                        |                                                                                  |
> | created                             | 2012-04-01T19:25:54Z                                                             |
> | fault                               | {u'message': u'libvirtError', u'code': 500, u'created': u'2012-04-01T19:25:57Z'} |
> | flavor                              | m1.tiny                                                                          |
> | hostId                              | 05c193a7baf099665d8bd6cb4964e738b424d7224a67603c49d62f4b                         |
> | id                                  | c15be925-c4d8-4b76-b7c3-e94ebe513cf1                                             |
> | image                               | Ubuntu 11.10 cloudimg amd64                                                      |
> | key_name                            | key1                                                                             |
> | metadata                            | {}                                                                               |
> | name                                | VM2                                                                              |
> | status                              | ERROR                                                                            |
> | tenant_id                           | 2660dedf826c4510aff873c05d9d506b                                                 |
> | updated                             | 2012-04-01T19:25:57Z                                                             |
> | user_id                             | b42c715d94384aa6a66c56df44ac69b2                                                 |
> +-------------------------------------+----------------------------------------------------------------------------------+
> 
> 
> From the result of the command Nova show VM2, I can see the fault as below:
> fault                               | {u'message': u'libvirtError', u'code': 500, u'created': u'2012-04-01T19:25:57Z'} |
> 
> 
> I tried to check nova log for more hints and get the following errors (nova-compute.log is a very long, so I attached the log file and nova.conf for reference).
> 
> nova-compute.log:(nova.compute.manager): TRACE: libvirtError: internal error no supported architecture for os type 'hvm'
> nova-compute.log:(nova.rpc.amqp): TRACE: libvirtError: internal error no supported architecture for os type 'hvm'
> 
> 
> Any hints or tips are appreciated.
> 
> Thanks,
> Sam
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



References