Linux Advanced Skills: openstack Construction and Application under redhat

Source: Internet
Author: User
Tags asymmetric encryption

Linux Advanced Skills: openstack Construction and Application under redhat
1. Introduction to openstack
OpenStack is a free software and open source code project jointly developed by NASA and Rackspace with Apache license authorization.
OpenStack is a cloud platform management project. It is not a software. This project is composed of several major components to complete some specific work. OpenStack is an open-source project designed to provide software for the construction and management of public and private clouds. Its community has more than 130 enterprises and 1350 developers who use OpenStack as a general front-end for infrastructure as a service (IaaS) resources. The primary task of the OpenStack project is to simplify the cloud deployment process and improve its scalability. This article hopes to provide necessary guidance to help you use the OpenStack front-end to set and manage your own public or private cloud. OpenStack is a cloud computing platform jointly developed by Rackspace and NASA. It helps Service providers and enterprises implement cloud Infrastructure services (as a Service, IaaS) similar to Amazon EC2 and S3 ). OpenStack consists of two main modules: Nova and Swift. The former is the virtual server deployment and business computing module developed by NASA, and the latter is the distributed cloud storage module developed by Rackspace, which can be used together, it can also be used separately. OpenStack is an open-source project. In addition to the strong support of Rackspace and NASA, there are also contributions and support from heavyweight companies such as Dell, Citrix, Cisco, and Canonical, which are growing very fast, it has replaced another industry-leading open-source cloud platform, Eucalyptus.

Applicability:
OpenStack is an IaaS (Infrastructure as a service) component that allows anyone to establish and provide it on their own.Cloud computingService. In addition, OpenStack is also used to establishFirewall"Private cloud"(Private Cloud), providing resources shared by organizations or departments within the enterprise.


This is the basic architecture of openstack:


What we want to build today is an openstack component of redhat, which includes the following parts:

(1) computing: NOVA
(2) Object Storage Service: SWIFT
(3) image: GLANCE
(4) Identity: KEYSTONE
(5) Network & Address Management: NEUTRON
(6) Block Storage: CINDER
(7) UI: HORIZON
(8) Measurement: CEILOMETER
(9) configuration: HEAT

In the production environment, we should install this software on different servers to provide cloud services. But this is in the experiment, so we use the allinone method. First aid means that all the components are installed on one server:

2. Install and build the redhat openstack:

1). System: redhat6.5
2). Memory Requirements: 4G (minimum), 8G best

First, we will display our console:


Configure the yum source and add the source of openstack and errta to the local device:

We will show the content of the three repo files respectively. The last two are required.

Dvd. repo content:


Errata content:


Openstack content:


Then we will clear and update the records of the yum Source:


Install allinone of openstack to build packstack and restart the node:


Generate an asymmetric encryption Public/Private Key for ssh and send the public key to the local machine:




Obtain and edit the complete configuration file for openstack installation:


Go to the configuration file and modify the following parameters:
1) ip address of the ntp server;
2) keystone component password (this is also the Administrator's password when we log on to the web interface );
3) Enable the ssl encryption function;

* This is the configuration of our basic functions. If you want more comprehensive configuration, You need to modify relevant parameters. For example, you can install swift to add storage, upload, and download.

Ntp server ip Address:


Ssl encryption:


Modify the keystone password:


After completing these configurations, We need to install openstack for about 25 minutes (my sub-machine is configured with the i5 second-generation processor, 4G memory ):


Okay. When you see the following interface, it indicates that openstack has been successfully installed on our host:


Go to the openstack interface:




To facilitate the operation, we convert the language to simplified Chinese:


First, create a project under the Administrator directory:


Project is the new project we created:


Create a user and specify the user as the project User:




After the project and user are created, we exit the Administrator mode and use the zhangchi user to log on:


We need to set the image, network, and security parameters in the project:

1. Set our network

First, go to the configuration directory of the network file:


This is the configuration file modified by eth0:


This is the configuration file of br-ex:


Then we restart the network:


Then, create a network topology on the web interface to enable future VM instances to access the Internet:




This is the network topology after we have created it. The network topology is Intranet and Internet respectively, and the middle is vro:


Then we add the Security Group:




Add Rules to security group rules:


After adding:


Then we need to download the key pair so that we can test it through ssh and access our cloud HOST:


Generate a floating ip address and bind it to the VM instance we will create later. You can access the VM instance:


Upload our image as the cloud host installation Source:




After the image is uploaded successfully, set its VM instance type:




Finally, it is also the most joint part. We integrate all the previous operations, install a cloud host, and access it. This indicates that the entire openstack has been installed, in addition, we can provide cloud hosts with specified parameters externally:


Select a key pair:




After this setting is complete, the VM instance starts and the VM instance is bound with a floating IP address. Other hosts can access the VM instance through the key. pem public key. The access address is the floating IP address bound to the VM instance.

Summary:

This is a test example of openstack on a node. In a real production environment, multiple servers are required to provide functions, and components such as nova and cinder are set on different servers. The split feature is more powerful. This post will be introduced here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.