SlideShare a Scribd company logo
Cloud-In-A-Day !
Build A Cloud In 4 Hours With Apache CloudStack and
Open Source Citrix XenServer
- K B Shiv Kumar, Co-Founder and CTO, IndiQus
Agenda
Gain – Interested in Apache CloudStack
Problems – Nested Virtualization (V on V)
Model – Demo From Scratch
Introductions First !!
2
Apache CloudStack – Does It Work ?
3
Apache CloudStack - Entities
4
Oracle VirtualBox - Installation
Download VirtualBox
Install VirtualBox
Install Guest Additions
5
Oracle VirtualBox – Configure Networks
Configure HostOnly Network
Configure NatNetwork Network
6
Oracle VirtualBox – Configure VMs
In Lieu Of Physical Servers
x1 VM x1 VM
7
Citrix XenServer - Installation
8
Citrix XenCenter – Installation (Optional)
© IndiQus Technologies Pvt. Ltd.9
CentOS 6.5 - Installation
© IndiQus Technologies Pvt. Ltd.10
Apache CloudStack - Installation
1. Install minimal ISO
2. Set the hostname in /etc/hosts
3. Check output of hostname –fqdn
4. Configure CloudStack YUM repository
1. vi /etc/yum.repos.d/cloudstack.repo
2. [cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.5/
enabled=1
gpgcheck=0
5. Configure local YUM repository (optional)
1. vi /etc/yum.repos.d/lab.repo
2. [lab]
name=lab
baseurl=http://10.0.2.6/cloudstack452/
enabled=1
gpgcheck=0
11
Apache CloudStack - Installation
6. Update CentOS – yum update
7. Install supporting packages – yum insall ntp, mysql-server, httpd, wget, nfs-utils, bind-utils,
telnet
8. Install CloudStack packages – yum install cloudstack-management
9. Set the system date with NTP– ntpdate 0.centos.pool.ntp.org
10. Start and enable NTP service – service ntpd start; chkconfig ntpd on
11. Start and enable HTTPservice – service httpd start; chkconfig httpd on
12. Disable selinux – setenforce 0
13. Download and install vhd-util
1. cd /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/
wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util
chmod 755 vhd-util
12
Apache CloudStack - Installation
14. Setup httpd and vm template
1. cd /var/www/html
2. wget -nc http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2
3. service httpd start
4. chkconfig httpd on
15. Setup MySQL
1. Edit /etc/my.cnf and add after datadir line.
2. innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = ‘ROW’
3. service mysqld start
4. chkconfig mysqld on
13
Apache CloudStack - Installation
16. Setup NFS shares
1. mkdir –p /export/primary
mkdir –p /export/secondary
2. Edit /etc/exports and add the following line
/export *(rw,async_no_root_squash)
3. exportfs –a
4. Edit /etc/sysconfig/nfs and uncomment the following lines
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020
MOUNTD_NFS_V3=yes
14
Apache CloudStack - Installation
17. Setup firewall rules
1. Edit /etc/sysconfig/iptables and add the following lines after the OUTPUT line
-A INPUT –p tcp –m tcp –m state --state NEW –m multiport --dports 111,2049,32803,892,875,662,80,8096 –j ACCEPT
-A INPUT –p udp –m udp –m state --state NEW –m multiport --dports 111,32769,892,875,662 –j ACCEPT
2. service iptables restart
18. Start the NFS services
1. service rpcbind restart
2. service nfs start
3. chkconfig rpcbind on
4. chkconfig nfs on
19. Seed the System VM template
1. mkdir –p /mnt/secondary
2. mount –t nfs –o nfsvers=3 10.0.2.211:/export/secondary /mnt/secondary
3. /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://10.0.2.6/systemvm64template-4.5-xen.vhd.bz2 -h xenserver -F
15
Apache CloudStack - Installation
20. Test the NFS service from the hypervisor
21. Disable HVM check (Lab only)
20. mysql cloud –e “insert into configuration (category, instance, component, name, value, description) values (‘Advanced’, ‘DEFAULT’, ‘management-server’,
‘xen.check.hvm’, ‘false’, ‘Do we allow only the XenServers supporting HVM’);
16
Apache CloudStack - Configuration
Login to the UI using admin and password as credentials
Edit ‘Global Settings’ and change overprovisioning limits.
Edit ‘Global Settings’ and change allowed hosts from which templates can
be downloaded.
Restart the management server
17
Apache CloudStack - Configuration
Configure the zone, pod, cluster, hosts, primary and secondary storage.
18
Apache CloudStack
Register CentOS 5.6 template
Create the 1st VM
Create the 2nd VM
Configure Firewall, Port Forwarding, Load Balancer
19
Way Forward
Multiple XenServers in a cluster
Multi-Hypervisor zones
Automate installations
Load Tests
SDX – SDN, SDS
20
Resources and Links
VirtualBox
Main Site: https://www.virtualbox.org/
Apache CloudStack
Main Site: https://cloudstack.apache.org/
Documentation: http://docs.cloudstack.apache.org/en/master/
Mailing Lists: https://cloudstack.apache.org/mailing-lists.html
Xen
Main Site: http://xenserver.org/
Documentation: http://xenserver.org/overview-xenserver-open-source-virtualization/documentation.html
Tools
Ansible: http://www.ansible.com/
21
Questions ?
@KBShivKumar @IndiQus
http://in.linkedin.com/in/kbshiv
shiv@indiqus.com
www.indiqus.com
22

More Related Content

PDF
MariaDB ColumnStore column-oriented database Install memo
PDF
ClickHouse column-oriented database Install memo
PDF
Lab 1 my sql tutorial
PDF
How to install OpenStack MITAKA --allinone - cheat sheet -
PDF
How to ride a 100GbE LAN -MEMO-
PPTX
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
PDF
Unbreakable VPN using Vyatta/VyOS - HOW TO -
PDF
My First BCC
MariaDB ColumnStore column-oriented database Install memo
ClickHouse column-oriented database Install memo
Lab 1 my sql tutorial
How to install OpenStack MITAKA --allinone - cheat sheet -
How to ride a 100GbE LAN -MEMO-
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
Unbreakable VPN using Vyatta/VyOS - HOW TO -
My First BCC

What's hot (20)

PDF
An Easy way to build a server cluster without top of rack switches (MEMO)
PDF
How to twist a IPv6 over Bluetooth (6lowpan)
PDF
How to train your L3DSR with PBR - MEMO -
PDF
RabbitMQ Server - cheat sheet -
PPTX
Building cloud native network functions - outcomes from the gw-tester nsm imp...
PDF
Openstack installation using rdo multi node
PDF
Cyber Range - An Open-Source Offensive / Defensive Learning Environment on AWS
PPTX
Seamless migration from nova network to neutron in e bay production
PDF
Openstack kilo installation using rdo
TXT
Ftp configuration
PPTX
Cyber Range - Blackhat Europe 19 Arsenal
PDF
Openstack installation using rdo
PDF
Egypt Cloud Day, May 2011--From Zero to Cloud
PDF
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
PDF
Obstacles & Solutions for Livepatch Support on ARM64 Architecture
PDF
Large Scale L2TPv3 Overlay Networking with OSPFv3(DRAFT)
PDF
Vyos clustering ipsec
PDF
Quickly Debug VM Failures in OpenStack
DOCX
Providence a kfiler12 and 13 upgrade
PDF
Docker at Digital Ocean
An Easy way to build a server cluster without top of rack switches (MEMO)
How to twist a IPv6 over Bluetooth (6lowpan)
How to train your L3DSR with PBR - MEMO -
RabbitMQ Server - cheat sheet -
Building cloud native network functions - outcomes from the gw-tester nsm imp...
Openstack installation using rdo multi node
Cyber Range - An Open-Source Offensive / Defensive Learning Environment on AWS
Seamless migration from nova network to neutron in e bay production
Openstack kilo installation using rdo
Ftp configuration
Cyber Range - Blackhat Europe 19 Arsenal
Openstack installation using rdo
Egypt Cloud Day, May 2011--From Zero to Cloud
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
Obstacles & Solutions for Livepatch Support on ARM64 Architecture
Large Scale L2TPv3 Overlay Networking with OSPFv3(DRAFT)
Vyos clustering ipsec
Quickly Debug VM Failures in OpenStack
Providence a kfiler12 and 13 upgrade
Docker at Digital Ocean
Ad

Viewers also liked (9)

PDF
Ethiopia
PPTX
TELECENTRO COMUNITÁRIO VOZ POPULAR - MÓDULO PLANILHAS ELETRÔNICAS (CALC)
PPTX
Constitución 1812
PDF
B sc (hons)(arch) asian architecture arc60403 project aug 2015
PDF
Футбол (Россия) №49 "MYFOOTBALL.WS"
PDF
سلايد شير ن
PDF
IHCD FPOS(I) BTEC Level 2 Cetificate
PDF
Vrijdagmiddag Couscous (VMCC) op Spidoschip
DOC
final_SIP_report
Ethiopia
TELECENTRO COMUNITÁRIO VOZ POPULAR - MÓDULO PLANILHAS ELETRÔNICAS (CALC)
Constitución 1812
B sc (hons)(arch) asian architecture arc60403 project aug 2015
Футбол (Россия) №49 "MYFOOTBALL.WS"
سلايد شير ن
IHCD FPOS(I) BTEC Level 2 Cetificate
Vrijdagmiddag Couscous (VMCC) op Spidoschip
final_SIP_report
Ad

Similar to OFY-2015-Cloud-In-A-Day (20)

PDF
CloudStack hands-on workshop @ DevOpsDays Amsterdam 2015
PPTX
Automating CloudStack and hypervisor installation and configuration
PPTX
Cloud computing components
PPTX
Building virtualised CloudStack test environments
PDF
Decisions behind hypervisor selection in CloudStack 4.3
PPTX
OSCON2014: Understanding Hypervisor Selection in Apache CloudStack
PPTX
Selecting the correct hypervisor for CloudStack 4.5
PPSX
CloudStack + KVM: Your Local Cloud Lab
PPTX
Getting Started with Apache CloudStack
PDF
Cloudstack for beginners
PPTX
Building clouds with apache cloudstack apache roadshow 2018
PPTX
CloudStackFinalProject
PDF
Open stack 4day
PPTX
Cloudstack选型
PPTX
Couch to OpenStack: Nova - July, 30, 2013
PDF
What’s New and What’s Upcoming in Apache CloudStack, Giles Sirett, ShapeBlue
PDF
Workshop eNovance/OpenStack 20-12-2012
ODP
Locally run a FIWARE Lab Instance In another Hypervisors
PPTX
Hypervisor Selection in CloudStack and OpenStack
PPTX
Hypervisor Selection in CloudStack and OpenStack
CloudStack hands-on workshop @ DevOpsDays Amsterdam 2015
Automating CloudStack and hypervisor installation and configuration
Cloud computing components
Building virtualised CloudStack test environments
Decisions behind hypervisor selection in CloudStack 4.3
OSCON2014: Understanding Hypervisor Selection in Apache CloudStack
Selecting the correct hypervisor for CloudStack 4.5
CloudStack + KVM: Your Local Cloud Lab
Getting Started with Apache CloudStack
Cloudstack for beginners
Building clouds with apache cloudstack apache roadshow 2018
CloudStackFinalProject
Open stack 4day
Cloudstack选型
Couch to OpenStack: Nova - July, 30, 2013
What’s New and What’s Upcoming in Apache CloudStack, Giles Sirett, ShapeBlue
Workshop eNovance/OpenStack 20-12-2012
Locally run a FIWARE Lab Instance In another Hypervisors
Hypervisor Selection in CloudStack and OpenStack
Hypervisor Selection in CloudStack and OpenStack

Recently uploaded (20)

PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Transform Your Business with a Software ERP System
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
history of c programming in notes for students .pptx
PDF
System and Network Administration Chapter 2
PDF
System and Network Administraation Chapter 3
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
Introduction to Artificial Intelligence
PDF
Digital Strategies for Manufacturing Companies
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPT
Introduction Database Management System for Course Database
PDF
medical staffing services at VALiNTRY
Which alternative to Crystal Reports is best for small or large businesses.pdf
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PTS Company Brochure 2025 (1).pdf.......
Transform Your Business with a Software ERP System
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
history of c programming in notes for students .pptx
System and Network Administration Chapter 2
System and Network Administraation Chapter 3
Wondershare Filmora 15 Crack With Activation Key [2025
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
ManageIQ - Sprint 268 Review - Slide Deck
How Creative Agencies Leverage Project Management Software.pdf
Online Work Permit System for Fast Permit Processing
Introduction to Artificial Intelligence
Digital Strategies for Manufacturing Companies
2025 Textile ERP Trends: SAP, Odoo & Oracle
How to Migrate SBCGlobal Email to Yahoo Easily
Introduction Database Management System for Course Database
medical staffing services at VALiNTRY

OFY-2015-Cloud-In-A-Day

  • 1. Cloud-In-A-Day ! Build A Cloud In 4 Hours With Apache CloudStack and Open Source Citrix XenServer - K B Shiv Kumar, Co-Founder and CTO, IndiQus
  • 2. Agenda Gain – Interested in Apache CloudStack Problems – Nested Virtualization (V on V) Model – Demo From Scratch Introductions First !! 2
  • 3. Apache CloudStack – Does It Work ? 3
  • 4. Apache CloudStack - Entities 4
  • 5. Oracle VirtualBox - Installation Download VirtualBox Install VirtualBox Install Guest Additions 5
  • 6. Oracle VirtualBox – Configure Networks Configure HostOnly Network Configure NatNetwork Network 6
  • 7. Oracle VirtualBox – Configure VMs In Lieu Of Physical Servers x1 VM x1 VM 7
  • 8. Citrix XenServer - Installation 8
  • 9. Citrix XenCenter – Installation (Optional) © IndiQus Technologies Pvt. Ltd.9
  • 10. CentOS 6.5 - Installation © IndiQus Technologies Pvt. Ltd.10
  • 11. Apache CloudStack - Installation 1. Install minimal ISO 2. Set the hostname in /etc/hosts 3. Check output of hostname –fqdn 4. Configure CloudStack YUM repository 1. vi /etc/yum.repos.d/cloudstack.repo 2. [cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/rhel/4.5/ enabled=1 gpgcheck=0 5. Configure local YUM repository (optional) 1. vi /etc/yum.repos.d/lab.repo 2. [lab] name=lab baseurl=http://10.0.2.6/cloudstack452/ enabled=1 gpgcheck=0 11
  • 12. Apache CloudStack - Installation 6. Update CentOS – yum update 7. Install supporting packages – yum insall ntp, mysql-server, httpd, wget, nfs-utils, bind-utils, telnet 8. Install CloudStack packages – yum install cloudstack-management 9. Set the system date with NTP– ntpdate 0.centos.pool.ntp.org 10. Start and enable NTP service – service ntpd start; chkconfig ntpd on 11. Start and enable HTTPservice – service httpd start; chkconfig httpd on 12. Disable selinux – setenforce 0 13. Download and install vhd-util 1. cd /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/ wget http://download.cloud.com.s3.amazonaws.com/tools/vhd-util chmod 755 vhd-util 12
  • 13. Apache CloudStack - Installation 14. Setup httpd and vm template 1. cd /var/www/html 2. wget -nc http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2 3. service httpd start 4. chkconfig httpd on 15. Setup MySQL 1. Edit /etc/my.cnf and add after datadir line. 2. innodb_rollback_on_timeout=1 innodb_lock_wait_timeout=600 max_connections=350 log-bin=mysql-bin binlog-format = ‘ROW’ 3. service mysqld start 4. chkconfig mysqld on 13
  • 14. Apache CloudStack - Installation 16. Setup NFS shares 1. mkdir –p /export/primary mkdir –p /export/secondary 2. Edit /etc/exports and add the following line /export *(rw,async_no_root_squash) 3. exportfs –a 4. Edit /etc/sysconfig/nfs and uncomment the following lines LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 RQUOTAD_PORT=875 STATD_PORT=662 STATD_OUTGOING_PORT=2020 MOUNTD_NFS_V3=yes 14
  • 15. Apache CloudStack - Installation 17. Setup firewall rules 1. Edit /etc/sysconfig/iptables and add the following lines after the OUTPUT line -A INPUT –p tcp –m tcp –m state --state NEW –m multiport --dports 111,2049,32803,892,875,662,80,8096 –j ACCEPT -A INPUT –p udp –m udp –m state --state NEW –m multiport --dports 111,32769,892,875,662 –j ACCEPT 2. service iptables restart 18. Start the NFS services 1. service rpcbind restart 2. service nfs start 3. chkconfig rpcbind on 4. chkconfig nfs on 19. Seed the System VM template 1. mkdir –p /mnt/secondary 2. mount –t nfs –o nfsvers=3 10.0.2.211:/export/secondary /mnt/secondary 3. /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://10.0.2.6/systemvm64template-4.5-xen.vhd.bz2 -h xenserver -F 15
  • 16. Apache CloudStack - Installation 20. Test the NFS service from the hypervisor 21. Disable HVM check (Lab only) 20. mysql cloud –e “insert into configuration (category, instance, component, name, value, description) values (‘Advanced’, ‘DEFAULT’, ‘management-server’, ‘xen.check.hvm’, ‘false’, ‘Do we allow only the XenServers supporting HVM’); 16
  • 17. Apache CloudStack - Configuration Login to the UI using admin and password as credentials Edit ‘Global Settings’ and change overprovisioning limits. Edit ‘Global Settings’ and change allowed hosts from which templates can be downloaded. Restart the management server 17
  • 18. Apache CloudStack - Configuration Configure the zone, pod, cluster, hosts, primary and secondary storage. 18
  • 19. Apache CloudStack Register CentOS 5.6 template Create the 1st VM Create the 2nd VM Configure Firewall, Port Forwarding, Load Balancer 19
  • 20. Way Forward Multiple XenServers in a cluster Multi-Hypervisor zones Automate installations Load Tests SDX – SDN, SDS 20
  • 21. Resources and Links VirtualBox Main Site: https://www.virtualbox.org/ Apache CloudStack Main Site: https://cloudstack.apache.org/ Documentation: http://docs.cloudstack.apache.org/en/master/ Mailing Lists: https://cloudstack.apache.org/mailing-lists.html Xen Main Site: http://xenserver.org/ Documentation: http://xenserver.org/overview-xenserver-open-source-virtualization/documentation.html Tools Ansible: http://www.ansible.com/ 21

Editor's Notes

  • #3: Set The Agenda Gain – Will To Learn Interested Tip of Iceberg Problems V on V Fall Back To Working Demo Model From Scratch Demo