CentOS6.4 install OpenStackNova

Source: Internet
Author: User
OpenStackNova was installed in CentOS6.4 over the past two days. I found that many references on the Internet work, but they are outdated. Here we will re-write an article that keeps pace with the times for your reference. I hope you can help each other. My environment is centos6.4 installed in hyper-v in win8, the reason why centos6.4 is used is because centos6.4 support is added to the hyper-v3.0. Certainly better than this

In the past two days, we have installed OpenStack Nova in CentOS 6.4 and studied a lot of information. I found that many references on the Internet work, but they are outdated.
Here we will re-write an article that keeps pace with the times for your reference.
I hope you can help each other.

My environment is centos6.4 installed in hyper-v in win8, the reason why centos6.4 is used is because centos6.4 support is added to the hyper-v3.0. Of course, centos versions earlier than this version can work, but some network configuration is required. I will not repeat it here.

If you need such materials. I can add it. Theme.
--- Preparations -----
1. update the system
# Yum update
2. disable SELINUX
# Vi/etc/sysconfig/selinux
SELINUX = disabled
3. disable iptable
# Chkconfig iptables off
# Service iptables stop
4. restart
# Shutdown-r now
5. install the EPEL Library
# Rpm-ivh http://mirrors.ustc.edu.cn/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm (now 6.8, will be upgraded in the future)
--- Install Nova ----

# Yum install openstack-nova
# Yum install euca2ools)
--- Install Mysql ----
# Yum install mysql-server
# Service mysqld start
# Chkconfig mysqld on
--- Install rabbitmq ---
# Yum install rabbitmq-server
# Service rabbitmq-server start
# Chkconfig rabbitmq-server on
--- Install glance ---
# Yum install openstack-glance
--- Install Keystone ---
# Yum install openstack-keystone
--- Configure Nova ----

# Vi/etc/nova. conf
Modify mysql connection
-SQL _connection = mysql: // root: password @ localhost/nova
--- Configure Mysql ----
# Mysql-u roo-p
> Password
Mysql> create database nova;
Mysql> grant all privileges on *. * TO 'root' @ '%' with grant option;
Mysql> set password for 'root' @ '%' = PASSWORD ('password ');
Mysql> quit

--- Create a restart script ---
# Vi nova-restart-all.sh
#! /Bin/bash
For a in api compute network objectstore schedstore; do service openstack-nova-$ a restart; done
Service openstack-glance-api restart
Service openstack-glance-registry restart
# Chmod + x nova-restart-all.sh
#./Nova-restart-all.sh
--- Restart all services ----
#./Nova-restart-all.sh
The result shows that all are OK, proving that the installation is successful.
 

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.