34
Introducing XenServer Stephen Rice (Lead Software Engineer) June 2010

Introducing Xen Server

Embed Size (px)

DESCRIPTION

A quick introduction into server virtualisation with XenServer, including a brief architecture discussion and various features that are available.

Citation preview

Page 1: Introducing Xen Server

Introducing XenServerStephen Rice (Lead Software Engineer)June 2010

Page 2: Introducing Xen Server

• What is server virtualization?

• What benefits does it have?

• Citrix XenServer in detail

• Taking a look at the feature list

Agenda

Page 3: Introducing Xen Server

Server virtualization enables multiple virtual machines to run

on a single physical server.

Page 4: Introducing Xen Server

Almost any operating system you want.Q. What can you run as a virtual machine?

• Windows (XP, Vista, 7, 2000, 2003, 2008…)

• Linux (RHEL, SLES, Debian, Centos, Oracle…)

• Many more community supported guests

Page 5: Introducing Xen Server

• CPU, Memory

• Disks (storage)

• Networks

What does a virtual machine need?

Pool

Shared Storage

Page 6: Introducing Xen Server

Non Virtual

zzz

zzz

Page 7: Introducing Xen Server

Virtualization

Page 8: Introducing Xen Server

• Server consolidation

• Failure recovery

• Security and sandboxing

• Resource balancing

• Backup, restore and clone

• Simple management

Benefits of Virtualization

Page 9: Introducing Xen Server

• Server consolidation

Benefits of Virtualization

• Server power consumption

• Server cooling costs

• Space requirements

• Hardware maintenance costs

Page 10: Introducing Xen Server

• Failure recovery

Benefits of Virtualization

• High availability

• Snapshot and restore

Page 11: Introducing Xen Server

• Security and sandboxing

Benefits of Virtualization

• Malicious code

• Legacy testing

• Upgrade preview

Page 12: Introducing Xen Server

• Resource balancing

Benefits of Virtualization

• Consolidate in periods of low demand

• Spread out for periods of high demand

• Monitor and adapt to changing requirements

Page 13: Introducing Xen Server

• Backup, restore and clone

Benefits of Virtualization

• Rapid deployment of new setups

• Extend existing capabilities

• Simplify staging to production transition

Page 14: Introducing Xen Server

• Simple management

Benefits of Virtualization

• Manage workloads from a single console

• Organizational tools

• At a glance status reports

Page 15: Introducing Xen Server

• Server consolidation

• Failure recovery

• Security and sandboxing

• Resource balancing

• Backup, restore and clone

• Simple management

Benefits of Virtualization

Page 16: Introducing Xen Server

Citrix XenServer in detail

Single operating system that has direct access to the underlying hardware.

Normal Server

Host OS has access to the hardware and runs a hypervisor which manages the VMs.

• E.g. VMWare Server

• Security and performance trade off

Type 2 Hypervisor

Hypervisor controls access to the hardware for all guests VMs.

• E.g. XenServer, VMWare ESXi

• ‘Bare metal’ performance

Type 1 Hypervisor

Hardware Hardware

OS Hypervisor

Hardware

Hypervisor

Page 17: Introducing Xen Server

Citrix XenServer in detail

• Open source Xen / Open source XenServer

• Privileged VM called Domain 0

• Gives commands to the hypervisor

• Coordinates networking/storage

• Communicates with external clients

• XenCenter, Workload Balancing Server, Active Directory e.t.c

Page 18: Introducing Xen Server

Citrix XenServer compared to Vmware ESXi

• Established server virtualization company

• Extra server to manage database (Single POF)

• Binary translation performance cost

• Mature feature list

• High cost

ESXi

vCenter

ESXi ESXi

Page 19: Introducing Xen Server

Citrix XenServer compared to Vmware ESXi

• Each server keeps a copy of the database

• Any server elected as master

• Free, pay only for enterprise features

• Free, stateless thin management client

XenServer

XenServer

XenServer

Master

Page 20: Introducing Xen Server

• Graphical interface

• VM console access

• Component integration

• Plugins and SDKs

XenCenter management console

Page 21: Introducing Xen Server

• XML-RPC based

• Libraries and examples for Java, C#, C, Python, PowerShell

• XenCenter uses C# bindings

• http://community.citrix.com/display/xs/Download+SDKs

• Open source licensing

• Backwards compatible

Software development kit for XenServer

Page 22: Introducing Xen Server

• 24 hour project using C# XenServer bindings

• Ask the VMs politely to turn off

• Knock them out if they don’t

• Turn off all slaves first before the master

• Allow the user to set which VMs should wake

SleepyLabs example

Page 23: Introducing Xen Server

Message board

example

Page 24: Introducing Xen Server

Hello world example

Page 25: Introducing Xen Server

What else might you need?

Page 26: Introducing Xen Server

• Safety while you sleep

• Automatically migrates VMs

• Guarantees protection

• Master failover

High availability

Page 27: Introducing Xen Server

• Specify a memory range for VMs

• Squeezes and inflates memory

• Overcommit to run more VMs

Dynamic memory control

Page 28: Introducing Xen Server

• Monitors VM resource use

• Recommends VM migrations

• Maximum performance

• Maximum density

• Automatic or manual

Workload balancing

Page 29: Introducing Xen Server

• Integrates with active directory

• Specify a role per user

• Roles restrict users feature access

Role based access control

Page 30: Introducing Xen Server

• Snapshot disks and memory

• Revert to any point in tree

• Running VM

Snapshot and revert

Page 31: Introducing Xen Server

Summary

Page 32: Introducing Xen Server

•Save money: power, space, maintenance cost•Simple management: XenCenter•Live migration: resource management, maintenance•Easy deployment: templates, cloning•Develop: SDK, open source

Free!•High availability for VMs during server failures•Dynamic memory control•Performance alerts with long term reporting

$1k / XenServer

•Workload balancing•Role based access control•Live memory snapshots•More...

$2.5k / XenServer

Page 33: Introducing Xen Server

Citrix Tshirts, come see me afterwards

Also free...