Ask Your Question

Can i install nova-compute in OpenStack Controller for managing VMware vSphere5.5

asked 2014-05-07 05:39:49 -0600

kamal gravatar image

updated 2014-05-14 02:33:50 -0600

a)I have a Open Stack Controller installed in one server and KVM compute nodes are installed on two physical servers. b)am able to manage the KVM nodes(create instance) from OpenStack Controller. c)Now am planning to integrate or manage VMware vSphere 5.5 environment with the existing OpenStack Controller

My Question: 1)i know we need to have a nova compute service and VCDriver to manage VMware vCenter 5.5, can i install the service (nova-compute) and (nova-compute-vmware) package on the openstack controller and then edit nova.conf for integrating vSphere 5.5 with Openstack controller? 2)Basically am asking this question to get clarified, whether i need to have separate server for installing a compute node and VCDrivers for managing vSphere 5.5 environment or can i install these components on openstack controller itself? (Note:am using OpenStack Havana version) am using nova-network for my network part Can anyone confirm whether they have succeeded in installing nova-compute and VCDriver in OpenStack Controller for integrating with VMware vSphere 5.5

Additional Queries for clarification:

Can you please provide me with a document or link on how did you integrated nova compute node with VMware vSphere 5.5 or vCenter server5.5

I will list the nova compute installation steps and integration steps (please correct the steps if it is wrong)

Installation of nova compute node for vmware integration on a separate server: Note: I will name the new nova compute node as "novavmware1" and the existing openstack controller is named as "controller"

1)Install all the prerequisites for nova compute server(novavmware1) as per the link

2)Install nova compute service using the command - "apt-get install nova-compute" on the nova compute server(novavmware1). please clarify whether can i ignore this command "apt-get install nova-compute-kvm python-guestfs" which ignores the installation "kvm and python-guestfs" Note: Please clarify python-suds or same as python-guestfs (because i read in an article that python-suds are required for VMwareapi)

3)I will ignoring "statoverride" because we are not installing KVM,please clarify, reference link

4)I will be editing nova.conf in nova compute server(novavmware1) as specified in the link based on my environment

5)Please clarify whether do i need to install nova-network using the command "apt-get install nova-network nova-api-metadata" on server nova compute server(novavmware1)

5)Install nova-compute-vmware package using the command "apt-get install nova-compute-vmware" on nova compute server(novavmware1) (this is the package which has the driver for VCenter) Please clarify whether the same package also has ESXi drivers or i need to download from else where.

6)I will be editing the nova.conf file with the details of VMware drivers and VMware server IP address on nova compute server(novavmware1). Please clarify whether the nova.conf file on the openstack controller(controller) also need to be edited with the VMware server IP address and VMware driver details? Reference link

7)Please clarify do i need to edit the nova-compute.conf file in nova compute server(novavmware1) with the ... (more)

edit retag flag offensive close merge delete


hai I am trying VMware integration with icehouse. I followed all the above steps. Really useful. Thanks for your question posted :-) . Now I'm facing problem that compute node is not listed in the hypervisor menu. Could you please share any document related to this setup ?

Vinoth gravatar imageVinoth ( 2014-09-10 05:35:39 -0600 )edit

which is the output of this command: nova-manage service list ?

Antonio G. gravatar imageAntonio G. ( 2014-09-10 05:39:58 -0600 )edit

nova-cert icehouse internal enabled :-) nova-consoleauth icehouse internal enabled :-) nova-scheduler icehouse internal enabled :-) nova-conductor icehouse internal enabled :-) nova-network vmwarecompute2 internal enable :-)

Vinoth gravatar imageVinoth ( 2014-09-10 06:31:16 -0600 )edit

I'm using vcenter 5.5, so skiped mirror WSDL part

Vinoth gravatar imageVinoth ( 2014-09-10 06:34:14 -0600 )edit

Found this errors in nova-compute log:

INFO nova.virt.driver [-] Loading compute driver 'vmwareapi.VMwareVCDriver' ERROR nova.virt.driver [-] Unable to load the virtualization driver TRACE nova.virt.driver ImportError: No module named vmwareapi

Vinoth gravatar imageVinoth ( 2014-09-10 06:51:29 -0600 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2014-05-07 06:00:43 -0600

I think you could install also in your controller node, although is a better choice (at least in my opinion) to have them separated. As you probably know if you are using Neutron as networking technology you must have a plugin (basically NSX) that could work with both hypervisors in your infrastructure (KVM and ESXi). The alternative to use both is to switch to nova-network.

edit flag offensive delete link more


I correctly installed Openstack havana with nova-network. I used both KVM and ESXi hosts.

I manage esxi host with VMwareESXdriver (not VCDriver), but I think the procedure is more or less the same. In my configuration I have a VM inside my ESXi host acting as nova-compute node, that connects to the ESXi host through the ESXi driver.

I think I could perfectly change that behavior installing nova-compute service on controller node, leaving the nova conf files unchanged at least for ESXi connection part.

Antonio G. gravatar imageAntonio G. ( 2014-05-07 10:13:00 -0600 )edit

Clarification answer:

1) Yes all prerequisites installed as a normal compute node

2) Yes, the right command is

apt-get install nova-compute

and you can ignore kvm related commands

3) Yes, can ignore that

4) Yes you must configure as your other KVM hosts

5) Yes, you must install those services on novavmware1

6) No, no nova.conf modification on controller (this answer is also for your last question!)

7) Yes, i modified nova.conf on novavmware1 adding info related to ESXi driver (your reference link is correct, is the one i followed)

8) Yes, you must mirror them: to be precise, download 'VMware vSphere Web Services SDK' from VMware and unzip it in /vmware-sdk on novavmware1, then referencing it in nova.conf file as wsdl_location=file:///vmware-sdk/SDK/vsphere-ws/wsdl/vim25/vimService.wsdl

9) To enable vnc on ESX-host, in vsphere-client go to host->Configuration->SecurityProfile->Firewall->Properties and enable ...(more)

Antonio G. gravatar imageAntonio G. ( 2014-05-08 02:31:24 -0600 )edit

More clarifications:

1) No need to install python-guestfs

2) Yes, or at least that is my configuration (i have metadata and nova-network services up and rnning in every host I have, either KVM or ESXi)

3) No need to install nova-compute-vmware

4) Yes, you need to create br100 port group and VM Network port group in networking section on VMware ESXi 5.5 servers that you are planning to manage

5) Download from the second item (VMware vSphere Web Services SDK, you must enter a valid [at least free] vmware account -> vSphere 5.0 Management SDK), then tranfer it to your novavmware1 machine and unzip it wherever you want, then reference the wsdl file in your nova.conf

This was my configuration experience, hope it works for you too.

Antonio G. gravatar imageAntonio G. ( 2014-05-08 07:52:26 -0600 )edit

About vmdk images:

My personal method to deploy vmdk images on ESXi host and qcow2 images on KVM ones is to add glance metadata this way

glance image-update --property vmware_ostype=windows7Server64Guest --property vmware_adaptertype="lsiLogicsas" --property vmware_disktype="preallocated" --property hypervisor_type="vmware" VMDK-IMAGE-ID

glance image-update --property hypervisor_type="kvm" QCOW2-IMAGE-ID

Of course the expected behavior after this change is to spawn VM from VMDK-IMAGE-ID only on vmware hosts. Hope this help!

Antonio G. gravatar imageAntonio G. ( 2014-05-09 02:46:45 -0600 )edit

Windows wmdk:

This was my glance command

glance image-create --name="W2008NEW" --disk-format=vmdk --container-format=bare --is-public=true --property vmware_disktype="preallocated" --property hypervisor_type="vmware" --property vmware_ostype=windows7Server64Guest --property vmware_adaptertype="lsiLogicsas" < W2008NEW-flat.vmdk

Are you sure about the value inserted in vmware_ostype? Try reading this and this.

I never encountered that problem, but I only deployed Windows 2008 VM.

Antonio G. gravatar imageAntonio G. ( 2014-05-12 01:54:00 -0600 )edit

answered 2014-09-15 23:47:01 -0600

Vinoth gravatar image

Hai, I am trying Vmware integration openstack in my lab. I have vcenter(5.5) environment ready in my lab environment. Then I started my icehouse setup following this document. For nova installation I used " apt-get install nova-compute-vmware" which install all vmware packages(including python-suds). Then I added the following lines in nova.conf file.



[vmware] host_ip=




Then restarting the nova-compute service throws following error:

ERROR nova.virt.driver [-] Unable to load the virtualization driver

TRACE nova.virt.driver Traceback (most recent call last):

TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/nova/virt/", line 1305, in load_compute_driver

TRACE nova.virt.driver virtapi)

TRACE nova.virt.driver ImportError: No module named vmwareapi

So I commanted the #[vmware] line in nova.conf file. Then restarted the service. This tme nova-compute service is up&running but throws error as follows;

INFO nova.virt.driver [-] Loading compute driver 'vmwareapi.VMwareVCDriver'

CRITICAL nova.virt.vmwareapi.driver [-] Unable to connect to server at None, sleeping for 1 seconds

TRACE nova.virt.vmwareapi.driver Traceback (most recent call last):

TRACE nova.virt.vmwareapi.driver URLError: urlopen error [Errno -2] Name or service not known

P.S:- I am using Esxi 5.5 version & vcenter 5.5. So I skipped the Procedure 2.1. Mirror WSDL from vCenter (or ESXi) steps while following this document.

Could anyone help me to resolve this issuse?

edit flag offensive delete link more

answered 2015-12-13 22:07:38 -0600

Le Trung gravatar image

hello everyone,

After i am complete Nova-compute, Glane configuration to integarate with Vmware-esxi . an error appeared as bellow:

root@controller:/var/log/glance# tail -f glance-api.log .... 2015-12-05 19:08:06.381 11670 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken". 2015-12-05 19:08:08.774 11700 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken".


root@controller:/var/log/glance# tail -f glance-registry.log 2015-12-05 18:54:14.407 32309 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken". 2015-12-05 18:54:14.418 32309 INFO glance.common.wsgi [-] Starting 1 workers 2015-12-05 18:54:14.441 32309 INFO glance.common.wsgi [-] Started child 32345 2015-12-05 18:54:14.445 32345 INFO eventlet.wsgi.server [-] (32345) wsgi starting up on

Hope someone has encountered this error. And help me to define the reason for this error please !

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-05-07 05:39:49 -0600

Seen: 2,134 times

Last updated: Sep 15 '14