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

Install openstack-stein using packstack

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Install the open source openstack S version (openstack-stein) in centos7 and use the openstack-packstack tool to install allinone with one click, that is, all the components are installed on one machine.

Environmental Information:

Notebooks: win10, 4U16G, SSD hard disk, intel core i5 (supports hardware virtualization VT-x)

Virtualization software: VMware ®Workstation 15 Player

Virtual machine specification: 2U8G

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

Openstack version: stein

Installation steps:

First, create a virtual machine and install centos7

1) create a 2U8G virtual machine in vmware workstation, install it automatically through CentOS-7-x86_64-DVD-1804.iso, and vmware will automatically install a desktop version of linux. The network uses vmware's nat mode (as long as you can access the Internet, it is used to install the openstack package).

Second, modify to static IP, configure hostname, yum

1) enter the operating system

2) View IP and gateway

Ip add

Route-n

3) modify the static IP and restart the network service

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

Modify and add the following information:

BOOTPROTO= "static"

ONBOOT= "yes"

IPADDR=192.168.222.128 # IP seen by ip addr

Mask seen by NETMASK=255.255.255.0 # ip addr

Gateway seen by GATEWAY=192.168.222.2 # route-n

DNS1=192.168.222.1 # DNS. The serial 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 # exits the current shell and reopens it to take effect

5) turn off firewall and selinux

Systemctl stop firewalld # turn off the firewall

Systemctl disable firewalld # does not run automatically after restart

Systemctl status firewalld # View status

Setenforce 0 # closes selinux, which is currently effective

Vi / etc/selinux/config # Editing selinux configuration file, permanent

SELINUX=disabled # disables SELINUX

6) close 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 the yum configuration file for aliyun

Yum clean all # clear cache

Yum makecache # downloads the package information of the server to the local computer and caches it. Makecache sets up a cache, and later searches in the cache when using install, which improves the speed.

After only downloading Centos-7.repo,makecache, there will be more .repo files.

8) configure pip

Vim pip.conf

[global]

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

Trusted-host = pypi.douban.com

9) download the repo of openstack

Yum install-y centos-release-openstack-stein

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

Third, install openstack

1) install packstack Automation installation tools

Yum install-y openstack-packstack # allinone installation tool

2) perform allinone installation and install all components of openstack in this virtual machine

Packstack-- allinone # executes this command on the command line, installs it using tools, and my old laptop installs 1h30min depending on the installation time of my computer's performance.

3) Log in to the openstack interface Horizon

Use admin to log in to http:// virtual machine IP/dashboard/

The password is obtained from the keystonerc_admin of the home directory

4) View host in openstack

5) start a trip to openstack

Now you can use the interface to play for yourself:

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

Source keystonerc_admin # load environment variables

Openstack host list # View the list of hosts

Openstack image list # View the list of images

Openstack network list # View the list of networks

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