• OpenStack is a set of IaaS solutions
• OpenStack is an open source cloud computing management platform
• Apache license is authorized to
A preparation:
1> 3 ready virtual machine, configured as follows:
OpenStack management host:
- 2CPU, at least 6G memory, 50G hard drive
- configure a static IP: 192.168.1.10
nova01, nova02 computing node 2 *:
- 2CPU, 4.5G memory, 100G hard drive
- configure a static IP: 192.168.1.11 (12)
2> Configure DNS (this needs to be done on all servers):
- when the OpenStack installation requires the use of an external dns to resolve the domain
vim /etc/resolv.conf
# Generated by NetworkManager
nameserver 114.114.114.114 real machine set DNS address
Note: Removing the beginning of search All rows
- openstack.tedu.cn domain name will resolve to the corresponding IP server we installed openstack real environment using a DNS lookup, I use a virtual machine to do, so the need for direct statement about the (three servers have to do , the host name to the corresponding host name)
#vim / etc / the hosts
192.168.1.10 OpenStack
192.168.1.11 nova01
192.168.1.12 nova02
3> Configuring the Time Service (Time Synchronization) [three servers have done]
time between nova server must be the same (this time synchronization with the real machine)
#vim /etc/chrony.conf
Server 192.168.1.254 iBurst
#systemctl restart chronyd
Test Time Synchronization:
# chronyc appear Sources * -v // number represents the available time NTP
^ * gateway 2 6 17 62 -753us [-7003us] +/- 24ms
4> yum repository configuration:
• CentOS7-1804.iso // System Software
• RHEL7-extras.iso // dependent packages provide Python
• RHEL7OSP-10.iso // CD has a large directory, each directory is a depot we configure which two depots
- openstack main depot
RHEL-7-Server-OpenStack-10-RPMS
- packstack depot
rhel-7-server-openstack- 10-devtools-rpms
#vim /etc/yum.repos.d/local.repo
[local_repo]
name=CentOS-$releasever - Base
baseurl="ftp://192.168.1.254/centos-1804"
enabled=1
gpgcheck=0
[ftp_repo1]
name=rhel-7-server-openstack-10-rpms
baseurl=ftp://192.168.1.254/openstack/rhel-7-server-openstack-10-rpms
enabled=1
gpgcheck=0
[ftp_repo2]
name=rhel-7-server-openstack-10-devtools-rpms
baseurl=ftp://192.168.1.254/openstack/rhel-7-server-openstack-10-devtools-rpms
enabled=1
gpgcheck=0
[ftp_repo3]
name=extras
baseurl=ftp://192.168.1.254/extras
enabled=1
gpgcheck=0
Clean All # yum
# yum repolist
package Total repolist: 10,670 (correct)
5> to install additional packages (three servers do):
During installation openstack, some packages depend on the package, not installed during the installation process, these packages should be installed in advance
- QEMU-KVM
- the libvirt-daemon
- the libvirt-daemon-Driver-QEMU
- the libvirt-Client
- Python-setuptools
Package Installation:
[room9pc01 the root @ ~] # yum the install the libvirt -Y-QEMU-KVM-Client the libvirt the libvirt daemon-daemon-Driver-Python-QEMU the setuptools
6> The basic environment
• Uninstall firewalld and whether NetworkManager
• Check the host network configuration parameters (static IP)
• hostname must be able to ping each other
• Check the configuration of the host yum source (4, 10670)
• dependent packages are installed
• Check the NTP whether the server is available
• check the line /etc/resolv.conf not have at the beginning of search
These are not the problem, the foregoing description is configured correctly.
Second mounting OpenStack:.
. 1> Configuration packstack (official openstack installation script)
mounted openstack required packstack:
[openstack the root @ ~] # yum the install -Y-packstack openstack
Use packstack create a generic answer file:
[root @ OpenStack ~] # packstack --gen-answer-File = answer.ini
2> Configuration packstack:
[OpenStack the root @ ~] Vim answer.ini #
42 is: // CONFIG_SWIFT_INSTALL = n-ceph because no configuration memory, this is "NO"
45: n-// billing configuration CONFIG_CEILOMETER_INSTALL =
49: CONFIG_AODH_INSTALL = n / / billing configuration
53: CONFIG_GNOCCHI_INSTALL = n // billing configuration
75: CONFIG_NTP_SERVERS = 192.168.1.254 // NTP service address
98: CONFIG_COMPUTE_HOSTS = 192.168.1.11,192.168.1.12 // specified nova assembly mounted on that server
102: CONFIG_NETWORK_HOSTS = 192.168.1.10,192.168.1.11,192.168.1.12 // specify which machines support vxlan network
333: CONFIG_KEYSTONE_ADMIN_PW = a // super administrator password
840: CONFIG_NEUTRON_ML2_TYPE_DRIVERS = flat, vxlan // indicate openstack operational support agreement
910: CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS = physnet1: br- ex // definition of internal communication requires three switches "br-EX"
921: NIC eth0 eth0 // physical machine, into a switch port (port disposed outside the network: CONFIG_NEUTRON_OVS_BRIDGE_IFACES = br-ex )
1179: // CONFIG_PROVISION_DEMO = n-case (no, "no")
3> a key deployment OpenStack:
[OpenStack the root @ ~] = File # packstack --answer-answer.ini
• If the correct pre-prepared environment, as long as the end of the installation to wait
• Depending on the host configuration, the installation process takes about 20 minutes or more
• If an error occurs, troubleshoot according to the log file given on the screen
III. Open the browser Horizon (192.168.1.10)
Horizon BUG processing
installation Although there is no error, but the default can not open the Horizon, which is a software configuration BUG
#vim /etc/httpd/conf.d/15-horizon_vhost.conf
– WSGIApplicationGroup %{GLOBAL}
ServerAlias localhost
WSGIDaemonProcess apache group=apache processes=3
threads=10 user=apache
WSGIProcessGroup apache
WSGIApplicationGroup% {GLOBAL} <--- added here
#apachectl graceful // reload the configuration file
Finally, enter 192.168.1.10 in the configuration file to enter the graphical interface to build good openstack