OpenStack Deployment Installation (Icehouse version)-Control node (Controller)-Compute service (NOVA)

Source: Internet
Author: User
Tags qpid

Nova is a compute service that can start a virtual machine instance. These services can be configured on a separate node or on the same node. Most services run on the controller node and run the virtual machine service on a dedicated compute node. This time, we deploy the compute to the control node.

4.1 Install Compute Controller services (Installation Compute service)

4.1.1 installation of compute required Packages

# yum Install Openstack-nova-api Openstack-nova-cert openstack-nova-conductor openstack-nova-console Openstack-nova-novncproxy Openstack-nova-scheduler python-novaclient

4.1.2 Creating a database for Nova

# mysql-u root-pmysql> CREATE DATABASE nova;mysql> GRANT all privileges on nova.* to ' nova ' @ ' localhost ' identified By ' Nova ';mysql> GRANT all privileges on nova.* to ' Nova ' @ ' percent ' identified by ' Nova ';

4.1.3 Modifying a Nova's configuration file to create a database connection

# openstack-config--set/etc/nova/nova.conf database connection Mysql://nova:[email Protected]/nova

4.1.4 modifies the Nova configuration file, using a specific message service qpid. After modifying the MY_IP,NVC service

# openstack-config--set/etc/nova/nova.conf DEFAULT rpc_backend qpid# openstack-config--set/etc/nova/nova.conf DEFAUL T qpid_hostname controller# openstack-config--set/etc/nova/nova.conf DEFAULT my_ip 10.0.0.11# openstack-config--set/e tc/nova/nova.conf default Vncserver_listen 10.0.0.11# openstack-config--set/etc/nova/nova.conf default Vncserver_ Proxyclient_address 10.0.0.1

4.1.5 Creating a database table for Nova

# su-s/bin/sh-c "Nova-manage db Sync" Nova

4.1.6 Create a Nova user and add it to the admin role

# keystone User-create--name=nova--pass=nova [email protected]# Keystone User-role-add--user=nova--tenant=service--r Ole=admin

4.1.7 Configuring the Nova service to allow authentication to run on the control node

# openstack-config--set/etc/nova/nova.conf DEFAULT auth_strategy keystone# openstack-config--set/etc/nova/nova.conf Keystone_authtoken Auth_uri http://controller:5000# openstack-config--set/etc/nova/nova.conf Keystone_authtoken Auth_host controller# openstack-config--set/etc/nova/nova.conf keystone_authtoken auth_protocol http# Openstack-config--set/etc/nova/nova.conf keystone_authtoken auth_port 35357# openstack-config--set/etc/nova/ nova.conf keystone_authtoken admin_user nova# openstack-config--set/etc/nova/nova.conf keystone_authtoken admin_ Tenant_name service# openstack-config--set/etc/nova/nova.conf Keystone_authtoken Admin_password Nova

4.1.8 Create a Nova service and create a endpoint

# Keystone Service-create--name=nova--type=compute--description= "OpenStack Compute" # Keystone Endpoint-create--ser   vice-id=$ (Keystone Service-list | awk '/COMPUTE/{print $} ')--publicurl=http://controller:8774/v2/%\ (tenant_id\) s --internalurl=http://controller:8774/v2/%\ (tenant_id\) s--adminurl=http://controller:8774/v2/%\ (tenant_id\) s

4.1.9 start the Nova service and add the Nova service to the boot auto-start

# service Openstack-nova-api start# service Openstack-nova-cert start# service Openstack-nova-consoleauth start# Service Openstack-nova-scheduler start# service openstack-nova-conductor start# service Openstack-nova-novncproxy start# Chkconfig openstack-nova-api on# chkconfig openstack-nova-cert on# chkconfig openstack-nova-consoleauth on# chkconfig Openstack-nova-scheduler on# chkconfig openstack-nova-conductor on# chkconfig openstack-nova-novncproxy on

4.1.10 See if the Nova service is installed properly

# Nova Image-list
+--------------------------------------+---------------------+--------+--------+| ID | Name | Status | Server |+--------------------------------------+---------------------+--------+--------+| Asjkd7d3-78kl-3783-7873-b878784e1fj3 | cirros-0.3.2-x86_64 |        ACTIVE | |+--------------------------------------+---------------------+--------+--------+

Here, the Nova service is already installed. If the above authentication problem is true, execute the following source admin.sh

This article is from the cloud computing, virtualization blog, so be sure to keep this source http://mikan.blog.51cto.com/10598898/1684019

OpenStack Deployment Installation (Icehouse version)-Control node (Controller)-Compute service (NOVA)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.