getting started with xenserver and openstack.pptx

43
OpenStack Summit, San Diego, October 2012 Getting Starting XenServer and OpenStack @JohnGarbutt OpenStack Team Lead, Citrix

Upload: openstack-foundation

Post on 14-Dec-2014

4.088 views

Category:

Documents


8 download

DESCRIPTION

true

TRANSCRIPT

Page 1: Getting Started with XenServer and OpenStack.pptx

OpenStack Summit, San Diego, October 2012

Getting StartingXenServer and OpenStack

@JohnGarbuttOpenStack Team Lead, Citrix

Page 2: Getting Started with XenServer and OpenStack.pptx

But Citrix does CloudStack?… but still got full time people on OpenStack

Page 3: Getting Started with XenServer and OpenStack.pptx

Why use Xen?… because it was built for the Cloud!

Page 4: Getting Started with XenServer and OpenStack.pptx

History of Xen

Page 5: Getting Started with XenServer and OpenStack.pptx

We propose a system that can execute code supplied by an untrusted user, yet can charge this user for all resources consumed by the computation. Such servers could be deployed at strategic locations throughout the Internet

Xenoservers: Accounted execution of untrusted code

IEEE Hot Topics in Operating Systems VII

March 1999

Page 6: Getting Started with XenServer and OpenStack.pptx

• Open Source with a large community and ecosystem

• Mature and “Cloud Proven”ᵒ Amazon, Rackspace and many others

• Probably 10-12 Million OpenSource Usersᵒ e.g. 3 x people on Debian have used Xen in the last 30 days vs KVMᵒ 12% of Ubuntu Servers hosted on Xen

• Type 1 hypervisorᵒ Reduced TCBᵒ Best security, isolation, performance, scalability mix

• ParaVirtual OPerationS now in Linux

Why use Xen today?

Page 7: Getting Started with XenServer and OpenStack.pptx

Hypervisor Types

(Hybrid) Type 1 Type 2

Page 8: Getting Started with XenServer and OpenStack.pptx

Even Better IsolationLook at Citrix XenClient XT

Page 9: Getting Started with XenServer and OpenStack.pptx

What is XenAPI?

Page 10: Getting Started with XenServer and OpenStack.pptx

Xen Terminology

Xen = virtual machine monitor

XenAPI = API to manage Xen

XAPI = XenAPI deamon

Dom0 = trusted management VM

DomU = untrusted guest VM

Page 11: Getting Started with XenServer and OpenStack.pptx

1

2

3

4

5

Page 12: Getting Started with XenServer and OpenStack.pptx

How can I install it?

Xen Cloud Platform (XCP)

• Includes Xen and XAPI

• Supported by Xen Community

• Fully OpenSource

• xcp-xapi packageᵒ Debian Wheezy & Ubuntu Preciseᵒ Hopefully in Fedora soon

• http://xen.org/products/cloudxen.html

Citrix XenServer

• Includes Xen and XAPI

• Fully Supported by Citrix

• Free editionᵒ Windows VMsᵒ Pool based Live Migration

http://citrix.com/xenserver/download

Page 13: Getting Started with XenServer and OpenStack.pptx

What does it look like?

Page 14: Getting Started with XenServer and OpenStack.pptx

1

2 3 4

Page 15: Getting Started with XenServer and OpenStack.pptx
Page 16: Getting Started with XenServer and OpenStack.pptx

1

2

3

5

4

6

7

Page 17: Getting Started with XenServer and OpenStack.pptx

DemoLive migration without shared storage

Page 18: Getting Started with XenServer and OpenStack.pptx

How can I get started?… XenServer Specifics

Page 19: Getting Started with XenServer and OpenStack.pptx

Getting Started – Developerhttps://github.com/openstack-dev/devstack/blob/master/tools/xen

Install XenServer Run DevStack

Page 20: Getting Started with XenServer and OpenStack.pptx

InstallXenServer

Install PV VM

Install OpenStack

Getting Started - Deployer

Page 21: Getting Started with XenServer and OpenStack.pptx

Setup Networking

InstallXenAPI Plugins

Create Directories

1 –XenServer

Page 22: Getting Started with XenServer and OpenStack.pptx

InstallPV VM

Installnova-compute

Configure nova-compute

2 – OpenStack DomU

Page 23: Getting Started with XenServer and OpenStack.pptx

Create VM Install Agent or Cloud-Init

Upload VHD to Glance

3 – Create Images

Page 24: Getting Started with XenServer and OpenStack.pptx

Configuration Tips… what to change after package install

Page 25: Getting Started with XenServer and OpenStack.pptx

• compute_driver=xenapi.XenAPIDriver

• xenapi_connection_url=http://10.219.10.26

• xenapi_connection_username=root

• xenapi_connection_password=xenroot

Configure XenAPI Driver

Page 26: Getting Started with XenServer and OpenStack.pptx

flat_network_bridge=xenbr1

public_network=eth3flat_interface=eth1

Page 27: Getting Started with XenServer and OpenStack.pptx

• Dom0 interface: eth0, eth1, …

• Dom0 network “bridges”: xenbr0, xenbr1, xapi0, xapi1, …

• DomU interface: eth0, eth1, …

• public_network=eth3 (DomU)

• flat_network_bridge=xenbr1 (XenAPI network)

• flat_interface=eth1 (DomU)

• (vlan_interface=eth1 – Dom0 & DomU)

• name-label or id

Configure FlatDHCP Networking

Page 28: Getting Started with XenServer and OpenStack.pptx

Where can I find out more?

Page 29: Getting Started with XenServer and OpenStack.pptx

• Ask a question

• Ask on the mailing list

• Read the documentationᵒ http://

docs.openstack.org/trunk/openstack-compute/admin/content/introduction-to-xen.htmlᵒ [TODO – getting started doc]

• Look on the wikiᵒ http://wiki.openstack.org/XenServerᵒ http://wiki.openstack.org/HypervisorSupportMatrix

Get Involved

Page 30: Getting Started with XenServer and OpenStack.pptx

30

Chris Behrens

[email protected]

Using XenServer within Rackspace Cloud Servers

OpenStack Summit, San DiegoOctober 2012

Page 31: Getting Started with XenServer and OpenStack.pptx

31RACKSPACE® HOSTING | WWW.RACKSPACE.COM

Intro to Cloud Servers

Page 32: Getting Started with XenServer and OpenStack.pptx

RACKSPACE® HOSTING | WWW.RACKSPACE.COM

• Public Cloud product under Rackspace’s Open Cloud portfolio

• First Gen– Code originated from Slicehost acquisition

– Initially Xen 3.x, but migrated to XenServer

• Next Gen– Public Launch 8/1/2012

– Powered by OpenStack

• XenServer 6

• Linux, Windows, and FreeBSD VMs

32

Intro to Cloud ServersOverview

Page 33: Getting Started with XenServer and OpenStack.pptx

RACKSPACE® HOSTING | WWW.RACKSPACE.COM

• 180,000+ total Rackspace customers (not just Cloud Servers)

• Tens of thousands of hosts

• Hundreds of thousands of VMs

• Millions of snapshots

33

Intro to Cloud ServersStatistics

Page 34: Getting Started with XenServer and OpenStack.pptx

34RACKSPACE® HOSTING | WWW.RACKSPACE.COM

Why Xen?

Page 35: Getting Started with XenServer and OpenStack.pptx

RACKSPACE® HOSTING | WWW.RACKSPACE.COM

• Thin hypervisor layer

• Open source

• Excellent driver support due to Linux dom0

• Good API

• Good performance

• Along with Linux, Windows VMs are a must– Same virtualization technology desired for Windows

– Microsoft will support

– Good PV driver support

35

Why Xen?

Page 36: Getting Started with XenServer and OpenStack.pptx

36RACKSPACE® HOSTING | WWW.RACKSPACE.COM

glance plugin

Physical host running XenServer

dom0

agent plugin

xenstore plugin

nova utility domU

nova-compute

nova instancedomUs

• Runs in a utility domU on each host

• Images downloaded in dom0

– glance XenAPI plugin

• Images attached to nova-compute domU

– Partitioning changes

– file-system resizing

• Monitors VMs’ power_state

• Snapshots/backups

• VM resize/migration

– rsync to new host

• Communicates w/ agent inside VMs

– Via xenstore

OpenStacknova-compute w/ XenAPI

Page 37: Getting Started with XenServer and OpenStack.pptx

37RACKSPACE® HOSTING | WWW.RACKSPACE.COM

OpenStackRackspace Specifics

Page 38: Getting Started with XenServer and OpenStack.pptx

38RACKSPACE® HOSTING | WWW.RACKSPACE.COM

• Rackspace tracks trunk– Deployed code generally less than 2 weeks behind trunk

• Some custom patches on top of trunk– Features specific to Rackspace

– Custom scheduling to meet Rackspace needs

– Scaling with OpenStack Compute Cells

OpenStack Rackspace SpecificsSource Code

Page 39: Getting Started with XenServer and OpenStack.pptx

39RACKSPACE® HOSTING | WWW.RACKSPACE.COM

• Private internal cloud– Based on Openstack, called iNova

– OpenStack services for public cloud run virtualized under iNova

• Easy to spin up additional services for load balancing– Enables quick reaction to load spikes

• Easier deployments of new compute cells

• Automated reaction to downed hosts

• Enables new strategies for deployments– Replace vs Upgrade

Deploying OpenStack‘Inception’

Page 40: Getting Started with XenServer and OpenStack.pptx

40RACKSPACE® HOSTING | WWW.RACKSPACE.COM

iNovaOpenStack Control Infrastructure for

Public CloudXenServer hosts

domUs

Deploying OpenStackiNova Diagram

Public Cloud XenServer hosts

Public Cloud XenServer hosts

XenServer host w/ OpenStack Control

Infrastructure for iNova

Page 41: Getting Started with XenServer and OpenStack.pptx

41RACKSPACE® HOSTING | WWW.RACKSPACE.COM

• Trunk and custom branches merged multiple times daily– Unit Tested and Packaged

• Configuration managed with puppet– Follows same QE and Continuous Deployment rules as code

• QE Environment– OpenStack control infrastructure deployed on iNova

– nova-compute upgraded on 200 hosts

– Smoke tests

• Staging Deploy– Uses the same packages and puppet manifests

Deploying OpenStackContinuous Deployment

Page 42: Getting Started with XenServer and OpenStack.pptx

Q&A

Page 43: Getting Started with XenServer and OpenStack.pptx

Work better. Live better.