Upload
jason
View
60
Download
0
Tags:
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
OpenStackTutorial
Vasinee SiripoonyaKasidit Chanchio
Vasabilab
• Conduct Virtualization and Cloud Computing • Promote OpenStack in Thailand• Our Current Projects
(http://vasabilab.cs.tu.ac.th)
Outline
• Introduction to Cloud Computing• OpenStack Overview• OpenStack Demo
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
1. Scalability
Processing resources
for 1
Processing resources for
an organization
2. Accessible Anytime
Time
Required Resources
Required Resources
Time
3. Cloud Operating Systems
Cloud OS
4. Pay Per Uses
Jan
Feb
Mar Apr
May
Jun
Required Resources
Time
Jan
Feb
Mar Apr
May
Jun
Required Resources
Time
Type of Services: Software
SaaS
PaaS
Type of Services: Platform
IaaS
Type of Services: Infrastructure
Cloud Layers
IaaSPaaSSaaS
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
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
What OpenStack provide?
1. manage virtual machines
2. manage virtual networks
3. manage virtual storages
4. Multi-tenents
Hardware/Storage/Network
Virtualization/OS
Cloud OS
User IT Infrastructure
OpenStack ปฏิบติัการอยูใ่น Layer ไหน
OpenStack Components DASHBOARD
KEYSTONE
• OpenStack Dashboard (Horizon) : Web-based User interface
• OpenStack Identity Service (Keystone) : Authentication and authorization
NOVA
QUANTUMGLANCE
OpenStack Components
• OpenStack Compute (Nova): create and manage VMs
• OpenStack Image Service (Glance): manage VM images and snapshots
• OpenStack Network (Quantum): manage virtual network
SWIFT CINDERSCIENCECLOUD
OpenStack Components
• OpenStack Object Storage (Swift): manage storage Object
• OpenStack Block Storage (Cinder): manage Virtual Storage Device
OpenStack Operation 1.User Login
2. Authen and give Token
3. Issue create VM request
4. Nova choose machine to run VM
OpenStack Operation
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
OpenStackArchitecture
OpenStack Arhitectureinterface with users and make management decisions
run VM and store filesSend/receive
packets with outside world
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/
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/
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
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
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
OpenStack Network Model
• Fixed IP is an internal IP address inOpenStack• Floating IP is Public IP address for external
accesses• Use Cases:
Use Case: Provider Router with Private Networks
Use Case: Per-tenant Routers with Private Networks
DEMO
Overview
• Dashboard overview• Create Instance• เขา้ใชง้าน instance ทางหน้า console• ใช้ Remote Desktop เพื่อ transfer file• Terminate Instance• Crate a Cluster Computer
2
Dashboard overview
• Log Inhttp://sciencecloud.cs.tu.ac.th
3
Dashboard overview
❶❷
❸
4
Dashboard overview
• Access & Security
M Y I N S TA N C EDefault Security
OUT IN
5
M Y I N S TA N C EAllow RDP
OUT IN RDP
MY COMPUTER
RDP
Dashboard overview
• Access & Security
6
Dashboard overview
• Access & Security
ICMP
RDP
SSH
7
Dashboard overview
• Images & Snapshot
8
Dashboard overview
• Instances
คล๊ิกท่ี Instances จะยงัไมม่ี รายการขึ้นมา เพราะเรายงั
ไมไ่ด้สรา้ง Instance
9
Create Instance
เลือก Windows
เลือกmedium
หรอื large
10
Create Instance
เลือกRDP
11
Create Instance
เลือกEnterprise
12
Create Instance
• คล๊ิก Launch แล้วรอให้ Status Active
13
เขา้ใชง้าน instance ทางหน้า console
• More -> Console
14
เขา้ใชง้าน instance ทางหน้า console
• ตรวจสอบวา่สามารถใช้ internet ได้• ตรวจสอบจำานวน RAM, CPU
15
ใช้ Remote Desktop เพื่อ transfer file
• Associate Floating IP
16
ใช้ Remote Desktop เพื่อ transfer file
• Associate Floating IP
17
ใช้ Remote Desktop เพื่อ transfer file
• Associate Floating IP
18
ใช้ Remote Desktop เพื่อ transfer file
• Enable Remote Desktop บน instance
19
ใช้ Remote Desktop เพื่อ transfer file
• เปิด Remote Desktop Connection บนเครื่องlocal
20
ใช้ Remote Desktop เพื่อ transfer file
• เปิด Remote Desktop Connection บนเครื่องlocal
21
Terminate Instance22
Creating a Cluster Computer on OpenStack
Create a local network
Launch a head node
Launch compute nodes
BACKUP
สถาปัตยกรรม OpenStackDASHBOARD
KEYSTONE
สถาปัตยกรรม OpenStack
NOVA-APINOVA-SCHED
NOVA-COMPUTE
สถาปัตยกรรม OpenStack
QUANTUM-PLUGIN
QUANTUM SERVER
QUANTUM-PLUGINQUANTUM-AGENTS