OpenStack is an open-source cloud platform that works collaboratively with various components and is very complicated to install. RedHat has a project RDO about Openstack, which can simplify the installation process. However, if you install RDO in three steps, you will find many errors during the installation process, you have to query the official Openstack documentation. I was prepared to install it on the new RHEL7. I found that the libselinux (epel7) Additional package is missing and may not be compiled yet. Select RedHat6.5 as the underlying operating system. &
OpenStack is an open-source cloud platform that works collaboratively with various components and is very complicated to install. RedHat has a project RDO about Openstack, which can simplify the installation process. However, if you install RDO in three steps, you will find many errors during the installation process, you have to query the official Openstack documentation. I was prepared to install it on the new RHEL7. I found that the libselinux (epel7) Additional package is missing and may not be compiled yet. Select RedHat6.5 as the underlying operating system.
Installation environment preparation 1. hardware environment:
DELL R410 quad-core 4G memory, dual NIC (only one Nic is used in this instance), two GB hard disks
2. software environment:
Install RedHat 6.5 (minimize installation)
Eth0 interface IP Address: 192.168.11.120/24
Host Name: OSNode. demostack
Operation User: root (other users can also be used, just add sudo before all commands)
RDO official documentation: http://openstack.redhat.com/Quickstart
OpenStack official documentation: http://docs.openstack.org/
Install and deploy Openstack http://www.linuxidc.com/Linux/2013-08/88184.htm on Ubuntu 12.10
Ubuntu 12.04 OpenStack Swift single-node deployment manual http://www.linuxidc.com/Linux/2013-08/88182.htm
OpenStack cloud computing quick start tutorial http://www.linuxidc.com/Linux/2013-08/88186.htm
Enterprise deployment OpenStack: http://www.linuxidc.com/Linux/2013-09/90428.htm of what should be done and what should not be done
CentOS 6.5 x64bit quick installation OpenStack http://www.linuxidc.com/Linux/2014-06/103775.htm
Operating system installation configuration 1. Install the underlying operating system RHEL
The Installation Process of the operating system will not be repeated. Here we will minimize the installation of RedHat 6.5. Remember to configure the hostname during the installation process. The hostname must be long enough and never be a pure number, for example 189. localdomain. Set OSNode. demostack here
(This is the first error I encountered. I thought this hostname didn't matter. I directly filled in the last segment of the IP address (189. localdomain). As a result, Puppet reported an error during installation ,)
2. Configure the host file
Edit the host file and add the host Name and corresponding IP address to the host file.
Vi/etc/hosts
127.0.0.1 localhost. localdomain localhost4 localhost4.localdomain4
: 1 localhost. localdomain localhost6 localhost6.localdomain6
127.0.0.1 Node. OpenStack
Bytes -----------------------------------------------------------------------------------------------------------------
It is best to enter 127.0.0.1 as the IP address in front of this location. It should be that Mysql installed in RDO can only connect to this IP address by default. If you enter the IP address of the local Nic, the following error will be reported.
ERROR: Error appeared during Puppet run: 192.168.11.120 _ keystone. pp
Error:/Stage [main]/Keystone: Roles: Admin/Keystone_role [_ member _]: cocould not evaluate: execution of '/usr/bin/keystone -- OS-endpoint http: // 127.0.0.1: 35357/v2.0/role-list' returned 1: an unexpected error prevented the server from fulfilling your request. (HTTP 500)
3. Configure the network
Edit the/etc/sysconfig/network-scripts/ifcfg-** File
[Root @ OSNode network-scripts] # vi ifcfg-eth0
DEVICE = eth0
TYPE = Ethernet
UUID = 11ed2c17-9098-4519-b388-9f3824b6c531
ONBOOT = yes
NM_CONTROLLED = yes
BOOTPROTO = none
HWADDR = 00: 0C: 29: D1: 80: BB
IPADDR = 192.168.11.120
PREFIX = 24
GATEWAY = 192.168.11.1
DNS1 = 114.114.114.114
Configure the IP address, gateway, and DNS. You are advised to ping 163.com to check whether the communication is normal.
4. Open the system firewall
By default, RHEL6.5 is enabled. Do not disable it. Many network functions of Openstack are implemented through the firewall.
Service iptables status
5. Disable selinux
Vi/etc/selinux/config
SELINUX = disabled
Restart takes effect
6. Configure the local yum Environment
Upload the RedHat 6.5 IOS image to the home Directory, create a directory named rhel6, mount the ISO file to the Local_YUM directory, and modify the repo file. perform the following steps:
# Cd/home
# Mkdir rhel6
# Mount-o loop RHEL6.5.iso rhel6/
# Vi/etc/yum. repos. d/RHEL6.5.repo
[Rhel6]
Name = rhel6
Baseurl = file: // root/rhel6/
Enabled = 1
Gpgcheck = 0
~
Update YUM Cache
Yum clean all
Yum update
Yum makecache
7. Restart the machine
Reboot
For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-07/104293p2.htm