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.