Getting Started with XenServer and OpenStack.pptx

Post on 14-Dec-2014

4.080 views 8 download

description

true

Transcript of Getting Started with XenServer and OpenStack.pptx

OpenStack Summit, San Diego, October 2012

Getting StartingXenServer and OpenStack

@JohnGarbuttOpenStack Team Lead, Citrix

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

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

History of Xen

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

• 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?

Hypervisor Types

(Hybrid) Type 1 Type 2

Even Better IsolationLook at Citrix XenClient XT

What is XenAPI?

Xen Terminology

Xen = virtual machine monitor

XenAPI = API to manage Xen

XAPI = XenAPI deamon

Dom0 = trusted management VM

DomU = untrusted guest VM

1

2

3

4

5

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

What does it look like?

1

2 3 4

1

2

3

5

4

6

7

DemoLive migration without shared storage

How can I get started?… XenServer Specifics

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

Install XenServer Run DevStack

InstallXenServer

Install PV VM

Install OpenStack

Getting Started - Deployer

Setup Networking

InstallXenAPI Plugins

Create Directories

1 –XenServer

InstallPV VM

Installnova-compute

Configure nova-compute

2 – OpenStack DomU

Create VM Install Agent or Cloud-Init

Upload VHD to Glance

3 – Create Images

Configuration Tips… what to change after package install

• compute_driver=xenapi.XenAPIDriver

• xenapi_connection_url=http://10.219.10.26

• xenapi_connection_username=root

• xenapi_connection_password=xenroot

Configure XenAPI Driver

flat_network_bridge=xenbr1

public_network=eth3flat_interface=eth1

• 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

Where can I find out more?

• 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

30

Chris Behrens

chris.behrens@rackspace.com

Using XenServer within Rackspace Cloud Servers

OpenStack Summit, San DiegoOctober 2012

31RACKSPACE® HOSTING | WWW.RACKSPACE.COM

Intro to Cloud Servers

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

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

34RACKSPACE® HOSTING | WWW.RACKSPACE.COM

Why Xen?

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?

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

37RACKSPACE® HOSTING | WWW.RACKSPACE.COM

OpenStackRackspace Specifics

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

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’

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

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

Q&A

Work better. Live better.