This is the second day of my participation in the November Gwen Challenge. Check out the details: the last Gwen Challenge 2021


CentOS8 Offline source creation

Fusionsphere OpenStack Victoria Offline Installation and Deployment guide fusionsphere OpenStack Ussuri Offline installation and deployment Guide fusionsphere OpenStack Train Offline installation and deployment Guide fusionsphere OpenStack Train Offline installation and deployment Guide For reference


Version Support Overview

Centos7

The source contains the following openstack versions, which may be supported later: openstack-queens, openstack-rocky, openstack-stein, openstack-train

centos 8

Openstack -train openstack-ussuri openstack- Victoria To install openstack Victoria, run it on CentOS 8

VMware vm installation CentOS8 tutorial

www.cnblogs.com/Dear-XiaoLe… www.linuxcoming.com/blog/2019/0… www.dwhd.org/20200207_20… www.cnblogs.com/omgasw/p/13…

Centos-7-x86_64-genericcloud. qcow2 Image configuration instance password Official image cloud.centos.org/centos/

In the openstack environment, if you use the official image centos-7-x86_64-genericCloud. qcow2 and do not know the default password, you can write the root password in the script during instance creation

#! /bin/bash
passwd root<<EOF
root
root
EOF
Copy the code

Basic configuration of CentOS8

Basic Installation and configuration of SSH login

1 dnf install openssh openssh-server -y 2 dnf install openssh openssh-server vim git wget net-tools bash-completion -y 3  ifconfig 4 vim /etc/ssh/sshd_config 5 systemctlenable sshd
 6  systemctl restart sshd
 7  systemctl status sshd
 10  # q exit
 11  exit
 12  history
Copy the code

Native image installs SSH to allow root to log in using SSH

Configuring domestic Sources

Domestic source configuration

Domestic source

Remove the repo file from the original system to avoid conflicts with the content of the new configuration file
mkdir ori_repo-config
mv /etc/yum.repos.d/* ./ori_repo-config/
touch /etc/yum.repos.d/CentOS-PrivateLocal.repo
vim /etc/yum.repos.d/CentOS-PrivateLocal.repo
Copy the code
# Download aliyun source file
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

# Replace ali cloud mirror address
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

Create cache
yum makecache
Copy the code

Yum source production

yum clean all
yum makecache
yum -y install vim createrepo yum-utils httpd net-tools 
# yum -y install reposync
yum install -y centos-release-openstack-victoria
ls -1 /etc/yum.repos.d/
yum repolist
Copy the code

Sync to local

mkdir -p /var/www/html/yumrepository
systemctl restart httpd.service
netstat -lntp
reposync -p /var/www/html/yumrepository/
Copy the code
    1  dnf install openssh openssh-server wget git vim net-tools bash-completion -y
    2  ifconfig
    3  systemctl enable sshd
    4  systemctl restart sshd
    5  vim /etc/ssh/sshd_config
    6  systemctl restart sshd
    7  systemctl status sshd
    8  ifconfig
    9  exit
   10  ls
   11  mkdir ori_repo-config
   12  mv /etc/yum.repos.d/* ./ori_repo-config/
   13  wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
   14  sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
   15  yum makecache
   16  yum -y install vim createrepo yum-utils httpd net-tools
   17  yum install -y centos-release-openstack-victoria
   18  ls -1 /etc/yum.repos.d/
   19  yum repolist
   20  mkdir -p /var/www/html/yumrepository
   21  systemctl restart httpd.service
   22  reposync -p /var/www/html/yumrepository/
   23  exit
   24  reposync -p /var/www/html/yumrepository/
   25  reposync -p /var/www/html/yumrepository/
   26  exit
   27  history
Copy the code

Local production

Create yum repository

# Use createrepo to create a yum source, or if you don't have createrepo, install it with yum
yum install createrepo -y
Enter each folder
cd /var/www/html/yumrepository
cd ./base
ls
createrepo .
ls
Copy the code

Note that the above action is required for each yum repository directory that is synchronized

Configure the service HTTPD

# start service
systemctl restart httpd
# Set automatic startup
systemctl enable httpd
systemctl status httpd
q
Copy the code

Modify the configuration file /etc/selinux/config

# vim /etc/selinux/config
SELINUX=disabled
Copy the code
yum install firewalld systemd -y
systemctl start firewalld.service
systemctl stop firewalld.service
systemctl enable firewalld.service
systemctl disable firewalld.service
netstat -anp
Copy the code

Blog.csdn.net/bo123_/arti…

   55  systemctl stop firewalld NetworkManager.service
   56  systemctl stop NetworkManager.service
   57  yum install iptables-services
   58  systemctl stop firewalld NetworkManager.service
   59  systemctl stop firewalld
   60  systemctl status firewalld
   61  systemctl start firewalld
   62  yum install firewalld systemd -y
   63  systemctl start firewalld.service
   64  systemctl stop firewalld.service
   65  systemctl status firewalld
   66  netstat -anp
   67  systemctl disablefirewalld NetworkManager.service 68 systemctl status firewalld NetworkManager.service 69 setenforce 0 70 ifconfig 71 yum  repolist 72 ls .. /Copy the code

Turn off the firewall, Selinux, NetworkManager

systemctl stop firewalld NetworkManager.service
systemctl disable firewalld NetworkManager.service
systemctl status firewalld NetworkManager.service
setenforce 0
Copy the code

validation

On the other machine, create a new REPO file

Remove the repo file from the original system to avoid conflicts with the content of the new configuration file
mkdir ori_repo-config
mv /etc/yum.repos.d/* ./ori_repo-config/
touch /etc/yum.repos.d/CentOS-PrivateLocal.repo
vim /etc/yum.repos.d/CentOS-PrivateLocal.repo
Copy the code

Note: ① Change the IP address to that of the yumRepository host. ② To avoid installation conflicts, only one of [centos-openstack-stein] and [centos-openstack-train] is reserved.

[AppStream]
name=CentOS-$releasever- AppStream - mirrors.aliyun.com baseurl = http://192.168.2.104/yumrepository/AppStream/ gpgcheck = 0 enabled = 1 (base) name=CentOS-$releasever- Base - mirrors.aliyun.com baseurl = http://192.168.2.104/yumrepository/base/ gpgcheck = 0 enabled = 1 [centos-advanced-virtualization] name=CentOS-$releasever- Advanced Virtualization baseurl = http://192.168.2.104/yumrepository/centos-advanced-virtualization/ gpgcheck = 0 enabled=1 [centos-ceph-nautilus] name=CentOS-$releasever- Ceph Nautilus baseurl = http://192.168.2.104/yumrepository/centos-ceph-nautilus/ gpgcheck = 0 enabled = 1 [centos-nfv-openvswitch] name=CentOS-$releasever- NFV OpenvSwitch baseurl = http://192.168.2.104/yumrepository/centos-nfv-openvswitch/ gpgcheck = 0 enabled = 1 [centos-openstack-victoria] name=CentOS-$releasever- it Victoria baseurl = http://192.168.2.104/yumrepository/centos-openstack-victoria/ gpgcheck = 0 enabled = 1 [centos-rabbitmq-38] name=CentOS-$releasever- the RabbitMQ 38 baseurl = http://192.168.2.104/yumrepository/centos-rabbitmq-38/ gpgcheck = 0 enabled = 1 / extras name = CentOS -$releaseverExtras - mirrors.aliyun.com baseurl = http://192.168.2.104/yumrepository/extras/ gpgcheck = 0 enabled = 1Copy the code

After the configuration is complete, you usually need to clear the existing cache of yum and regenerate the cache. The command to clear the stale cache of yum is as follows:

yum clean all
yum makecache
Copy the code