opennebula conf 2014 | building hybrid cloud federated environments with opennebula - tino vazquez

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

Upload: netways

Post on 06-Jul-2015

374 views

Category:

Software


1 download

DESCRIPTION

Hybrid functionality enables a private cloud administrator to outsource the cloud workload -read, the cloud VMs- to an external public cloud provider. OpenNebula approach to hybrid cloud is quite unique, in this talk we will explain how transparency for the user is achieved, and what tools OpenNebula gives to the administrator to build a fully functional hybrid cloud. Moreover, in this talk we will introduce the support for two new public cloud providers, available from OpenNebula 4.8. Before this release, integration with AWS was the default in OpenNebula, but now you can build clouds that expand to IBM SoftLayer and Microsoft Azure as well.

TRANSCRIPT

Page 1: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated Environments with OpenNebula - Tino Vazquez

EC2 Live Demo

Page 13: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated Environments with OpenNebula - Tino Vazquez

Azure Live Demo

Page 17: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated 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: OpenNebula Conf 2014 | Building Hybrid Cloud Federated Environments with OpenNebula - Tino Vazquez

SoftLayer Live Demo

Page 21: OpenNebula Conf 2014 | Building Hybrid Cloud Federated Environments with OpenNebula - Tino Vazquez

OpenNebula.org #OpenNebulaConf

Questions? Enjoy the rest of the Conference!