In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
As work requires contact with openstack (Mitaka), set up a test environment to learn.
This article for the installation process is smooth, according to the open source community installation manual, problems encountered in the installation process also refer to a lot of online materials, thank you for the documentation of the gods!
The first deployment, if there is anything wrong, please leave a message for correction!
This article is suitable for beginners who install and deploy for the first time. Don't think that openstack is high-end and out of reach.
Take a good look at the installation manual of the open source community (https://docs.openstack.org/zh_CN/). A laptop with 8GB of memory will allow you to start experimenting!
My laptop has a low configuration:
ThinkPad wing 480i5-8250U 8G memory 256g SSD+500G SSD (simplified version T480, Xinshui T480!)
VM 15 has two virtual machines on.
Operating system: CentOS 7.3 (1611)
Control node: 4G of memory, 100G of hard disk (don't worry about the size of the hard disk, you can't use so much, it's only a dozen GB! )
Compute node: 2G of memory, 100G of hard disk-except for control services, other services are installed on this node
Network planning: VM assigns three network cards to controller nodes:
1. Host-only mode: 111.111.111.0 Universe 24-manage the network
2. Custom VMnet2 mode: 192.168.111.0 Universe 24-provider network
Yum source address:
Http://vault.centos.org/centos/7.3.1611/cloud/x86_64/openstack-mitaka 869+1200common
Http://vault.centos.org/centos/7.3.1611/extras/x86_64 451
Http://vault.centos.org/centos/7.3.1611/virt/x86_64/kvm-common 89
Http://vault.centos.org/centos/7.3.1611/storage/x86_64/ceph-hammer 71
Http://vault.centos.org/centos/7.3.1611/os/x86_64/Packages/
There are several python packages that are downloaded from the https://pkgs.org/ site.
1. Basic environmental preparation
Configuration scope: all nodes
1.1.Configuring host files
111.111.111.201 controller
111.111.111.202 computer01
1.2.Configuring local yum sources
I have downloaded all the installation packages locally, so install using an offline yum source
At the same time, make the directory where the offline package is located into a web site, so that the compute node can directly configure the yum source of http.
1.3. Install time synchronization service
Installation scope: all nodes
1.3.1. Install the chrony package
# yum install chrony-y
1.3.2. Start the synchronization service
# systemctl enable chronyd
# systemctl restart chronyd
# systemctl status chronyd
1.3.3, firewall settings
First deployment, turn off the firewall and selinux
1.3.4. Configure Chrony
# vi / etc/chrony.conf
As shown in the figure above, comment out the default server, and then add the native IP, which is also configured in other clients
To allow other nodes to connect to the chrony background process of the control node, add the following keys in the ``/ etc/ chrony.conf`` file:
Allow 111.111.111.0/24
Start the NTP service and configure it to start with the system:
# systemctl enable chronyd.service
# systemctl start chronyd.service
Install the latest source for openstack
Installation scope: all nodes
Yum install centos-release-openstack-mitaka
Yum install https://rdoproject.org/repos/rdo-release.rpm-this operation cannot be performed, otherwise the newly added repo file points to the T version of openstack
Yum upgrade (update source)-in this step, you need to remove the pre-installed mariadb package, otherwise an error will be reported: yum remove mariadb-libs
Yum install python-openstackclient (install the necessary plug-ins for opentack)
Yum install openstack-selinux (optional to install this plug-in, I directly shut down selinux, because it is not familiar, it will not affect the future)
Note: if you use a custom source, the above centos and redhat operations can be omitted
1.5. deploy the mariadb database
Control node:
The installation reported an error. After checking the data, it is suspected that it is the Mariadb interference that comes with it.
As shown in the picture, the self-contained mariadb package is found and all removed.
# yum remove mariadb*-y
Yum install mariadb mariadb-server python2-PyMySQL-y
Edit:
Vi / etc/my.cnf.d/openstack.cnf
[mysqld]
Bind-address = 111.111.111.201
Default-storage-engine = innodb
Innodb_file_per_table
Max_connections = 4096
Collation-server = utf8_general_ci
Character-set-server = utf8
Start the service:
# systemctl enable mariadb
# systemctl start mariadb
# systemctl status mariadb
Mysql_secure_installation
After setting the password, you will be prompted to enter the password first.
Enter current password for root (enter for none):
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.