Xen and Apache cloudstack
-
Upload
the-linux-foundation -
Category
Technology
-
view
10.030 -
download
8
description
Transcript of Xen and Apache cloudstack
![Page 1: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/1.jpg)
Xen and CloudStack
Ewan MellorDirector, Engineering, Open-source Cloud PlatformsCitrix Systems
![Page 2: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/2.jpg)
• What is CloudStack?• Move to the Apache Foundation• CloudStack architecture on Xen• The future for CloudStack• Developing on CloudStack
Agenda
![Page 3: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/3.jpg)
• Infrastructure-as-a-Service software• For people to build Amazon-style clouds
– either as a public service,– or as a private cloud within your own organization.
CloudStack is…
![Page 4: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/4.jpg)
CloudStack is…
Compute
XenServer Oracle VM KVMvSphere Bare metal
Hypervisor
Storage
Local Disk iSCSI NFSFiber
ChannelSwift
Block & Object
Network
Network Type
IsolationLoad
balancerFirewall VPN
Network & Network Services
![Page 5: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/5.jpg)
![Page 6: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/6.jpg)
CloudStackApache Foundation (incubating)2008-presentJavaFairly centralizedComplete solution
CloudStack versus OpenStack
OpenStack
OpenStack Foundation (founding in progress)
2010-present
Python
Aggressively distributed
More of a framework
![Page 7: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/7.jpg)
• Citrix donated the CloudStack code to the Apache Software Foundation and Apache Incubator
• The project now needs to prove that it can operate openly and independent of Citrix
• If it can do that, it can be accepted as a top-level Apache project.
Apache incubation
![Page 8: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/8.jpg)
Most CloudStack users choose Xen or XenServer
It is the combination that works the best!
CloudStack and Xen
XenVMwareKVM
![Page 9: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/9.jpg)
• A cluster of management servers• An orchestration engine• State and user management• Region, zone, pod, cluster model• A large collection of effectors• System VMs• Usage reporting• User interface
CloudStack is…
![Page 10: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/10.jpg)
Router
L3 core switch
Access layer switches
Servers
Management cluster
Secondary Storage
Pod 1 Pod 2 Pod 3 Pod N
Load balancer
Users
![Page 11: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/11.jpg)
Pod 1
Host 2
Cluster 1
Host 1Primarystorage
L3 switch
Secondarystorage
L2 switch
Two types of storage
• Stores virtual disks• Configured at cluster level • Close to hosts for better performance• Requires high IOPS
Primary storage
• Stores templates, ISOs and snapshots• Configured at zone level• Zone can have one or more• High capacity, low cost
Secondary storage
![Page 12: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/12.jpg)
Router
L3 core switch
Access layer switches
Servers
Management cluster
Secondary Storage
Pod 1 Pod 2 Pod 3 Pod N
Load balancer
Users
![Page 13: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/13.jpg)
• Choice of network isolation– Physical, VLAN, L3 (anti-spoof), overlay (GRE)
• Multiple networks– Shared networks, project networks
• IPAM / DHCP• Gateway (inc VRRP)• VPN, stateful firewall, NAT, port forwarding• Traffic monitoring• Load balancing• User-data / password-change services
Networking features
![Page 14: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/14.jpg)
Virtual network topologies
Public network
Guest network
DHCP, DNS, NAT, LB, VPN
10.1.1.1Guest VM 1
10.1.1.3Guest VM 2
10.1.1.4Guest VM 3
10.1.1.5Guest VM 4
CSVirtual Router
Public network
DHCP, DNS
10.1.1.1Guest VM 1
10.1.1.3Guest VM 2
10.1.1.4Guest VM 3
10.1.1.5Guest VM 4
NetScalerLB
CS Virtual Router provides network services External devices provide network services
CSVirtual Router
SRX firewall
Guest network
![Page 15: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/15.jpg)
Public network
Multi-tier virtual network topology
DHCP, DNS, user-data
10.1.1.1Web VM
1
10.1.1.3Web VM
2
10.1.1.4Web VM
3
10.1.1.5Web VM
4
NetscalerLB
CSVirtual Router
CSVirtual Router
10.1.2.21
10.1.2.18
10.1.2.38
10.1.2.39
10.1.2.31App VM
1 10.1.3.21
10.1.2.24App VM
2 10.1.3.45
10.1.3.24DB VM 1
DHCP, DNS,
user-data
DHCP, DNSuser-data,NAT, VPN
Public network
Guest network Guest network Guest network
CSVirtual Router
SRX firewall
![Page 16: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/16.jpg)
Router
L3 core switch
Access layer switches
Servers
Management cluster
Secondary Storage
Pod 1 Pod 2 Pod 3 Pod N
Load balancer
Users
![Page 17: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/17.jpg)
Router
L3 core switch
Access layer switches
Servers
Management cluster
Secondary Storage
Pod 1 Pod 2 Pod 3 Pod N
Load balancer
Users
System VMs
Customer VMs
![Page 18: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/18.jpg)
18
Driver domains
Xen Hypervisor
Control domain (dom0)
Host HW
Guest VMn
Apps
Memory CPUsI/O
HW Drivers
PV Back Ends PV Front Ends
Driver Domaine.g. • Disk• Network
HW Driver
PV Back End
KernelGuest OS
![Page 19: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/19.jpg)
The road ahead
![Page 20: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/20.jpg)
• Disentangle some core components– Make it easier for people to work on
subsystems– Make it easier to scale the API layers
The future for CloudStack
![Page 21: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/21.jpg)
………
S3 API VM
S3 API VM
S3 API VM
Object store(e.g., NetApp, Hadoop, …)
S3 API
NFS, CIFS, HDFS, 3rd-party object store API, …
S3 API system VM
![Page 22: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/22.jpg)
• Absorb new changes from Xen and XS– Storage migration– The Windsor architecture– I/O subsystem changes
The future for CloudStack
![Page 23: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/23.jpg)
• New object storage systems– Caringo CAStor– HDFS– Riak CS
• New block storage systems– GlusterFS?– Ceph?
• Open vSwitch / OpenFlow / VXLAN
The future for CloudStack
![Page 24: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/24.jpg)
DevCloud
![Page 25: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/25.jpg)
DevCloud – What is inside?
• VirtualBox VM– Xen Cloud Platform– Ubuntu 12.04 dom0 (aka Kronos)
• JVM, Tomcat, developer tools• NFS server• MySQL
– Working, pre-configured CloudStack– System VMs– Tiny Linux template
![Page 26: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/26.jpg)
![Page 27: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/27.jpg)
Why?
• Eliminates– need for another machine / hypervisor– Primary and secondary storage– Networking, VLAN, etc– Install and configuration of environment
• Disposable changes– Revert to snapshot
![Page 28: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/28.jpg)
Run
• Start the DevCloud VM from VirtualBox UI• Access the CloudStack UI
– http://localhost:8080/client
• Access the dom0– ssh root@localhost –p 2222
• From the UI, enable the zone– System VMs will start up
![Page 29: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/29.jpg)
![Page 30: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/30.jpg)
![Page 31: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/31.jpg)
CloudStack architecture
![Page 32: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/32.jpg)
Management Server Cluster
Replica
InfrastructureResources
User API
Admin API
Load Balancer
Management Server
Management Server
MySQL
MS is stateless. MS can be deployed as physical server or VM
Single MS node can manage up to 10K hosts. Multiple nodes can be deployed for scale or redundancy
Replication
![Page 33: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/33.jpg)
• Hosts• Servers onto which services will be
provisioned
• Primary Storage• VM disk storage
• Cluster• A grouping of hosts and their associated
storage
• Pod• Collection of clusters in the same failure
boundary
• Network• Logical network associated with service
offerings
• Secondary Storage• Template, snapshot and ISO storage
• Zone• Collection of pods, network offerings and
secondary storage
• Management Server Farm• Management and provisioning tasks
Components
Zone
CloudStack Pod
Cluster
Host
HostNetwork
PrimaryStorage
VM
VM
CloudStack Pod
ClusterSeconda
ryStorage
![Page 34: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/34.jpg)
Pod 1
….
Cluster N
L2
Host 2
Cluster 1
Deployment Architecture
Host 1
Hypervisor is the basic unit of scale.
Cluster consists of one ore more hosts of same hypervisor
All hosts in cluster have access to shared (primary) storage
Pod is one or more clusters, usually with L2 switches.
Availability Zone has one or more pods, has access to secondary storage.
One or more zones represent cloud
PrimaryStorage
Zone 1
….
L3
Secondary
Storage
Pod N
Management Server Cluster
Internet
![Page 35: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/35.jpg)
DevCloud step-by-step
![Page 36: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/36.jpg)
Overview
• Install Virtual Box• Download DevCloud virtual machine• Install DevCloud VM• Run the VM• Login to the CloudStack GUI• Start a CloudStack VM.
![Page 37: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/37.jpg)
Virtual Box
• Download / install from Oracle• Ensure that VT-d and virtualization
extensions are enabled in your laptop CPU
• Recommend at least 2 GB for DevCloud VM
![Page 38: Xen and Apache cloudstack](https://reader035.fdocuments.in/reader035/viewer/2022062404/554cb7d6b4c905335b8b5116/html5/thumbnails/38.jpg)
DevCloud VM
• Download from http://download.cloud.com/templates/devcloud/DevCloud.ova
• Latest install instructions here:http://wiki.cloudstack.org/display/COMM/DevCloud
• Import DevCloud into VirtualBox– Change memory allocation to 2 GB
• Snapshot for known good state