OpenStack Fuel Installation Tutorial

Source: Internet
Author: User

OpenStack Fuel Installation Tutorial

1 Introduction

OpenStack is a cloud computing platform developed jointly by Rackspace and NASA to help service providers and organizations implement cloud infrastructure services similar to Amazon EC2 and S3 (Infrastructure as a service, IaaS). OpenStack consists of two main modules: Nova and Swift, the virtual server deployment and Business Computing module developed by NASA, which is a distributed cloud storage module developed by Rackspace, which can be used together or separately. OpenStack is an open source project that, in addition to the strong support of Rackspace and NASA, has been developed and supported by heavyweight companies including Dell, Citrix, Cisco and Canonical.

The OpenStack cluster is built using 5 machines, a fuel management machine, a controller, a compute, and two storage. This is a minimal installation, and the cluster can be scaled up after the installation is complete.

2 Network planning

Network planning:

· Floating/public network 172.16.200.0/24 in VLAN [untagged on servers]? Floating IP Range 172.16.200.130-254 # for cluster public and virtual machine floating IP, need to be able to communicate with the external network

· Internal Network (private) 192.168.100.0/24 # for Virtual Inter-machine communication

· Gateway address for 192.168.100.1 # virtual machine

· DNS 8.8.4.4, 8.8.8.8 # DNS address

· Management network 192.168.0.0/24 in VLAN501 # management networks

· Storage network 192.168.1.0/24 in VLAN 502# storage networks

· Administrative network (for Fuel) 10.20.0.0/24 in VLAN 503 # Fuel Cluster Management networks

Server NIC configuration:

Fuel Management node (OpenStack Cluster Management):

· eth0 10.20.0.2-plug into switch 5-10 port

· eth1 172.16.200.128-plug into switch 11-16 port

Control nodes, compute nodes, storage nodes:

· eth0 10.20.0.0/24-plug into switch 5-10 port

· eth1 Public network 172.16.200.0/24, manage network 192.168.0.0/24, storage network 192.168.1.0/24-plug into switch 11-16 port

· Eth2 private network, 192.168.100.0/24-plug into switch 17-21 port

use a single Cisco 2960 switch, CONFIGURED as follows:

Switch#configure T

Enter Configurationcommands, one per line. End with cntl/z.

Switch (config) #vlan500

Switch (Config-vlan) #namecloud_public

Switch (Config-vlan) #exit

Switch (config) #vlan501

Switch (Config-vlan) #namecloud_management

Switch (Config-vlan) #exit

Switch (config) #vlan502

Switch (Config-vlan) #namecloud_storage

Switch (Config-vlan) #exit

Switch (config) #vlan503

Switch (Config-vlan) #namecloud_admin

Switch (Config-vlan) #exit

Switch (config) #vlan510-530

Switch (Config-vlan) #exit

Switch (config) #interfacerange gigabitethernet1/0/5-10

Switch (config-if-range) #switchportaccess VLAN 503

Switch (config-if-range) #switchportmode access

Switch (config-if-range) #spanning-treeportfast

Switch (config-if-range) #noshut

Switch (config-if-range) #exit

Switch (config) #interfacerange gigabitethernet1/0/11-16

Switch (config-if-range) #switchporttrunk native VLAN 500

Switch (config-if-range) #switchporttrunk allowed VLAN 500-503

Switch (config-if-range) #switchportmode trunk

Switch (config-if-range) #noshut

Switch (config-if-range) #spanning-treeportfast Trunk

%warning:portfastshould only is enabled on ports connected to a single

Host. Connecting hubs, Concentrators,switches, bridges, etc ... To this

interface when Portfast is enabled, can cause temporary bridging loops.

Use with CAUTION

Switch (config-if-range) #exit

Switch (config) #interfacerange gigabitethernet1/0/17-22

Switch (config-if-range) #switchporttrunk allowed VLAN 510-530

Switch (config-if-range) #switchportmode trunk

Switch (config-if-range) #noshut

Switch (config-if-range) #spanning-treeportfast Trunk

Switch (config-if-range) #exit

Switch#copyrunning-config Startup-config

3 Fuel Management Node installation

Download image from Mirantis: https://software.mirantis.com/, this installation uses Mirantisopenstack-5.0.1.iso mirroring.

Install through the remote management card, open the virtual media, mount the downloaded image, and start the server from the virtual image.

To the following screen when you press TAB, modify parameters, hostname change to your hostname, showmenu to Yes, enter continue:


To the following interface, set up the network, PXE boot, dns& hostname, root password and so on, the network configuration interface, each configuration of a network card needs to apply, and then configure the next NIC, are configured to save the exit after completion.


After the installation is complete, browse to the Http://10.20.0.2:8000/#clusters, click New OpenStack Environment, fill in the name, select the OpenStack version, and then go ahead.


Select deployment mode, this article uses multi-node, non-Ha mode, and then point forward.


Select the Virtualization manager type, this article select KVM, then click Forward.


Select network mode, this article select Neutron VLAN mode, and then click Forward.


Choose the storage type, this article uses Ceph for backend storage, and then point forward.


Additional services, no choice, direct point forward.


Click Finish to complete the environment settings.


4OpenStack deployment

Start each node to set up disk raid:

The control node and the compute node use RAID 5, the storage node two disks do RAID 1, and the remaining four disks do a single disk RAID 0 (each disk starts a Ceph process to ensure performance).

The compute node needs to turn on the virtualization option in the BIOS, otherwise the following error will be reported when creating the virtual machine:

Error:no valid host was found.

See the following error in the Nova log:

Libvirterror:internal error no supported architecturefor OS type ' HVM '

After the configuration is complete, start the server from the network card, after the boot is completed, back to the management interface, four servers have been discovered.

Click on the network selection card to configure the network as follows:




After the modification is complete, click Save Settings, and then click Verify Network if the network configuration is correct to show that the validation was successful.

Click on the Settings tab to set it up as follows:

Tick Nova quotas so you can make a quota on your virtual resources.


CentOS 6.5 requires the OvS VLAN splinters feature to be set.


Storage tick the above four options, where the Ceph RBD option runs the virtual machine for hot migration, after the point save setting is completed.

When the above settings are complete, click the Nodes tab and then click Add Node.


Select the control node, compute node, and storage node in turn.



After selecting complete, configure each role disk to take the storage node as an example:

To configure each role network, take the storage node as an example:




Depending on the configuration network, when the configuration is complete, return to the Nodes tab, point to deploy the change, and start deploying the node:

To deploy the operating system:


Deploy OpenStack:


To complete the deployment:


You can click on the Log tab to view the installation log, and click on the Health Check tab for health checks:


Access Openstack Management Console http://10.20.0.10/ :


5 Reference documents

· Cephand mirantis OpenStack

· Mirantisopenstack Documentation

6 Switch Configuration

Sys

Enable VLAN

Vlan 1

Interface Ethernet 1/0/1

Port Link-type Trunk

Port Trunk Permit VLAN 1 2 3 4

Display VLAN

Display VLAN 1

Quit

Save

If a network is not good, you can move its corresponding functionality to a network that is already configured.

Reference connection:

Http://yoyolive.com/%E8%99%9A%E6%8B%9F%E5%8C%96/2014/09/10/openstack-install.html


OpenStack Fuel Installation Tutorial

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.