Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to quickly deploy multiple nodes in openstack

Shulou Source: shulou.com Published: 2022-05-31 16:11:56 09月20日 Update

This article mainly introduces how to quickly deploy multi-nodes in openstack. It is very detailed and has a certain reference value. Friends who are interested must finish it!

Install the CentOS6 operating system

Use floppy disk pass to burn and write the downloaded image, set the server to U disk to start and install.

Configure the network

At the control node

Cd / etc/sysconfig/network-scriptsvim ifcfg-eth0

After modification (public network)

Cat ifcfg-eth0 DEVICE=eth0TYPE=Ethernet BOOTPROTO=staticHWADDR=00:0C:29:13:D1:6FONBOOT=yesIPADDR=x.x.x.xGATEWAY=x.x.x.xDNS1=114.114.114.114 DNS2=8.8.8.8

Configure private network

Cd / etc/sysconfig/networ-scrriptsvim ifcfg-eth2

After the modification

Cat ifcfg-eth2 DEVICE=eth2TYPE=Ethernet BOOTPROTO=none HWADDR=00:0C:29:56:8CONBOOT=yes IPADDR=x.x.x.x NETMASK=255.255.255.0

Restart the network

Service network restart

Computing node

Except for the IP address, the rest are exactly the same as the control node (the MAC address is automatically assigned by the system and does not need to be modified)

Replacement network easy to open source (increase speed)

Cd / etc/yum.repos.dyum install-y wget wget http://mirrors.163.com/.help/CentOS6-Base-163.repo mv CentOS-Base.repo CentOS-Base.repo.bakmv CentOS6-Base-163.repo CentOS-Base.repo

Install the RDO source and EPEL remote data deployment package

Yum install-y epel-release-6-8.noarch.rpmyum install-y openstack-icehouse/rdo-release-icehouse-4.noarch.rpm

Note 1: because the URL cannot be added to the code, the correct path is http://mirrors.zju.edu.cn/epel//6/x86_64/epel-release-6-8.noarch.rpm

Note the correct address of the 2:rdo remote data deployment package is https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm

Create a yum cache

Yum clean allyum makecache yum update-yreboot-p

Note: execute the same command on the compute node

Installation file settings

Yum install-y openstack-packstack (both control node and compute node need to be executed)

Generate a configuration file (at the control node)

Packstack-gen-answer-file=myanswer.txt

Modify the following in the file

CONFIG_NOVA_COMPUTE_PRIVIF=eth2 CONFIG_NOVA_NETWORK_PRIVIF=eth2 CONFIG_COMPUTE_HOSTS=x.x.x.x (compute node ip) CONFIG_NETWORK_HOSTS=x.x.x.x (controller node ip)

Get rid of demo test network and users

CONFIG_PROVISION_DEMO=n

Start installation

Packstack-answer-file=myanswer.txt

Note: an ERROR error may occur midway, which is due to network reasons, just run the above command again.

These are all the contents of the article "how to quickly deploy multiple nodes in openstack". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Node network control content address file configuration command data article system same operating system code value interest again reason just boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Huawei vpn OPPO Reno Shulou Tech Info