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

How to build Openstack platform based on RDO

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

Share

Shulou(Shulou.com)05/31 Report--

This article is about how the Openstack platform is built based on RDO. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it with the editor.

Note: since it is a project in a laboratory environment, all nodes are installed on a single host for simulation experiments.

Hardware environment:

Hard disk: 500 GB memory: 8 GB

System environment:

RHEL6.5

Environmental preparation:

1. Configure yum Feed

# vim / etc/yum.repos.d/yum.repo

[base]

Name=base

Baseurl= ftp://192.168.2.254/pub/rhel6.5

Gpgcheck=0

[openstack]

Name=openstack

Baseurl= ftp://192.168.2.254/pub/openstack

Gpgcheck=0

[errata]

Name=openstack

Baseurl= ftp://192.168.2.254/pub/errata

Gpgcheck=0

two。 Update yum source software and related dependencies

# yum repolist

# yum update-y

# yum install-y openstack-packstack ord to configure and manage the openstack of the web interface

The host should be restarted after configuration

3. Configure no password authentication

# ssh-keygen

# ssh-copy-id localhost

# ssh localhost

4. Generate a configuration file and configure the RDO installation

# packstack-gen-answer-file=answer.txt generates an answer file

# vim answer.txt edit configuration file (choose to change the password for the project of the cloud computing architecture)

CONFIG_NTP_SERVERS=192.168.0.254

CONFIG_KEYSTONE_ADMIN_PW=xxbandy

# packstack-- answer-file=answer.txt uses files to configure and install the web administrative interface (this process will be lengthy.)

Install it after the display is successful.

Open the link: https://192.168.2.10/dashboard

5. Configure the network

After installation, br-ex (external bridge interface) and br-int (internal bridge interface) are generated on the network interface.

# cp ifcfg-eth0 ifcfg-br-ex

# vim ifcfg-br-ex

DEVICE= "br-ex"

BOOTPROTO= "none"

ONBOOT= "yes"

IPADDR=192.168.2.40

PREFIX=24

GATEWAY=192.168.0.254

DNS=192.168.2.254

SEARCH1=example.com is to parse the settings in it.

# cat / etc/resolv.conf

# Generated by NetworkManager

Nameserver 192.168.0.254

Search example.com

# vim ifcfg-eth0

DEVICE= "eth0"

ONBOOT= "yes"

HWADDR=00:1e:37:d4:8d:e4

Bridge the eth0 to the br-ex interface:

The use of uninterrupted restart of the network, will not be disconnected! # ovs-vsctl add-port br-ex eth0; service network restart

# ovs-vsctl show

38916436-49c1-4caf-af6d-9e8a0c192fbf

Bridge br-ex

Port br-ex

Interface br-ex

Type: internal

Port "eth0"

Interface "eth0" will bridge eth0 to br-ex. It is good to see this interface.

6. Use the web interface to configure the openstack module (password is KEYSTONE_PW in the answer file)

6.1 you can set your own language according to your preferences:

Check the status of the host:

6.2 create a project:

The quota for the project is set by yourself:

6.4 create a CVM type

6.5 upload an image file:

6.6 start creating a network (this is troublesome)

Create a public network net1, public network

Create a subnet for net1

Similarly, create an internal network net2. The details are as follows:

View the network topology diagram:

6.7 create a route to link the private network and the public network:

6.8 start the CVM and set the relevant parameters of the CVM:

Select the private network as the network of the CVM:

Create the completed CVM:

6.9 add information & & Security rules:

Assign floating IP:

Bind floating IP:

Start the CVM:

The above is how the Openstack platform is built based on RDO. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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