Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Steps for packstack to install openstack-stein

2025-02-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Install openstack S (openstack-stein) in centos7, using the openstack-packstack tool one-click allinone installation, i.e. all components installed on one machine.

Environmental information:

Notebook: win10, 4U 16G, SSD hard disk, Intel core i5(support hardware virtualization VT-x)

Virtualization software: VMware® Workstation 15 Player

Virtual machine specification: 2U 8G

ISO file: CentOS-7-x86_64-DVD-1804.iso

Openstack Version: stein

Installation steps:

Create a virtual machine and install centos7

1)Create a 2U 8G virtual machine in vmware workstation, install it automatically through CentOS-7-x86_64-DVD-1804.iso, vmware will automatically install a desktop version of linux, network uses nat mode of vmware (as long as you can access the Internet, it is used for openstack installation package).

II. Modify to static IP, configure hostname, yum

1)enter the operating system

2)View IP and Gateway

ip add

route -n

3)Modify static IP and restart network services

vi /etc/sysconfig/network-scripts/ifcfg-ens33

Modify and add the following information:

BOOTPROTO="static"

ONBOOT="yes"

IPADDR=192.168.222.128 #ip addr IP seen

NETMASK=255.255.255.0 #ip addr See mask

GATEWAY=192.168.222.2 #route -n Gateway seen

DNS1=192.168.222.1 #DNS, sequence number starts from 1 by default

DNS2=8.8.8.8

DNS3=114.114.114.114

systemctl restart network

systemctl status network

4)configure hostname

hostnamectl set-hostname rong #Exit the current shell, re-open takes effect

5)Close firewall, selinux

systemctl stop firewall #Close firewall

systemctl disable firewalld #does not run automatically after restart

systemctl status firewalld #View status

setenforce 0 #turns selinux off, currently in effect

vi /etc/selinux/config #Edit the selinux configuration file to take effect permanently

SELINUX=disabled #Disable SELINUX

6)Turn off Networkmanager and enable network

systemctl disable NetworkManager

systemctl stop NetworkManager

systemctl enable network

systemctl start network

systemctl status network

7)Configure yum

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #Download aliyun's yum profile

yum clean all #Clear cache

yum makecache #is to download the package information of the server to the local computer cache, makecache establishes a cache, and then searches in the cache when installing, which improves the speed.

Originally, only Centos-7.repo was downloaded, but after makecache, other.repo files will be added.

8)configure pip

vim pip.conf

[global]

index-url = http://pypi.douban.com/simple/

trusted-host = pypi.douban.com

9)Download OpenStack repo

yum install -y centos-release-openstack-stein

yum update -y #update package, if the original system version is too old, you need to wait a long time

Third, install openstack

1)Install packstack automated installation tool

yum install -y openstack-packstack #allinone installer

2)Perform allinone installation to install all openstack components in this virtual machine

packstack --allinone #Execute this command from the command line, install using tools, installation time varies depending on computer performance, my old laptop installed 1h30 minutes.

3)Log in to openstack Horizon

Log in to http://VM IP/dashboard/with admin

The password is obtained from keystonerc_admin in the home directory

4) View host in openstack

5)Start your openstack journey

Now you can use the interface to play for yourself:

You can also use the openstack command from the command line:

source keystonerc_admin #Load environment variables

openstack host list #View host list

openstack image list #View mirror list

openstack network list #View network list

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report