The Liberty version, originally installed on the virtual machine, is too slow. Now decide to install directly on the physical machine. First, the dual system directly installed Ubuntu 14.04 Desktop version, the results in a look, the interface display is problematic, some characters and background color consistent, some characters are white text, completely can not see, online check the possible reason is that the monitor driver and desktop program does not match, always find the solution. Had to install Ubuntu 16.04. has tried the desktop version and server version, in the server version of the graphical interface installed on the above again, kubuntu-desktop can not adapt, then give up. Eventually settled down on Ubuntu 16.04 desktop. The Mitaka installation instructions on the official web site (docs.openstack.org) are based on Ubuntu 14.04. Refer to this installation instructions, installed on Ubuntu 16.04, the process is slightly different, there are some strange problems, took some time, one by one. My installation is now logged as follows.
1. Machine Preparation: One dual-Nic desktop 2. Network ConfigurationUbuntu 16.04 is no longer the name of ETHX. The two network card device names on my machine are enp3s0 and ENP4S0, which can be regarded as corresponding to the previous eth0 and eth1.
Operation 2.1:Edit/etc/network/interfaces as follows:
Operation 2.2:Edit/etc/resolv.conf write to the domain name server IP as follows:
Operation 2.3:Perform/etc/init.d/networking restart, and enable your network settings just now.
Execution Ifconfig can see the following information, note that ENP4S0 is not assigned an IP address.
Action 2.4: Edit the/etc/hosts, as shown in the following:
Note: (1) Be sure to delete the original 127.0.1.1; (2) controller also write to 127.0.0.1 address, I originally installed in Ubuntu 14.04 did not write this and no problem, but this installation, In the back of the Keystone synchronization occurs without permission to connect to the database, on the internet to find a lot of solutions, only this is to solve the problem, but why must do so, I am not very clear. (2) in the above image, compute1 and zopen please ignore, in a single point of installation, as long as the controller is on the line.
3. Clock synchronization, One-in-all installation mode, because all components are installed on a machine, time synchronization is not so important, this step feel can skip
Action 3.1: Execute the installation command Apt-get install Chrony
Action 3.2: Edit the/etc/chrony/chrony.conf, add the following sentence in any position of the parameter settings, I set the Shanghai Jiaotong University's NTP server address
Action 3.3: Restart the NTP service, execute the command service chrony restart
You can execute the CHRONYC sources command and see the list of NTP servers as shown below, dns.sjtu.edu.cn that is the server address you just added
4. OpenStack Package Installation Action 4.1: Execute command apt-get install Software-properties-common
Action 4.2: Follow the official website installation instructions, here should execute the command add-apt-repository Cloud-archive:mitaka, but in Ubuntu 16.04 execution of this command will appear error: Cloud-archive for Mitaka only supported on trusty. In Ubuntu 14.04 does not have this problem, online query said only 14.04 version only support Mitaka, but this is wrong, Ubuntu official online said 16.04 also support Mitaka. So do not have to tangle with this problem, jump directly into the next operation, this operation is not successful will not affect the subsequent installation.
Action 4.3: Execute command apt-get update && apt-get dist-upgrade, reboot the system after execution completes
Action 4.4: Execute command apt-get install Python-openstackclient
Note Actions 4.1, 4.3, 4.4 The command must be fixed after the screen, one but any error prompts, the command will be re-executed again, each operation must be without any error prompts before you can proceed to the next step. Only operation 4.2 error can be skipped.
5. Installing SQL database Action 5.1: Execute command apt-get install Mariadb-server python-pymysql
Oddly enough, when installing mariadb-server, there was no interactive action that allowed me to set the root password, and I remember having it installed on Ubuntu 14.04. Check the Internet, said that it is mariadb default root no password, this is I think it is more strange place. After installation, it is best to enter the database to set the root password, not set also can, if the security requirements are not high.
Action 5.2: Create and edit the file/etc/mysql/conf.d/openstack.cnf, write the following
Action 5.3: Restart the Services service MySQL restart
Action 5.4: Security Settings command mysql_secure_installation, after execution will have more yes/no interaction, all choose No also can, also can read carefully, set more secure settings.
6. Installing the NoSQL service Action 6.1: Execute command apt-get install mongodb-server mongodb-clients Python-pymongo
Action 6.2: Edit/etc/mongodb.conf, write the following settings
Action 6.3: Perform the restart operation, these operations do not have what output (lazy direct interception of the official website map)
7. Installing the Message Queuing service Action 7.1: Execute the installation command Apt-get install Rabbitmq-server
Action 7.2: Create OpenStack user rabbitmqctl add_user OpenStack rabbit_pass,rabbit_pass Change to the password you want to set
Action 7.3: Authorization command Rabbitmqctl set_permissions openstack ". *" ". *" ". *"
8. Installing the Distributed Cache service Action 8.1: Execute the Install command apt-get install memcached Python-memcache
Action 8.2: Edit/etc/memcached.conf, change the inside of the-l 127.0.0.1 to-l 192.168.0.110 (this is your Management network card IP address)
Action 8.3: Restart service memcached restart
At this point, the environment configuration is complete.
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.