SlideShare a Scribd company logo
1 of 45
Building Virtualised CloudStack 
Test Environments 
Geoff Higginbottom 
CTO ShapeBlue 
geoff.higginbottom@shapeblue.com 
Twitter: @CloudStackGuru
 Cloud Architect & ShapeBlue CTO 
www.shapeblue.com @CloudStackGuru 
 Specialise in…. 
 Designing & Building Clouds based on Apache CloudStack / Citrix 
CloudPlatform 
 Developing CloudStack training 
 Blogging and sharing CloudStack knowledge 
 Involved with CloudStack before donation to Apache 
 Designed Clouds for Cloudera, Everyware, SunGard, Ascenty, BskyB, 
Trader Media, M5 Hosting, Team Cymru, Interoute, University of 
Pennsylvania.… 
 CloudStack Committer 
About Me
Requirements 
 Portable Test / Training / Demo Environment 
 Windows, MAC and Linux Support 
www.shapeblue.com @CloudStackGuru 
 Open Source Software 
 Reflect Production CloudStack deployments 
 Basic Networking 
 With and Without Security Groups 
 Advanced Networking 
 VLANs for Traffic Isolation 
 Utilise XenServer Hypervisor(s) 
 Shared / Local Primary Storage 
 Dedicated Storage Networks for Shared Primary, and Secondary Storage 
 100% CloudStack Feature Support
Additional Requirements 
www.shapeblue.com @CloudStackGuru 
 Flexible Architecture 
 Remote access to system 
 Manage external Hypervisors 
 Use External Storage 
 Test HA Failover 
 Dual Management Servers with Load Balancing 
 Dual MySQL Servers with Replication 
 Dual DNS for ‘Internal DNS’ 
 Configuration Management (Ansible)
VirtualBox 
 Cross Platform Virtualisation Application 
 Support to Windows, OSX and Linux 
 OpenSource (unlike VMware Workstation / Fusion) 
 Capable of running XenServer (but without HVM support) 
 Downloads available from 
 https://www.virtualbox.org/wiki/Downloads 
www.shapeblue.com @CloudStackGuru
www.shapeblue.com @CloudStackGuru 
 Management Server VM 
 CentOS 6.5 VM 
 CloudStack Management Server 
 MySQL Server 
 NFS Storage Server 
 NGINX (for hosting templates) 
 XenServer VM 
 XenServer 6.2 
Sandbox Deployment
Storage 
Host Only Network 2 
Public 
Host Only Network 1 
www.shapeblue.com @CloudStackGuru 
NAT 
Network Design 
Management 
Guest 
XenServer VM 
Host Only Network 0 
Internal Network 
Management VM 
NFS Storage 
Templates
Network Design 
Management VM XenServer VM 
Storage 
10.10.100.0/24 – vlan 100 
10.10.101.0/24 – vlan 101 
Public 
172.30.0.0/24 - untagged 
Management 
Guest 
192.168.56.0/24 - untagged 
10.1.1.0/24 
vlans 600-699 
www.shapeblue.com @CloudStackGuru 
NFS Storage 
Templates 
NAT 
10.0.2.0/24
VirtualBox Configuration 
Management VM Resources 
www.shapeblue.com @CloudStackGuru 
 2GB RAM 
 Minimum required to install CloudStack 
 Reduce to 1GB after CloudStack is deployed 
 1vCPU 
 Enable I/O APIC, PAE/NX, VT-x/AMD-v 
 4 NICs 
 16 GB disc minimum – more if available on host
VirtualBox Configuration 
Management VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 1: 
Management Traffic
VirtualBox Configuration 
Management VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 2: 
NAT to enable access 
to internet for install 
and updating etc
VirtualBox Configuration 
Management VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 3: 
‘Public’ Traffic to 
allow the hosting 
of Templates via 
nginx
VirtualBox Configuration 
Management VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 4: 
Storage Traffic 
acting as NFS Server 
for Primary and 
Secondary Storage
VirtualBox Configuration 
XenServer VM Resources 
www.shapeblue.com @CloudStackGuru 
 1.5GB (4GB RAM Host) 
 2vCPU 
 Enable I/O APIC, PAE/NX, VT-x/AMD-v 
 4 NICs 
 16 GB disk minimum – more if testing local storage
VirtualBox Configuration 
XenServer VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 1: 
Management Traffic
VirtualBox Configuration 
XenServer VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 2: 
Guest Traffic
VirtualBox Configuration 
XenServer VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 3: 
Public Traffic
VirtualBox Configuration 
XenServer VM Networks 
www.shapeblue.com @CloudStackGuru 
Adapter 4: 
Storage Traffic
Management Server Interfaces 
eth0 - Management 
DEVICE=eth0 
TYPE=Ethernet 
IPADDR=192.168.56.11 
PREFIX=24 
ONBOOT=yes 
NM_CONTROLLED=no 
BOOTPROTO=none 
IPV4_FAILURE_FATAL=yes 
IPV6INIT=no 
NAME=MGMT 
www.shapeblue.com @CloudStackGuru
Management Server Interfaces 
eth1 - NAT 
DEVICE=eth1 
TYPE=Ethernet 
IPADDR=10.0.2.11 
GATEWAY=10.0.2.1 
PREFIX=24 
ONBOOT=yes 
NM_CONTROLLED=no 
BOOTPROTO=none 
DEFROUTE=yes 
PEERROUTES=yes 
IPV4_FAILURE_FATAL=yes 
IPV6INIT=no 
NAME=NAT 
www.shapeblue.com @CloudStackGuru
Management Server Interfaces 
eth2 – Public 
DDEVICE=eth2 
TYPE=Ethernet 
IPADDR=172.30.0.11 
PREFIX=24 
ONBOOT=yes 
NM_CONTROLLED=no 
BOOTPROTO=none 
IPV4_FAILURE_FATAL=yes 
IPV6INIT=no 
NAME=PUBLIC 
www.shapeblue.com @CloudStackGuru
Management Server Interfaces 
eth3 / eth3.100 / eth3.101 - Storage 
DEVICE=eth3.100 
TYPE=Ethernet 
IPADDR=10.10.100.11 
PREFIX=24 
ONBOOT=yes 
BOOTPROTO=none 
NAME=PRI-STOR 
VLAN=yes 
USERCTL=no 
MTU=9000 
DEVICE=eth3.101 
TYPE=Ethernet 
IPADDR=10.10.101.11 
PREFIX=24 
ONBOOT=yes 
BOOTPROTO=none 
NAME=SEC-STOR 
VLAN=yes 
USERCTL=no 
MTU=9000 
www.shapeblue.com @CloudStackGuru 
DEVICE=eth3 
TYPE=Ethernet 
BOOTPROTO=none 
ONBOOT=yes 
MTU=9000 
VLAN=yes 
USERCTL=no 
MTU=9000
XenServer Networks 
www.shapeblue.com @CloudStackGuru
Management Server Install 
 Install CentOS 6.5 Minimal and update 
 Follow the ‘Quick Installation Guide for CentOS’ 
 http://docs.cloudstack.apache.org/projects/cloudstack-installation/ 
en/latest/qig.html 
 Install and configure the following: 
www.shapeblue.com @CloudStackGuru 
 MySQL Server 
 NFS 
 CloudStack-Management
Configuration Tweaks 
 Install nginx so it can be used to host Templates 
 Once installed download the default CentOS template and place in the 
nginx web folder 
# cd /usr/share/nginx/html 
# wget -nc http://download.cloud.com/templates/builtin/centos56- 
x86_64.vhd.bz2 
 Update the CloudStack DB to change the location of the default 
template 
# mysql –p<password> cloud -e  "UPDATE cloud.vm_template SET 
url='http://192.168.56.11/centos56-x86_64.vhd.bz2' WHERE 
unique_name='centos56-x86_64-xen';" 
www.shapeblue.com @CloudStackGuru
Configuration Tweaks 
Enable use of Non-HVM XenServer 
# mysql –p<password> cloud -e  "INSERT INTO cloud.configuration 
(category, instance, component, name, value, description) VALUES 
('Advanced', 'DEFAULT', 'management-server', 'xen.check.hvm', 'false', 
'Shoud we allow only the XenServers support HVM');" 
www.shapeblue.com @CloudStackGuru
Configuration Tweaks 
Reduce the RAM allocations for System VMs 
# mysql -u root –p<password> cloud -e  "UPDATE cloud.service_offering SET 
ram_size='128', speed='128' WHERE vm_type='domainrouter';" 
# mysql -u root –p<password> cloud -e  "UPDATE cloud.service_offering SET 
ram_size='128', speed='128' WHERE vm_type='elasticloadbalancervm';" 
# mysql -u root –p<password> cloud -e  "UPDATE cloud.service_offering SET 
ram_size='128', speed='128' WHERE vm_type='secondarystoragevm';" 
# mysql -u root –p<password> cloud -e  "UPDATE cloud.service_offering SET 
ram_size='128', speed='128' WHERE vm_type='internalloadbalancervm';" 
# mysql -u root –p<password> cloud -e  "UPDATE cloud.service_offering SET 
ram_size='128', speed='128' WHERE vm_type='consoleproxy';" 
www.shapeblue.com @CloudStackGuru
Configuration Tweaks 
Update Global Settings for this special install 
expunge.delay = 60 
expunge.interval = 60 
account.cleanup.interval = 60 
capacity.skip.counting.hours = 60 
cluster.cpu.allocated.capacity.disablethreshold = 0.99 
cluster.memory.allocated.capacity.disablethreshold = 0.99 
capacity.check.period = 60000 
event.purge.delay = 1 
network.gc.interval = 60 
network.gc.wait = 60 
vm.op.cleanup.interval = 600 
www.shapeblue.com @CloudStackGuru
Configuration Tweaks 
Update Global Settings for this special install 
vm.op.cleanup.wait = 60 
vm.tranisition.wait.interval = 600 
vm.tranisition.wait.interval = 600 
vpc.cleanup.interval = 60 
cpu.overprovisioning.factor = 4 
storage.overprovisioning.factor = 4 
secstorage.allowed.internal.sites = 192.168.56.11/32 
management.network.cidr = 192.168.56.0/24 
host = 192.168.56.11 
enable.dynamic.scale.vm = true 
secstorage.vm.mtu.size = 9000 
www.shapeblue.com @CloudStackGuru
XenServer Install 
 Install XenServer 6.2 from ISO 
 Apply latest patches in line with 
http://support.citrix.com/cms/kc/cloud-troubleshooting/ 
cloudplatform-compatibility-matrix/ 
www.shapeblue.com @CloudStackGuru
CloudStack Settings 
www.shapeblue.com @CloudStackGuru 
 Zone Name – Test 
 IPv4 DNS1 – 8.8.8.8 
 Internal DNS 1 – 192.168.56.11 
 Hypervisor – XenServer 
 Guest CIDR – 10.1.1.0/24 
Zone Setup
CloudStack Settings 
Physical Network 
www.shapeblue.com @CloudStackGuru
CloudStack Settings 
Network Traffic Labels 
www.shapeblue.com @CloudStackGuru
CloudStack Settings 
Public Traffic 
www.shapeblue.com @CloudStackGuru 
 Gateway – 172.30.0.1 
 Netmask – 255.255.255.0 
 VLAN - <blank>* 
 Start IP – 172.30.0.21 
 End IP -172.30.0.30 
* Leave VLAN blank so the Host Laptop can access the Public 
Network
CloudStack Settings 
POD Settings 
www.shapeblue.com @CloudStackGuru 
 POD Name – POD1 
 Reserved System Gateway – 192.168.56.1 
 Reserved System Netmask – 255.255.255.0 
 Start Reserved System IP – 192.168.56.21 
 End Reserved System IP – 192.168.56.30
CloudStack Settings 
www.shapeblue.com @CloudStackGuru 
 VLAN Range – 600 - 699 
Guest Traffic
CloudStack Settings 
Storage Traffic 
www.shapeblue.com @CloudStackGuru 
 Gateway – 10.10.101.1 
 Netmask – 255.255.255.0 
 VLAN – <blank>* 
 Start IP – 10.10.101.21 
 End IP – 10.10.101.30 
* Storage VLAN is left blank as it is being set by XenServer on its 
virtual network, if you also set it here it will not work
CloudStack Settings 
www.shapeblue.com @CloudStackGuru 
 Hypervisor – XenServer 
 Cluster Name – CLU1 
Cluster
CloudStack Settings 
 Host Name - 192.168.56.101 
www.shapeblue.com @CloudStackGuru 
 Username – root 
 Password – xxxxxxxx 
Host
CloudStack Settings 
www.shapeblue.com @CloudStackGuru 
 Name – PRI1 
 Scope – Cluster 
 Server – 10.10.100.11 
 Path - /exports/primary 
Primary Storage
CloudStack Settings 
Secondary Storage 
www.shapeblue.com @CloudStackGuru 
 Provider – NFS 
 Name – SEC1 
 Server – 10.10.101.11 
 Path - /exports/secondary
Enhanced Deployment 
 Sandbox configuration limits access to only the Host laptop 
 Enhanced configuration allows external access to system: 
www.shapeblue.com @CloudStackGuru 
 Management Server 
 Secondary Storage VM and Console Proxy VM 
 XenServer Management (via XenCenter) 
 Also enables: 
 External Hypervisors (e.g. ESXi Cluster) 
 External Storage
Changes to VirtualBox 
 Replace ‘Host Only’ Networks with ‘Bridged’ Networks 
 Requires Physical NIC as VirtualBox does not support Promiscuous 
www.shapeblue.com @CloudStackGuru 
mode over Wifi 
 Public IP Range should be compatible with Hosts Physical Network 
 Management Network 
 Replace 192.168.56.x with 192.168.57.x (prevents conflict with VB) 
 Add 192.168.57.x IP to Host Laptop as secondary IP 
 Configure external devices with 192.168.57.x IP to access UI 
 Will still operate as a ‘Sandbox’ config when not connected to 
Bridged Network
Get Ambitious! 
 2x CloudStack Management 
 2x MySQL - Master / Slave 
www.shapeblue.com @CloudStackGuru 
 2x HAProxy Keepalived 
 2x Bind Servers 
 2x Citrix XenServers 
All on an 8GB RAM Laptop 
Quick Demo (if time allows)
Building Virtualised CloudStack 
Test Environments 
Geoff Higginbottom 
CTO ShapeBlue 
geoff.higginbottom@shapeblue.com 
Twitter: @CloudStackGuru

More Related Content

What's hot

What's hot (20)

VM Job Queues in CloudStack
VM Job Queues in CloudStackVM Job Queues in CloudStack
VM Job Queues in CloudStack
 
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
 
Deep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingDeep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
 
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
 
Five common customer use cases for Virtual SAN - VMworld US / 2015
Five common customer use cases for Virtual SAN - VMworld US / 2015Five common customer use cases for Virtual SAN - VMworld US / 2015
Five common customer use cases for Virtual SAN - VMworld US / 2015
 
[2018] 오픈스택 5년 운영의 경험
[2018] 오픈스택 5년 운영의 경험[2018] 오픈스택 5년 운영의 경험
[2018] 오픈스택 5년 운영의 경험
 
Introduction to virtualization
Introduction to virtualizationIntroduction to virtualization
Introduction to virtualization
 
Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
CloudStack Architecture
CloudStack ArchitectureCloudStack Architecture
CloudStack Architecture
 
The kvm virtualization way
The kvm virtualization wayThe kvm virtualization way
The kvm virtualization way
 
VMware Virtual SAN Presentation
VMware Virtual SAN PresentationVMware Virtual SAN Presentation
VMware Virtual SAN Presentation
 
Alexei Vladishev - Zabbix - Monitoring Solution for Everyone
Alexei Vladishev - Zabbix - Monitoring Solution for EveryoneAlexei Vladishev - Zabbix - Monitoring Solution for Everyone
Alexei Vladishev - Zabbix - Monitoring Solution for Everyone
 
LXC入門 - Osc2011 nagoya
LXC入門 - Osc2011 nagoyaLXC入門 - Osc2011 nagoya
LXC入門 - Osc2011 nagoya
 
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
 
VMware vSAN - Novosco, June 2017
VMware vSAN - Novosco, June 2017VMware vSAN - Novosco, June 2017
VMware vSAN - Novosco, June 2017
 
Volume Encryption In CloudStack
Volume Encryption In CloudStackVolume Encryption In CloudStack
Volume Encryption In CloudStack
 
CloudStack Networking
CloudStack NetworkingCloudStack Networking
CloudStack Networking
 
Cloudstack for beginners
Cloudstack for beginnersCloudstack for beginners
Cloudstack for beginners
 
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
 
Docker and CloudStack
Docker and CloudStackDocker and CloudStack
Docker and CloudStack
 

Similar to Building virtualised CloudStack test environments

Trouble shooting apachecloudstack
Trouble shooting apachecloudstackTrouble shooting apachecloudstack
Trouble shooting apachecloudstack
Sailaja Sunil
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
Youssef EL HADJ
 

Similar to Building virtualised CloudStack test environments (20)

Building cloud stack at scale
Building cloud stack at scaleBuilding cloud stack at scale
Building cloud stack at scale
 
Trouble shooting apachecloudstack
Trouble shooting apachecloudstackTrouble shooting apachecloudstack
Trouble shooting apachecloudstack
 
Silicon Valley CloudStack User Group - Designing CloudStack Clouds
Silicon Valley CloudStack User Group - Designing CloudStack CloudsSilicon Valley CloudStack User Group - Designing CloudStack Clouds
Silicon Valley CloudStack User Group - Designing CloudStack Clouds
 
VDCF Overview
VDCF OverviewVDCF Overview
VDCF Overview
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
 
5 simple steps to migrate to AWS
5 simple steps to migrate to AWS5 simple steps to migrate to AWS
5 simple steps to migrate to AWS
 
Automating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with PuppetAutomating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with Puppet
 
Guaranteeing CloudStack Storage Performance
Guaranteeing CloudStack Storage Performance Guaranteeing CloudStack Storage Performance
Guaranteeing CloudStack Storage Performance
 
Continuent webinar 02-19-2015
Continuent webinar 02-19-2015Continuent webinar 02-19-2015
Continuent webinar 02-19-2015
 
How to configure esx to pass an audit
How to configure esx to pass an auditHow to configure esx to pass an audit
How to configure esx to pass an audit
 
Vsphere 4-partner-training180
Vsphere 4-partner-training180Vsphere 4-partner-training180
Vsphere 4-partner-training180
 
Automating Azure VMs with PowerShell
Automating Azure VMs with PowerShellAutomating Azure VMs with PowerShell
Automating Azure VMs with PowerShell
 
How to build a Citrix infrastructure on AWS
How to build a Citrix infrastructure on AWSHow to build a Citrix infrastructure on AWS
How to build a Citrix infrastructure on AWS
 
Automating CloudStack and hypervisor installation and configuration
Automating CloudStack and hypervisor installation and configurationAutomating CloudStack and hypervisor installation and configuration
Automating CloudStack and hypervisor installation and configuration
 
3. v sphere big data extensions
3. v sphere big data extensions3. v sphere big data extensions
3. v sphere big data extensions
 
How to create a secured cloudera cluster
How to create a secured cloudera clusterHow to create a secured cloudera cluster
How to create a secured cloudera cluster
 
Cloudstack选型
Cloudstack选型Cloudstack选型
Cloudstack选型
 
Ansible & CloudStack - Configuration Management
Ansible & CloudStack - Configuration ManagementAnsible & CloudStack - Configuration Management
Ansible & CloudStack - Configuration Management
 
Kl 031.30 eng_class_setup_guide_1.2
Kl 031.30 eng_class_setup_guide_1.2Kl 031.30 eng_class_setup_guide_1.2
Kl 031.30 eng_class_setup_guide_1.2
 
DRaaS to Azure with Zerto
DRaaS to Azure with ZertoDRaaS to Azure with Zerto
DRaaS to Azure with Zerto
 

More from ShapeBlue

More from ShapeBlue (20)

CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlueCloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
 
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlueCloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
 
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
 
VM Migration from VMware to CloudStack and KVM – Suresh Anaparti, ShapeBlue
VM Migration from VMware to CloudStack and KVM – Suresh Anaparti, ShapeBlueVM Migration from VMware to CloudStack and KVM – Suresh Anaparti, ShapeBlue
VM Migration from VMware to CloudStack and KVM – Suresh Anaparti, ShapeBlue
 
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHubHow We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
 
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
 
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
 
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIOHow We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
 
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
 
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
 
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
 
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
 
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
 
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
 
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
 
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
 
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
 
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
 
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
 
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Building virtualised CloudStack test environments

  • 1. Building Virtualised CloudStack Test Environments Geoff Higginbottom CTO ShapeBlue geoff.higginbottom@shapeblue.com Twitter: @CloudStackGuru
  • 2.  Cloud Architect & ShapeBlue CTO www.shapeblue.com @CloudStackGuru  Specialise in….  Designing & Building Clouds based on Apache CloudStack / Citrix CloudPlatform  Developing CloudStack training  Blogging and sharing CloudStack knowledge  Involved with CloudStack before donation to Apache  Designed Clouds for Cloudera, Everyware, SunGard, Ascenty, BskyB, Trader Media, M5 Hosting, Team Cymru, Interoute, University of Pennsylvania.…  CloudStack Committer About Me
  • 3. Requirements  Portable Test / Training / Demo Environment  Windows, MAC and Linux Support www.shapeblue.com @CloudStackGuru  Open Source Software  Reflect Production CloudStack deployments  Basic Networking  With and Without Security Groups  Advanced Networking  VLANs for Traffic Isolation  Utilise XenServer Hypervisor(s)  Shared / Local Primary Storage  Dedicated Storage Networks for Shared Primary, and Secondary Storage  100% CloudStack Feature Support
  • 4. Additional Requirements www.shapeblue.com @CloudStackGuru  Flexible Architecture  Remote access to system  Manage external Hypervisors  Use External Storage  Test HA Failover  Dual Management Servers with Load Balancing  Dual MySQL Servers with Replication  Dual DNS for ‘Internal DNS’  Configuration Management (Ansible)
  • 5. VirtualBox  Cross Platform Virtualisation Application  Support to Windows, OSX and Linux  OpenSource (unlike VMware Workstation / Fusion)  Capable of running XenServer (but without HVM support)  Downloads available from  https://www.virtualbox.org/wiki/Downloads www.shapeblue.com @CloudStackGuru
  • 6. www.shapeblue.com @CloudStackGuru  Management Server VM  CentOS 6.5 VM  CloudStack Management Server  MySQL Server  NFS Storage Server  NGINX (for hosting templates)  XenServer VM  XenServer 6.2 Sandbox Deployment
  • 7. Storage Host Only Network 2 Public Host Only Network 1 www.shapeblue.com @CloudStackGuru NAT Network Design Management Guest XenServer VM Host Only Network 0 Internal Network Management VM NFS Storage Templates
  • 8. Network Design Management VM XenServer VM Storage 10.10.100.0/24 – vlan 100 10.10.101.0/24 – vlan 101 Public 172.30.0.0/24 - untagged Management Guest 192.168.56.0/24 - untagged 10.1.1.0/24 vlans 600-699 www.shapeblue.com @CloudStackGuru NFS Storage Templates NAT 10.0.2.0/24
  • 9. VirtualBox Configuration Management VM Resources www.shapeblue.com @CloudStackGuru  2GB RAM  Minimum required to install CloudStack  Reduce to 1GB after CloudStack is deployed  1vCPU  Enable I/O APIC, PAE/NX, VT-x/AMD-v  4 NICs  16 GB disc minimum – more if available on host
  • 10. VirtualBox Configuration Management VM Networks www.shapeblue.com @CloudStackGuru Adapter 1: Management Traffic
  • 11. VirtualBox Configuration Management VM Networks www.shapeblue.com @CloudStackGuru Adapter 2: NAT to enable access to internet for install and updating etc
  • 12. VirtualBox Configuration Management VM Networks www.shapeblue.com @CloudStackGuru Adapter 3: ‘Public’ Traffic to allow the hosting of Templates via nginx
  • 13. VirtualBox Configuration Management VM Networks www.shapeblue.com @CloudStackGuru Adapter 4: Storage Traffic acting as NFS Server for Primary and Secondary Storage
  • 14. VirtualBox Configuration XenServer VM Resources www.shapeblue.com @CloudStackGuru  1.5GB (4GB RAM Host)  2vCPU  Enable I/O APIC, PAE/NX, VT-x/AMD-v  4 NICs  16 GB disk minimum – more if testing local storage
  • 15. VirtualBox Configuration XenServer VM Networks www.shapeblue.com @CloudStackGuru Adapter 1: Management Traffic
  • 16. VirtualBox Configuration XenServer VM Networks www.shapeblue.com @CloudStackGuru Adapter 2: Guest Traffic
  • 17. VirtualBox Configuration XenServer VM Networks www.shapeblue.com @CloudStackGuru Adapter 3: Public Traffic
  • 18. VirtualBox Configuration XenServer VM Networks www.shapeblue.com @CloudStackGuru Adapter 4: Storage Traffic
  • 19. Management Server Interfaces eth0 - Management DEVICE=eth0 TYPE=Ethernet IPADDR=192.168.56.11 PREFIX=24 ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME=MGMT www.shapeblue.com @CloudStackGuru
  • 20. Management Server Interfaces eth1 - NAT DEVICE=eth1 TYPE=Ethernet IPADDR=10.0.2.11 GATEWAY=10.0.2.1 PREFIX=24 ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none DEFROUTE=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME=NAT www.shapeblue.com @CloudStackGuru
  • 21. Management Server Interfaces eth2 – Public DDEVICE=eth2 TYPE=Ethernet IPADDR=172.30.0.11 PREFIX=24 ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME=PUBLIC www.shapeblue.com @CloudStackGuru
  • 22. Management Server Interfaces eth3 / eth3.100 / eth3.101 - Storage DEVICE=eth3.100 TYPE=Ethernet IPADDR=10.10.100.11 PREFIX=24 ONBOOT=yes BOOTPROTO=none NAME=PRI-STOR VLAN=yes USERCTL=no MTU=9000 DEVICE=eth3.101 TYPE=Ethernet IPADDR=10.10.101.11 PREFIX=24 ONBOOT=yes BOOTPROTO=none NAME=SEC-STOR VLAN=yes USERCTL=no MTU=9000 www.shapeblue.com @CloudStackGuru DEVICE=eth3 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes MTU=9000 VLAN=yes USERCTL=no MTU=9000
  • 24. Management Server Install  Install CentOS 6.5 Minimal and update  Follow the ‘Quick Installation Guide for CentOS’  http://docs.cloudstack.apache.org/projects/cloudstack-installation/ en/latest/qig.html  Install and configure the following: www.shapeblue.com @CloudStackGuru  MySQL Server  NFS  CloudStack-Management
  • 25. Configuration Tweaks  Install nginx so it can be used to host Templates  Once installed download the default CentOS template and place in the nginx web folder # cd /usr/share/nginx/html # wget -nc http://download.cloud.com/templates/builtin/centos56- x86_64.vhd.bz2  Update the CloudStack DB to change the location of the default template # mysql –p<password> cloud -e "UPDATE cloud.vm_template SET url='http://192.168.56.11/centos56-x86_64.vhd.bz2' WHERE unique_name='centos56-x86_64-xen';" www.shapeblue.com @CloudStackGuru
  • 26. Configuration Tweaks Enable use of Non-HVM XenServer # mysql –p<password> cloud -e "INSERT INTO cloud.configuration (category, instance, component, name, value, description) VALUES ('Advanced', 'DEFAULT', 'management-server', 'xen.check.hvm', 'false', 'Shoud we allow only the XenServers support HVM');" www.shapeblue.com @CloudStackGuru
  • 27. Configuration Tweaks Reduce the RAM allocations for System VMs # mysql -u root –p<password> cloud -e "UPDATE cloud.service_offering SET ram_size='128', speed='128' WHERE vm_type='domainrouter';" # mysql -u root –p<password> cloud -e "UPDATE cloud.service_offering SET ram_size='128', speed='128' WHERE vm_type='elasticloadbalancervm';" # mysql -u root –p<password> cloud -e "UPDATE cloud.service_offering SET ram_size='128', speed='128' WHERE vm_type='secondarystoragevm';" # mysql -u root –p<password> cloud -e "UPDATE cloud.service_offering SET ram_size='128', speed='128' WHERE vm_type='internalloadbalancervm';" # mysql -u root –p<password> cloud -e "UPDATE cloud.service_offering SET ram_size='128', speed='128' WHERE vm_type='consoleproxy';" www.shapeblue.com @CloudStackGuru
  • 28. Configuration Tweaks Update Global Settings for this special install expunge.delay = 60 expunge.interval = 60 account.cleanup.interval = 60 capacity.skip.counting.hours = 60 cluster.cpu.allocated.capacity.disablethreshold = 0.99 cluster.memory.allocated.capacity.disablethreshold = 0.99 capacity.check.period = 60000 event.purge.delay = 1 network.gc.interval = 60 network.gc.wait = 60 vm.op.cleanup.interval = 600 www.shapeblue.com @CloudStackGuru
  • 29. Configuration Tweaks Update Global Settings for this special install vm.op.cleanup.wait = 60 vm.tranisition.wait.interval = 600 vm.tranisition.wait.interval = 600 vpc.cleanup.interval = 60 cpu.overprovisioning.factor = 4 storage.overprovisioning.factor = 4 secstorage.allowed.internal.sites = 192.168.56.11/32 management.network.cidr = 192.168.56.0/24 host = 192.168.56.11 enable.dynamic.scale.vm = true secstorage.vm.mtu.size = 9000 www.shapeblue.com @CloudStackGuru
  • 30. XenServer Install  Install XenServer 6.2 from ISO  Apply latest patches in line with http://support.citrix.com/cms/kc/cloud-troubleshooting/ cloudplatform-compatibility-matrix/ www.shapeblue.com @CloudStackGuru
  • 31. CloudStack Settings www.shapeblue.com @CloudStackGuru  Zone Name – Test  IPv4 DNS1 – 8.8.8.8  Internal DNS 1 – 192.168.56.11  Hypervisor – XenServer  Guest CIDR – 10.1.1.0/24 Zone Setup
  • 32. CloudStack Settings Physical Network www.shapeblue.com @CloudStackGuru
  • 33. CloudStack Settings Network Traffic Labels www.shapeblue.com @CloudStackGuru
  • 34. CloudStack Settings Public Traffic www.shapeblue.com @CloudStackGuru  Gateway – 172.30.0.1  Netmask – 255.255.255.0  VLAN - <blank>*  Start IP – 172.30.0.21  End IP -172.30.0.30 * Leave VLAN blank so the Host Laptop can access the Public Network
  • 35. CloudStack Settings POD Settings www.shapeblue.com @CloudStackGuru  POD Name – POD1  Reserved System Gateway – 192.168.56.1  Reserved System Netmask – 255.255.255.0  Start Reserved System IP – 192.168.56.21  End Reserved System IP – 192.168.56.30
  • 36. CloudStack Settings www.shapeblue.com @CloudStackGuru  VLAN Range – 600 - 699 Guest Traffic
  • 37. CloudStack Settings Storage Traffic www.shapeblue.com @CloudStackGuru  Gateway – 10.10.101.1  Netmask – 255.255.255.0  VLAN – <blank>*  Start IP – 10.10.101.21  End IP – 10.10.101.30 * Storage VLAN is left blank as it is being set by XenServer on its virtual network, if you also set it here it will not work
  • 38. CloudStack Settings www.shapeblue.com @CloudStackGuru  Hypervisor – XenServer  Cluster Name – CLU1 Cluster
  • 39. CloudStack Settings  Host Name - 192.168.56.101 www.shapeblue.com @CloudStackGuru  Username – root  Password – xxxxxxxx Host
  • 40. CloudStack Settings www.shapeblue.com @CloudStackGuru  Name – PRI1  Scope – Cluster  Server – 10.10.100.11  Path - /exports/primary Primary Storage
  • 41. CloudStack Settings Secondary Storage www.shapeblue.com @CloudStackGuru  Provider – NFS  Name – SEC1  Server – 10.10.101.11  Path - /exports/secondary
  • 42. Enhanced Deployment  Sandbox configuration limits access to only the Host laptop  Enhanced configuration allows external access to system: www.shapeblue.com @CloudStackGuru  Management Server  Secondary Storage VM and Console Proxy VM  XenServer Management (via XenCenter)  Also enables:  External Hypervisors (e.g. ESXi Cluster)  External Storage
  • 43. Changes to VirtualBox  Replace ‘Host Only’ Networks with ‘Bridged’ Networks  Requires Physical NIC as VirtualBox does not support Promiscuous www.shapeblue.com @CloudStackGuru mode over Wifi  Public IP Range should be compatible with Hosts Physical Network  Management Network  Replace 192.168.56.x with 192.168.57.x (prevents conflict with VB)  Add 192.168.57.x IP to Host Laptop as secondary IP  Configure external devices with 192.168.57.x IP to access UI  Will still operate as a ‘Sandbox’ config when not connected to Bridged Network
  • 44. Get Ambitious!  2x CloudStack Management  2x MySQL - Master / Slave www.shapeblue.com @CloudStackGuru  2x HAProxy Keepalived  2x Bind Servers  2x Citrix XenServers All on an 8GB RAM Laptop Quick Demo (if time allows)
  • 45. Building Virtualised CloudStack Test Environments Geoff Higginbottom CTO ShapeBlue geoff.higginbottom@shapeblue.com Twitter: @CloudStackGuru