Design and Implementation of a Cloud Provider - navidy.ir · Part 1 The Basic Concepts of Cloud....
Transcript of Design and Implementation of a Cloud Provider - navidy.ir · Part 1 The Basic Concepts of Cloud....
Design and Implementation of a
Cloud Provider
Advisor : Dr. Dastghaibyfard
Presented by : Peyman Navidi
Date : 17 Feb 2013
Contents
Part 1
Cloud Concepts
Cloud Infrastructure Concepts
Part2
Start Installing the Cloudstack
Building of Cloudstack
Installation of Cloudstack
User Interface
Hypervisor Installation
Cloud Concepts
Cloud Requirements in Form of Data Center
Network
Security Location - Firewall
Support 24 / 7
Power No delay
Cooling
Fire Protection
Equipment Hardwares
Cloud Concepts
What is important to set up a Cloud
Cost Network Model – SLA
Complexity Big Cloud, More Software
Speed Growth Needs
Portability Integration to other
Security Trust Services
Cloud Concepts
Hardware
Management Server
Hypervisor VM Host
Storage Device
Firewal Device
Managable Ethernet Switch
All Hardware Shall be Rack Mounted
Cloud Concepts
Management Softwares
Cloudstack
Openstack
Eucalyptus
vCloud Director
OpenNebula
Nimbus
Cloud Concepts
What Is CloudStack?
CloudStack™ is a software platform that pools computing resources to build
public, private, and hybrid Infrastructure as a Service (IaaS) clouds.
Use to :
Deployment
Management
Configuration
What Can CloudStack Do?
Multiple Hypervisor Support
Massively Scalable Infrastructure Management
Automatic Configuration Management
Graphical User Interface
API and Extensibility
High Availability
Cloud Concepts
Management Server Overview :
Provides the web user interface for the administrator and a
reference user interface for end users
Provides the APIs for CloudStack Platform
Manages the assignment of guest VMs to particular Hosts
Manages the assignment of public and private IP addresses
to particular accounts
Manages the allocation of storage to guests as virtual disks
Manages snapshots, templates, and ISO images, possibly
replicating them across data centers
Cloud Concepts
Cloud Concepts
How to Access Cloudstack 4.0.1 :
http://incubator.apache.org/cloudstack/
How to Access Citrix Xen Server 6.0.2 :
http://www.citrix.com/products/xenserver/
Cloud Infrastructure Concepts
Zones
A zone is the largest organizational unit within a CloudStack deployment. A
zone typically corresponds to a single datacenter, although it is permissible
to have multiple zones in a datacenter.
Pods
A pod often represents a single rack. A pod is the second-largest
organizational unit within a CloudStack deployment.
Clusters
A cluster provides a way to group hosts. The hosts in a cluster all have
identical hardware, run the same hypervisor, are on the same subnet, and
access the same shared primary storage.
Hosts
A host is a single computer. Hosts provide the computing resources that run the guest
virtual machines.
Primary Storage
Primary storage is associated with a cluster, and it stores the disk volumes for all the
VMs running on hosts in that cluster.
Secondary Storage
Secondary storage is associated with a zone, and it stores the following:
Templates - ISO images - Disk volume snapshots
Physical Networks
Part of adding a zone is setting up the physical network. Each physical
network can carry one or more types of network traffic.
Cloud Infrastructure Concepts
1) Supply and installation of the required hardware
2) Connect to Free Internet
3) Install the required software
4) Testing and Use
Start Installing the Cloudstack
Minimum System Requirements
Management Server
OS. : CentOS 6.2+ 64-bit
CPU : 64-bit x86
Memory : 4 GB
Local Disk : 50 GB
At least 2 NIC
Statically IP address
Hypervisor Hosts
OS. : Citrix Xen Server
CPU : 64-bit x86
Memory : 8 GB
Local Disk : 36 GB
At least 1 NIC
Statically IP address
Storage Device
Dell EqualLogic™ for iSCSI
Network Appliances filers
for NFS and iSCSI
Minimum System Requirements
Ethernet Switch
Cisco Manageable Switch
D-Link Smart Switch
ZyXEL Smart Switch
Software Requirements
Management Server
Operating System :
• CentOS/RHEL 6.3+ 64-bit
• Ubuntu 12.04 (.1) 64-bit
Cloudstack :
• Apache Cloudstack 4.0.1
• Citrix Cloudstack 3.0.2
Hypervisor Hosts
VM App :
• Citrix Xen Server 6.0.2
• KVM-17
• VMware vCloud Suite 5.1
Building of Cloudstack
Getting the Release
Download the latest CloudStack release from the
Apache CloudStack
Verifying the downloaded release
Getting the KEYS
# gpg –-import KEYS
Building of Cloudstack
Prerequisites for building Apache CloudStack
Ant 1.8.4
Tomcat 6.0
Maven 3.0.4
Java (Java 7/OpenJDK 1.7)
Rpmbuild or dpkg-dev
Building of Cloudstack
Building RPM
We can resolve the buildtime depdencies for
CloudStack by running the following command:
# mvn -P deps
we can move on to building CloudStack and packaging
them into RPMs by issuing the following command:
# ./waf rpm
Building of Cloudstack
Configuring your systems to use your new yum repository
We will create yum repository a file at /etc/yum.repos.d/
cloudstack.repo
[apache-cloudstack]name=Apache CloudStackbaseurl=http://cloudstack.apt-get.eu/rhel/4.0/enabled=1gpgcheck=0
Installation of Cloudstack
The procedure for installing the Management Server is:
Prepare the Operating System
Install Management Server
Install and Configure the MySQL database
Prepare NFS Shares
Prepare the System VM Template
Installation of Cloudstack
Before Starting with Cloudstack
Service mysqld start
Service ntpd start
Service iptables start
Service nfs start
Service rpcbind start
Service cloud-management start
Cloud-setup-management
Hypervisor Installation
Citrix XenServer Installation for CloudStack
Configure XenServer dom0 Memory from 726MB to 2940MB
Set username and password
All XenServers in a cluster must have the same username and password as
configured in CloudStack.
Time Synchronization
Getting and Deploying a License
Hypervisor Installation
Citrix XenServer Installation for CloudStack
From https://www.citrix.com/English/ss/downloads/,
download the appropriate version of XenServer for your
CloudStack version
Install XEN Server as Operating System Base on VM Host
User Interface
Log In to the UI
CloudStack provides a web-based UI that can be used by
both administrators and end users.
The UI is available in popular browsers including IE7, IE8,
IE9, Firefox 3.5+, Firefox 4, Safari 4, and Safari 5.
The URL is:
http://192.168.50.1:8080/client
Multi-Node Management Server
The CloudStack Management Server is deployed on one or
more front-end servers connected to a single MySQL database.
Multi-Site Deployment
The CloudStack platform scales well into multiple sites
through the use of zones.
Managing Networks and Traffic
In a CloudStack, guest
VMs can communicate
with each other using
shared infrastructure
with the security and
user perception that
the guests have a
private LAN.
References
http://www.citrix.com/
http://xen.org/
http://incubator.apache.org/cloudstack/
http://www.centos.org/
http://www.afranet.com/site/index.aspx
http://www.tebyanidc.com/
http://pndc.ir/farsi/index.htm