SlideShare a Scribd company logo
1 of 22
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

What's hot

An Easy way to build a server cluster without top of rack switches (MEMO)
An Easy way to build a server cluster without top of rack switches (MEMO)An Easy way to build a server cluster without top of rack switches (MEMO)
An Easy way to build a server cluster without top of rack switches (MEMO)Naoto MATSUMOTO
 
How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan) How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan) Naoto MATSUMOTO
 
How to train your L3DSR with PBR - MEMO -
How to train your L3DSR with PBR - MEMO -How to train your L3DSR with PBR - MEMO -
How to train your L3DSR with PBR - MEMO -Naoto MATSUMOTO
 
RabbitMQ Server - cheat sheet -
RabbitMQ Server - cheat sheet -RabbitMQ Server - cheat sheet -
RabbitMQ Server - cheat sheet -Naoto MATSUMOTO
 
Building cloud native network functions - outcomes from the gw-tester nsm imp...
Building cloud native network functions - outcomes from the gw-tester nsm imp...Building cloud native network functions - outcomes from the gw-tester nsm imp...
Building cloud native network functions - outcomes from the gw-tester nsm imp...Victor Morales
 
Openstack installation using rdo multi node
Openstack installation using rdo multi nodeOpenstack installation using rdo multi node
Openstack installation using rdo multi nodeNarasimha sreeram
 
Cyber Range - An Open-Source Offensive / Defensive Learning Environment on AWS
Cyber Range - An Open-Source Offensive / Defensive Learning Environment on AWS Cyber Range - An Open-Source Offensive / Defensive Learning Environment on AWS
Cyber Range - An Open-Source Offensive / Defensive Learning Environment on AWS Tom Cappetta
 
Seamless migration from nova network to neutron in e bay production
Seamless migration from nova network to neutron in e bay productionSeamless migration from nova network to neutron in e bay production
Seamless migration from nova network to neutron in e bay productionChengyuan Li
 
Openstack kilo installation using rdo
Openstack kilo installation using rdoOpenstack kilo installation using rdo
Openstack kilo installation using rdoNarasimha sreeram
 
Cyber Range - Blackhat Europe 19 Arsenal
Cyber Range - Blackhat Europe 19 ArsenalCyber Range - Blackhat Europe 19 Arsenal
Cyber Range - Blackhat Europe 19 ArsenalTom Cappetta
 
Openstack installation using rdo
Openstack installation using rdoOpenstack installation using rdo
Openstack installation using rdoNarasimha sreeram
 
Egypt Cloud Day, May 2011--From Zero to Cloud
Egypt Cloud Day, May 2011--From Zero to CloudEgypt Cloud Day, May 2011--From Zero to Cloud
Egypt Cloud Day, May 2011--From Zero to CloudEgypt Cloud Forum
 
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO) UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO) Naoto MATSUMOTO
 
Large Scale L2TPv3 Overlay Networking with OSPFv3(DRAFT)
Large Scale L2TPv3 Overlay Networking with OSPFv3(DRAFT)Large Scale L2TPv3 Overlay Networking with OSPFv3(DRAFT)
Large Scale L2TPv3 Overlay Networking with OSPFv3(DRAFT)Naoto MATSUMOTO
 
Providence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeProvidence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeAccenture
 
Docker at Digital Ocean
Docker at Digital OceanDocker at Digital Ocean
Docker at Digital OceanCloud 66
 

What's hot (20)

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

Viewers also liked

TELECENTRO COMUNITÁRIO VOZ POPULAR - MÓDULO PLANILHAS ELETRÔNICAS (CALC)
TELECENTRO COMUNITÁRIO VOZ POPULAR - MÓDULO PLANILHAS ELETRÔNICAS (CALC)TELECENTRO COMUNITÁRIO VOZ POPULAR - MÓDULO PLANILHAS ELETRÔNICAS (CALC)
TELECENTRO COMUNITÁRIO VOZ POPULAR - MÓDULO PLANILHAS ELETRÔNICAS (CALC)INSTITUTO VOZ POPULAR
 
B sc (hons)(arch) asian architecture arc60403 project aug 2015
B sc (hons)(arch)  asian architecture arc60403 project aug 2015B sc (hons)(arch)  asian architecture arc60403 project aug 2015
B sc (hons)(arch) asian architecture arc60403 project aug 2015Preston Liew
 
Футбол (Россия) №49 "MYFOOTBALL.WS"
 Футбол (Россия) №49 "MYFOOTBALL.WS"  Футбол (Россия) №49 "MYFOOTBALL.WS"
Футбол (Россия) №49 "MYFOOTBALL.WS" FRAPS
 
Vrijdagmiddag Couscous (VMCC) op Spidoschip
Vrijdagmiddag Couscous (VMCC) op SpidoschipVrijdagmiddag Couscous (VMCC) op Spidoschip
Vrijdagmiddag Couscous (VMCC) op SpidoschipChris Noordam
 

Viewers also liked (9)

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

Similar to OFY-2015-Cloud-In-A-Day

DeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerDeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerSteve Smith
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_trainingvideos
 
CloudStack and cloud-init
CloudStack and cloud-initCloudStack and cloud-init
CloudStack and cloud-initMarcusS13
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Serverwebhostingguy
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Serverwebhostingguy
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Trevor Roberts Jr.
 
Java App On Digital Ocean: Deploying With Gitlab CI/CD
Java App On Digital Ocean: Deploying With Gitlab CI/CDJava App On Digital Ocean: Deploying With Gitlab CI/CD
Java App On Digital Ocean: Deploying With Gitlab CI/CDSeun Matt
 
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAn Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAbhishek Kumar
 
Chris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialChris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialCohesive Networks
 
AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingSteve Smith
 
Introction to docker swarm
Introction to docker swarmIntroction to docker swarm
Introction to docker swarmHsi-Kai Wang
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptxJayakumarS71
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsCumulus Networks
 
How to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloudHow to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloudNicolas Trauwaen
 
Component pack 6006 install guide
Component pack 6006 install guideComponent pack 6006 install guide
Component pack 6006 install guideRoberto Boccadoro
 
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案inwin stack
 
Qemu device prototyping
Qemu device prototypingQemu device prototyping
Qemu device prototypingYan Vugenfirer
 

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

DockerCoreNet
DockerCoreNetDockerCoreNet
DockerCoreNet
 
kubernetes practice
kubernetes practicekubernetes practice
kubernetes practice
 
DeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to DockerDeveloperWeek 2015: A Practical Introduction to Docker
DeveloperWeek 2015: A Practical Introduction to Docker
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
 
CloudStack and cloud-init
CloudStack and cloud-initCloudStack and cloud-init
CloudStack and cloud-init
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Server
 
Integrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application ServerIntegrating Apache Web Server with Tomcat Application Server
Integrating Apache Web Server with Tomcat Application Server
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013
 
Java App On Digital Ocean: Deploying With Gitlab CI/CD
Java App On Digital Ocean: Deploying With Gitlab CI/CDJava App On Digital Ocean: Deploying With Gitlab CI/CD
Java App On Digital Ocean: Deploying With Gitlab CI/CD
 
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAn Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
 
Chris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialChris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks Tutorial
 
AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration training
 
Introction to docker swarm
Introction to docker swarmIntroction to docker swarm
Introction to docker swarm
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
 
How to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloudHow to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloud
 
RDO-Packstack Workshop
RDO-Packstack Workshop RDO-Packstack Workshop
RDO-Packstack Workshop
 
Component pack 6006 install guide
Component pack 6006 install guideComponent pack 6006 install guide
Component pack 6006 install guide
 
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
 
Qemu device prototyping
Qemu device prototypingQemu device prototyping
Qemu device prototyping
 

Recently uploaded

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 

Recently uploaded (20)

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 

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

  1. Set The Agenda Gain – Will To Learn Interested Tip of Iceberg Problems V on V Fall Back To Working Demo Model From Scratch Demo