Top Banner
Building Hybrid Cloud Environments with OpenNebula presented by Constantino Vázquez Blanco VP of Engineering at OpenNebula Systems OpenNebula Project Major Contributor
21

OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

Jul 14, 2015

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

Building Hybrid Cloud Environments with OpenNebula

presented by

Constantino Vázquez Blanco VP of Engineering at OpenNebula Systems

OpenNebula Project Major Contributor

Page 2: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Agenda

●  The OpenNebula Hybrid Approach

●  Amazon EC2

●  Live Demo

●  Microsoft Azure

●  Live Demo

●  IBM SoftLayer

●  Live Demo

Page 3: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

The OpenNebula Hybrid Approach

Operative word is transparency •  For the administrator

•  Both local and remote ‘hypervisors’ are modeled as OpenNebula hosts

•  For the end user

•  Consumable VM Templates can be hybrid, meaning multiple sections describing the VM in different locations

Page 4: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

The OpenNebula Hybrid Approach

Unique hybrid approach

●  One OpenNebula Host can be …

●  One local Hypervisor

●  One Public Cloud

●  One Region (EC2) / Location (AZ) /

Datacenter(SL)

●  One Availability Zone

Page 5: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

The OpenNebula Hybrid Approach

Unique hybrid approach

●  End users consume a catalog of hybrid templates

●  Administrators manage

●  Scheduling policies

●  Fixed priority

●  Public Cloud modeled capacity

Page 6: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

The OpenNebula Hybrid Approach

Limitations

●  No ‘magic’ networking

●  Define VPNs, benchmark latency

●  No automatic image upload

●  Admin task to preload or configure images

●  … and, of course, no automatic inter-public cloud

image converting + transferring …

Page 7: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

The OpenNebula Hybrid Approach

Hybrid VM Templates NAME=WebServerCPU=1MEMORY=2048

DISK=[IMAGE=“CentOSLAMP”]NIC=[NETWORK=“Public”

EC2=[ AMI="ami-6f5f1206", INSTANCETYPE="m1.small", KEYPAIR="gsg-keypair" ]

Page 8: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

The OpenNebula Hybrid Approach

Hybrid VM Templates PUBLIC_CLOUD=[ TYPE="SOFTLAYER", INSTANCE_TYPE="slcci.medium", BLOCKDEVICETEMPLATE=“MyLAMPOnSL"]

PUBLIC_CLOUD = [ TYPE=AZURE, INSTANCE_TYPE=ExtraSmall, IMAGE=myLAMPonAZ-30GB, TCP_ENDPOINTS="80",]

Page 9: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

The OpenNebula Hybrid Approach

Local Datacenter

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and

Virtualized Infrastructure

Page 10: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Amazon EC2

Needed Configuration

•  Enable EC2 drivers in /etc/oned.conf

•  Install needed gems (install_gems)

•  Configure credentials & capacity

regions: default: region_name: us-east-1 access_key_id: YOUR_ACCESS_KEY secret_access_key: YOUR_SECRET_ACCESS_KEY capacity: m1.small: 5 m1.large: 0 m1.xlarge: 0 Configure several regions with different credentials and

model them as different OpenNebula hosts

Page 11: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Amazon EC2

Needed Configuration

•  Add a host representing an EC2 region $ onehost create ec2 --im ec2 --vm ec2 --net dummy

•  Launch VM and wait for monitor •  AWS_DNS_NAME •  AWS_PRIVATE_DNS_NAME •  AWS_AVAILABILITY_ZONE •  AWS_VPC_ID •  AWS_PRIVATE_IP_ADDRESS •  AWS_IP_ADDRESS •  AWS_SUBNET_ID •  AWS_SECURITY_GROUPS •  AWS_INSTANCE_TYPE •  …

Page 12: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

EC2 Live Demo

Page 13: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Microsoft Azure

Needed Configuration

•  Enable AZ drivers in /etc/oned.conf

•  Install needed gems (install_gems)

•  Configure credentials & capacity

regions: default: region_name: "West Europe”pem_management_cert: "/path/to/mycert.pem" subscription_id: ”xxxx-xxxx-xxxx” management_endpoint: capacity: Small: 5 Medium: 1 Large: 0 Configure several regions with different credentials and

model them as different OpenNebula hosts

Page 14: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Microsoft Azure

Needed Configuration

•  Add a host representing a Azure location $ onehost create west-europe -i az –v az -n dummy

•  Launch VM and wait for monitor •  AZ_AVAILABILITY_SET_NAME •  AZ_CLOUD_SERVICE_NAME •  AZ_DATA_DISKS •  AZ_DEPLOYMENT_NAME •  AZ_DISK_NAME •  AZ_HOSTNAME •  AZ_IMAGE •  AZ_IPADDRESS •  AZ_MEDIA_LINK

Page 15: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Microsoft Azure

•  AZ_OS_TYPE •  AZ_ROLE_SIZE •  AZ_TCP_ENDPOINTS •  AZ_UDP_ENDPOINTS •  AZ_VIRTUAL_NETWORK_NAME

Page 16: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

Azure Live Demo

Page 17: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

IBM SoftLayer

Needed Configuration

•  Enable SL drivers in /etc/oned.conf

•  Install needed gems (install_gems)

•  Configure credentials & capacity

regions: default: region_name: sjc01 username: SLxxxx api_key: xxxxx capacity: slcci.small: 5 slcci.large: 0 slcci.large: 0

Configure several regions with different credentials and model them as different OpenNebula hosts

Page 18: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

IBM SoftLayer

Needed Configuration

•  Add a host representing a SoftLayer location $ onehost create sjc01 –I sl –v sl -n dummy

•  Launch VM and wait for monitor

•  SL_CRED_PASSWORD

•  SL_CRED_USER

•  SL_DOMAIN

•  SL_FULLYQUALIFIEDDOMAINNAME

•  SL_GLOBALIDENTIFIER

•  SL_HOSTNAME

Page 19: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

IBM SoftLayer

•  SL_ID

•  SL_MAXCPU

•  SL_MAXMEMORY

•  SL_PRIMARYBACKENDIPADDRESS

•  SL_PRIMARYIPADDRESS

•  SL_STARTCPUS

•  SL_UUID

Page 20: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

SoftLayer Live Demo

Page 21: OpenNebulaConf 2014 - Building Hybrid Cloud Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Questions? Enjoy the rest of the Conference!