81
OpenStack Tutorial Vasinee Siripoonya Kasidit Chanchio

OpenStack T utorial

  • Upload
    jason

  • View
    60

  • Download
    0

Embed Size (px)

DESCRIPTION

OpenStack T utorial. Vasinee Siripoonya Kasidit Chanchio. Vasabilab. C onduct Virtualization and Cloud Computing Promote OpenStack in Thailand Our Current Projects ( http://vasabilab.cs.tu.ac.th). Outline. Introduct ion to Cloud Computing OpenStack Overview - PowerPoint PPT Presentation

Citation preview

Page 1: OpenStack T utorial

OpenStackTutorial

Vasinee SiripoonyaKasidit Chanchio

Page 2: OpenStack T utorial

Vasabilab

• Conduct Virtualization and Cloud Computing • Promote OpenStack in Thailand• Our Current Projects

(http://vasabilab.cs.tu.ac.th)

Page 3: OpenStack T utorial

Outline

• Introduction to Cloud Computing• OpenStack Overview• OpenStack Demo

Page 4: OpenStack T utorial

Cloud Computing

• Cloud Computing ‘s characteristics:1. Scale with increasing demand2. Accessible anytime3. Have Cloud operating system to manage

resources and hide details from users4. Pay Per Uses

Page 5: OpenStack T utorial

1. Scalability

Processing resources

for 1

Page 6: OpenStack T utorial

Processing resources for

an organization

Page 7: OpenStack T utorial

2. Accessible Anytime

Time

Required Resources

Page 8: OpenStack T utorial

Required Resources

Time

Page 9: OpenStack T utorial

3. Cloud Operating Systems

Cloud OS

Page 10: OpenStack T utorial

4. Pay Per Uses

Jan

Feb

Mar Apr

May

Jun

Required Resources

Time

Page 11: OpenStack T utorial

Jan

Feb

Mar Apr

May

Jun

Required Resources

Time

Page 12: OpenStack T utorial

Type of Services: Software

SaaS

Page 13: OpenStack T utorial

PaaS

Type of Services: Platform

Page 14: OpenStack T utorial

IaaS

Type of Services: Infrastructure

Page 15: OpenStack T utorial

Cloud Layers

IaaSPaaSSaaS

Page 16: OpenStack T utorial

Service SpacePublic Cloud

• Use on Internet • Pay per uses• Share resources with everyone

Private Cloud

• Use within org • Org pays• Share resources within org

Hybrid CloudHigher demands

Lower demands

Page 17: OpenStack T utorial
Page 18: OpenStack T utorial

OpenStack Overview

• Cloud OS developed by Rackspace and NASA• Infrastructure as a Service• Support Private Cloud and Public Cloud• Open Source (Apache 2.0 license)• OpenStack Foundation• Popular and widely supported

Page 19: OpenStack T utorial

What OpenStack provide?

Page 20: OpenStack T utorial

1. manage virtual machines

Page 21: OpenStack T utorial

2. manage virtual networks

Page 22: OpenStack T utorial

3. manage virtual storages

Page 23: OpenStack T utorial

4. Multi-tenents

Page 24: OpenStack T utorial

Hardware/Storage/Network

Virtualization/OS

Cloud OS

User IT Infrastructure

OpenStack ปฏิบติัการอยูใ่น Layer ไหน

Page 25: OpenStack T utorial

OpenStack Components DASHBOARD

KEYSTONE

Page 26: OpenStack T utorial

• OpenStack Dashboard (Horizon) : Web-based User interface

• OpenStack Identity Service (Keystone) : Authentication and authorization

Page 27: OpenStack T utorial

NOVA

QUANTUMGLANCE

OpenStack Components

Page 28: OpenStack T utorial

• OpenStack Compute (Nova): create and manage VMs

• OpenStack Image Service (Glance): manage VM images and snapshots

• OpenStack Network (Quantum): manage virtual network

Page 29: OpenStack T utorial

SWIFT CINDERSCIENCECLOUD

OpenStack Components

Page 30: OpenStack T utorial

• OpenStack Object Storage (Swift): manage storage Object

• OpenStack Block Storage (Cinder): manage Virtual Storage Device

Page 31: OpenStack T utorial

OpenStack Operation 1.User Login

2. Authen and give Token

Page 32: OpenStack T utorial

3. Issue create VM request

4. Nova choose machine to run VM

OpenStack Operation

Page 33: OpenStack T utorial

5. config network on compute and

net nodes

6. Nova copy image from glance to compute node

7. Nova run VM on compute node

OpenStack Operation

Page 34: OpenStack T utorial

OpenStackArchitecture

Page 35: OpenStack T utorial

OpenStack Arhitectureinterface with users and make management decisions

run VM and store filesSend/receive

packets with outside world

Page 36: OpenStack T utorial

Hardware RecommendationsRecommended hardware configurations for a minimum production deployment for the cloud controller nodes

Server Recommended Hardware Notes

Cloud Controller node (runs network, volume, API, scheduler and image services)

Processor: 64-bit x86

Memory: 12 GB RAM

Disk space: 30 GB (SATA or SAS or SSD)

Volume storage: two disks with 2 TB (SATA) for volumes attached to the compute nodes

Network: one 1 GB Network Interface Card (NIC)

32-bit processors will work for the cloud controller node.A quad core server with 12 GB RAM would be more than sufficient for a cloud controller node.

Two NICS are recommended but not required.

http://docs.openstack.org/

Page 37: OpenStack T utorial

Hardware RecommendationsRecommended hardware configurations for a minimum production deployment for the compute nodes

Server Recommended Hardware Notes

Compute nodes (runs virtual instances)

Processor: 64-bit x86

Memory: 32 GB RAM

Disk space: 30 GB (SATA)

Network: two 1 GB NICs

Note that you cannot run 64-bit VM instances on a 32-bit compute node. A 64-bit compute node can run either 32- or 64-bit VMs, however.

With 2 GB RAM you can run one m1.small instance on a node or three m1.tiny instances without memory swapping, so 2 GB RAM would be a minimum for a test-environment compute node.

http://docs.openstack.org/

Page 38: OpenStack T utorial

Compute Node:•nova-compute•Quantum-plugin

ScienceCloud System Architecture

Cloud Controller: •nova-compute•nova-network•nova-scheduler•nova-api•Keystone•Dashboard•glance•Quantum-agents•Quantum-plugin

Compute Node:•nova-compute•Quantum-

plugin

Compute Node:•nova-compute•Quantum-plugin

Compute Node:•nova-compute•Quantum-plugin

Data Network

Mangmt Network

ExternalNetwork

Page 39: OpenStack T utorial

OpenStack Releases

AustinOct 21, 2010

BexarFeb 3, 2011

CactusApr 15, 2011

DiabloSep 22, 2011

EssexApr 5, 2012

FolsomSep 27, 2012

NovaSwift

NovaSwiftGlance

NovaSwiftGlance

NovaSwiftGlance

NovaSwiftGlanceKeystoneHorizon

NovaSwiftGlanceKeystoneHorizonQuantumCinder

GrizzlyApr 4, 2013NovaSwiftGlanceKeystoneHorizonQuantumCinder

Page 40: OpenStack T utorial

User/Tenant/Role

• User is a login name to OpenStack• Tenant or Project represents user capability

and resource quota • Role represent user’s authority over the

system

Page 41: OpenStack T utorial

OpenStack Network Model

• Fixed IP is an internal IP address inOpenStack• Floating IP is Public IP address for external

accesses• Use Cases:

Page 42: OpenStack T utorial

Use Case: Provider Router with Private Networks

Page 43: OpenStack T utorial

Use Case: Per-tenant Routers with Private Networks

Page 44: OpenStack T utorial

DEMO

Page 45: OpenStack T utorial

Overview

• Dashboard overview• Create Instance• เขา้ใชง้าน instance ทางหน้า console• ใช้ Remote Desktop เพื่อ transfer file• Terminate Instance• Crate a Cluster Computer

2

Page 46: OpenStack T utorial

Dashboard overview

• Log Inhttp://sciencecloud.cs.tu.ac.th

3

Page 47: OpenStack T utorial

Dashboard overview

❶❷

4

Page 48: OpenStack T utorial

Dashboard overview

• Access & Security

M Y I N S TA N C EDefault Security

OUT IN

5

Page 49: OpenStack T utorial

M Y I N S TA N C EAllow RDP

OUT IN RDP

MY COMPUTER

RDP

Dashboard overview

• Access & Security

6

Page 50: OpenStack T utorial

Dashboard overview

• Access & Security

ICMP

RDP

SSH

7

Page 51: OpenStack T utorial

Dashboard overview

• Images & Snapshot

8

Page 52: OpenStack T utorial

Dashboard overview

• Instances

คล๊ิกท่ี Instances จะยงัไมม่ี รายการขึ้นมา เพราะเรายงั

ไมไ่ด้สรา้ง Instance

9

Page 53: OpenStack T utorial

Create Instance

เลือก Windows

เลือกmedium

หรอื large

10

Page 54: OpenStack T utorial

Create Instance

เลือกRDP

11

Page 55: OpenStack T utorial

Create Instance

เลือกEnterprise

12

Page 56: OpenStack T utorial

Create Instance

• คล๊ิก Launch แล้วรอให้ Status Active

13

Page 57: OpenStack T utorial

เขา้ใชง้าน instance ทางหน้า console

• More -> Console

14

Page 58: OpenStack T utorial

เขา้ใชง้าน instance ทางหน้า console

• ตรวจสอบวา่สามารถใช้ internet ได้• ตรวจสอบจำานวน RAM, CPU

15

Page 59: OpenStack T utorial

ใช้ Remote Desktop เพื่อ transfer file

• Associate Floating IP

16

Page 60: OpenStack T utorial

ใช้ Remote Desktop เพื่อ transfer file

• Associate Floating IP

17

Page 61: OpenStack T utorial

ใช้ Remote Desktop เพื่อ transfer file

• Associate Floating IP

18

Page 62: OpenStack T utorial

ใช้ Remote Desktop เพื่อ transfer file

• Enable Remote Desktop บน instance

19

Page 63: OpenStack T utorial

ใช้ Remote Desktop เพื่อ transfer file

• เปิด Remote Desktop Connection บนเครื่องlocal

20

Page 64: OpenStack T utorial

ใช้ Remote Desktop เพื่อ transfer file

• เปิด Remote Desktop Connection บนเครื่องlocal

21

Page 65: OpenStack T utorial

Terminate Instance22

Page 66: OpenStack T utorial

Creating a Cluster Computer on OpenStack

Page 67: OpenStack T utorial
Page 68: OpenStack T utorial

Create a local network

Page 69: OpenStack T utorial

Launch a head node

Page 70: OpenStack T utorial
Page 71: OpenStack T utorial
Page 72: OpenStack T utorial
Page 73: OpenStack T utorial

Launch compute nodes

Page 74: OpenStack T utorial
Page 75: OpenStack T utorial
Page 76: OpenStack T utorial
Page 77: OpenStack T utorial
Page 78: OpenStack T utorial

BACKUP

Page 79: OpenStack T utorial

สถาปัตยกรรม OpenStackDASHBOARD

KEYSTONE

Page 80: OpenStack T utorial

สถาปัตยกรรม OpenStack

NOVA-APINOVA-SCHED

NOVA-COMPUTE

Page 81: OpenStack T utorial

สถาปัตยกรรม OpenStack

QUANTUM-PLUGIN

QUANTUM SERVER

QUANTUM-PLUGINQUANTUM-AGENTS