当前位置:网站首页>Summary of all contents of cloud computing setup to ensure that a complete cloud computing server can be built, including node installation, instance allocation, network configuration, etc
Summary of all contents of cloud computing setup to ensure that a complete cloud computing server can be built, including node installation, instance allocation, network configuration, etc
2022-06-10 18:04:00 【Bad cause】

One 、 Linux Installation ( There is no introduction here )
Two 、 Control node installation configuration
1、OpenStack Basic environment installation configuration
①、 Stop disabling NetworkManager
②、 Enable network And set it to start automatically
③、 Stop disabling firewall( A firewall )
④、etc/sysconfig/network-scripts/ifcfg-ens33 Static networks 、 Gateway configuration, etc
⑤、IP Establish a relationship with the domain name (hosts)
2、MariaDB Installation configuration
①、 install mariadb database
②、 Set up MariaDB Boot from boot
③、 start-up mariadb
④、 Set up mariadb Service security , Authorization database password root(%、localhost、tsw01) ( password :root)
3、NoSQL Installation configuration
①、 install Redis And set it to start 、 Boot from boot
②、 install Memcached
edit /etc/sysconfig/Memcached
Set to start , Boot from boot
4、RabbitMQ Installation configuration
①、 Install the Message Queuing service (rabbitmq-server)
②、 Set up rabbitmq Boot up automatically
③、 start-up rabbitmq service
④、 add to openstack user
⑤、 to grant authorization openstack user ( To configure 、 write in 、 Read )
⑥、 View listening port rabbitmq Default port 5672
⑦、 see RabbitMQ plug-in unit
⑧、 open RabbitMQ plug-in unit ( Be careful : Some computers here do not support opening all plug-ins , Opening it all will cause the following rabbitmq Service startup failed , In case of startup failure, uninstall rabbitmq service , Clean components , See which components , Open some components )
⑨、 see RabbitMQ state 15672, Browser query :http://192.168.253.131:15672
5、 Identity Authentication Keystone Installation configuration
①、 Download and install openstack repositories (queens edition
②、 establish keystone Database and authorize (%、localhost、tsw01)
③、 install 、 Configuration components , Generate random values as administrator tokens openssl rand -hex 10
④、 Initialize database
⑤、 initialization Fernet Keystore to generate token
⑥、 Yes Keystone application Bootstrap The framework performs initialization Guide identity authentication service
⑦、 To configure Apache HTTP The server
edit /etc/httpd/conf/httpd.conf file , To configure ServerName Options , Point to the control nodeCreate one to /usr/share/keystone/wsgi-keystone.conf File link file Turn on httpd Service and set up httpd Service starts automatically Set the environment variable , Configure the administrator account notes : After successful installation, there are three types of verification , Law 1 : Browser input IP An interface appears for the address 、 Law two : Browser access IP Of 5000 port 、 Law three :openstack user list appear ID and Name(admin)
6、glance Installation configuration
①、 install openstack-glance
②、 establish glance Database and authorize
③、 Use the database access client to connect to the database server as a user :root
Create user glance(openstack user create --domain default --password-prompt glance)
Add roles to users and projects :admin-glance-service(openstack role add --project service --user glance admin)
Create a service entity :glance(openstack service create --name glance --description “OpenStack Image” image)
④ Create an image service API Terminal nodes (openstack endpoint create --region RegionOne image public http://192.168.253.131:9292)
⑤、 Edit the file and do the following :/etc/glance/glance-api.conf
⑥、 Edit the file and do the following :/etc/glance/glance-registry.conf
⑦、 Fill in the imaging services database
⑧、 start-up openstack-glance-api openstack-glance-registry Service and set to power onBe careful :glance-api The service cannot be started because of the default permissions , Default root Authority changed to glance Permissions can be
7、 Install and configure the controller node with the code nova Computing service installation configuration
①、 Use the database access client to connect to the database server as a user :root
②、 Create and authorize nova_api nova nova_cell placement database (%、localhost、tsw01)
③、 Create computing service credentials
Create user :nova、placement
Add roles to users : nova-admin
Create a service entity :nova 、placement
④、 Create calculation API Service endpoint http://192.168.253.131:8774/v2.1
Create a placement service user using the following options that you select :PLACEMENT_PASS
take Placement Users are added to the service item with administrator role
Create a place in the service directory API entry
Create placement API Service terminal node http://192.168.253.131:8778
⑤、 install openstack-nova-api openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler openstack-nova-placement-api software package
⑥、 Edit the file and do the following :/etc/nova/nova.conf And restart httpd service
Fill the database :nova-api
Register database :cell0
Create cells :cell1
fill nova database :
verification nova Cell 0 And cells 1 Whether it has been registered correctly :(nova-manage cell_v2 list_cells)
⑦、 Start the computing service openstack-nova-api openstack-nova-consoleauth openstack-nova-scheduler openstack-nova-conductor openstack-nova-novncproxy And configure it to start when the system starts
8、 Install and configure controller nodes
①、 establish neutron Database and complete the corresponding authorization
②、 To create service credentials , Create user :neutron、 Add roles to users :admin-neutron、 Create a service entity :neutron
③、 Create Web Services API endpoints ,http://192.168.253.131:9696
④、 Network options 2: Self service network :
Installation of components :openstack-neutron openstack-neutron-ml2
openstack-neutron-linuxbridge ebtables
⑤、 Configure server components : Edit the file and do the following :/etc/neutron/neutron.conf
⑥、 Configuration modularization section 2 layer (ML2) plug-in unit : Edit the file and do the following :/etc/neutron/plugins/ml2/ml2_conf.ini
⑦、 To configure Linux Bridge agent :/etc/neutron/plugins/ml2/linuxbridge_agent.ini
⑧、 Configure the 3 Layer of the agent :/etc/neutron/l3_agent.ini
⑨、 To configure DHCP agent :/etc/neutron/dhcp_agent.ini
Configure metadata proxy : Edit the file and complete the following **do :/etc/neutron/metadata_agent.ini Configure computing services to use network services : Edit the file and do the following :/etc/nova/nova.conf Complete the installation : Network service initialization script needs a point to ML2 Plug in profile The symbolic link . If this symbolic link does not exist , Use the following command to create it :/etc/neutron/plugin.ini/etc/neutron/plugins/ml2/ml2_conf.ini Fill the database Restart the calculation API service Start the network service and configure it to start when the system starts
3、 ... and 、 Control node installation configuration ( Get a new virtual machine , Basic configuration has been completed )
Open the control node and compute node virtual machines
1、 Install and configure the code on the calculator node nova Computing service installation configuration
①、 install openstack-nova-compute software package
②、 Edit the file and do the following :/etc/nova/nova.conf
③、 Determine whether the computing node supports hardware acceleration of virtual machines , Editing is not supported /etc/nova/nova.conf in [libvirt]
④、 start-up libvirtd and openstack-nova-compute Computing services ( Include its dependencies ), And configure it to start automatically when the system starts
⑤、 Add a calculation node to the cell database , Obtain administrator credentials to enable administrator only CLI command , Then confirm that the computing host exists in the database ( The control node )
2、 Install and configure compute nodes
①、 Installation of components
②、 Configure common components
Edit the file and do the following :/etc/neutron/neutron.conf
③、 Configure network options
To configure Linux Bridge agent
Edit the file and do the following :/etc/neutron/plugins/ml2/linuxbridge_agent.ini
④、 Verify that all of the following values are set to :, Make sure your Linux The operating system kernel supports bridge filters :sysctl1
⑤、 Configure computing services to use network services : Edit the file and do the following :/etc/nova/nova.conf
⑥、 Complete the installation ( Restart the computing service 、 start-up Linux Bridge the agent and configure it to start when the system boots )
Four 、 Browser input http://192.168.253.136/dashboard And use demo The user login
1、 Create a virtual machine instance
2、dashboard Installation configuration
3、 The cloud platform virtual machine realizes the internal and external network connectivity
4、 Browser input http://192.168.253.136/dashboard And use demo The user login
1、 Sign in admin The user deletes the built-in image and creates a new one New mirror image
Delete the original image , This image is generally used as a test , create mirror
2、 Create a key pair
Sign in demo User creates key pair notes :demo The user's image sharing has just admin Of , But no private key , At this time, we need to re-establish the private key
Each time a new key pair is created, a .pem file , Well preserved
3、 Configure security groups , add to ssh The rules
4、 Download Image to prevent desktop , Prepare for later use
5、 Create a virtual machine instance , Choose a mirror image
6、dashboard Installation configuration ( The integrated installation used here dashboard, It is configured by default during installation , Therefore, there is no need to configure )
7、 The cloud platform virtual machine realizes the internal and external network connectivity
边栏推荐
- Swin_Transformer源码解读
- CDGA|工业企业进行数据治理的六个关键点
- com. netflix. client. ClientException: Load balancer does not have available server for client: userser
- 分享这位大神的WPF界面设计系列视频
- 绘制混淆矩阵
- 堆利用之chunk extend: HITCON tranining lab13
- Record of cmake and GCC installation
- Open source project PM how to design official website
- pands pd. Detailed parsing of dataframe() function
- [FAQ] summary of common problems and solutions during the use of rest API interface of sports health service
猜你喜欢
随机推荐
sense of security
Record of cmake and GCC installation
项目中常用的19条MySQL优化
Flutter在数字生活的发展与天翼云盘落地实践
Canvas大火燃烧h5动画js特效
IP总结(TCP/IP卷1和卷2)
ZigBee模块无线传输星形拓扑组网结构简介
关于目前CIM(BIM+GIS)行业的一些看法
JS blur shadow follow animation JS special effect plug-in
基于注解和反射生成xml
CUDA实现高效查找--审核未通过?
pands pd.DataFrame()函数详细解析
LoRa模块无线收发通信技术详解
美学心得(第二百三十七集) 罗国正
matplotlib plt. Specific usage of text() - labeling points in a drawing
Leetcode 875. Coco, who likes bananas
LeetCode 321. Maximum number of splices***
Talk about message oriented middleware (1) and AMQP
字符串的分析和使用 上
训练时添加进度条的库--tqdm










