xen virtualization 2008

24
Xen Virtualization November 2008 Michael Lang [email protected]

Upload: mwlang88

Post on 20-Jun-2015

2.807 views

Category:

Technology


0 download

DESCRIPTION

A presentation on Xen and Virtualization in general.

TRANSCRIPT

Page 1: Xen Virtualization 2008

Xen VirtualizationNovember 2008

Michael [email protected]

Page 2: Xen Virtualization 2008

The Main Players

Page 3: Xen Virtualization 2008

Virtualization Awareness

Fully-virtualized All hardware fully emulated. Kernel is unaware it is virtualized.

Para-virtualized Kernel modified to be “aware” Direct access to some hardware

devices, so less emulation overhead.

Page 4: Xen Virtualization 2008

CPU Technology: Intel-VT and AMD-V

What is it Good for? Efficient Hypervisor by eliminating

need to “trap and emulate”

End Result: Running an unmodified version of an

OS as a Guest.

Page 5: Xen Virtualization 2008

When is Intel-VT and AMD-V Needed?

VMWare Xen32-bit 64-bit 32-bit 64-bit 32-bit 64-bit 32-bit 64-bit

Intel-VT No Yes No Yes Yes Yes No NoAMD-V No No No No Yes Yes No No

Unmodified Kernel Fully virtualized

Modified Kernel Para-virtualized

Page 6: Xen Virtualization 2008

What am I getting into?

Why Use Virtual Technologies?

Page 7: Xen Virtualization 2008

Implement High Availability

VM Guest stays up and running even if the physical Host machine goes down.

Requires: SAN Three or More Physical Hosts Clustered, Shared Filesystem

Page 8: Xen Virtualization 2008

Increase Hardware Utilization

Run More on Less.

Boost CPU and RAM Utilization dramatically.

Take full advantage of RAM and Multi-core CPU’s.

Page 9: Xen Virtualization 2008

Separate Service from Hardware

Liberate Windows Systems.

Backup and Restore a Fully configured system cheaply.

Upgrade hardware painlessly.

Page 10: Xen Virtualization 2008

Business Continuity

Set up Once, distribute to multiple Data Centers.

Offsite Disaster Recovery through simple backup/restore process.

Load balance across Data Centers.

Page 11: Xen Virtualization 2008

Try New Things

Provision New Servers within an Hour.

Teardown/Rebuild of Servers is highly efficient.

Clone and perform “dry-runs” before attempting on Production.

Page 12: Xen Virtualization 2008

Getting Started…

Order of Importance: Sufficient RAM Fast Front-Side Bus (FSB) Fast Hard Drives and Controllers Multi-core CPU’s Cache memory CPU speed Network Bandwidth

Page 13: Xen Virtualization 2008

Start Small…

Take a Desktop, install 2gb of RAM.

Install VMWare Server Free.

Install Windows and Linux as guest OS’s.

Get to know the terminology.

Page 14: Xen Virtualization 2008

Try it in the Data Center…

Install Free versions of Xen or VMWare Server on an underutilized Server.

Bring up your new Service on VM Guests.

Get comfortable managing.

Learn to backup efficiently.

Page 15: Xen Virtualization 2008

Make your Business Case…

Show your boss, make your case, get the equipment.

Convert oldest, slowest or most unstable servers first.

Save critical resources and high I/O systems (databases, file servers) for last.

Get used to diagnosing issues, pinpointing bottlenecks or stability issues.

Page 16: Xen Virtualization 2008

Watch Your Performance Closely

Know when you’re saturating: Hard drive I/O throughput Network bandwidth CPU utilization

Commercial/Enterprise Licenses make this easier to monitor and manage.

Page 17: Xen Virtualization 2008

For High Availability Dedicated iSCSI VLAN w/dedicated

NICs.

Line-speed, non-blocking switches

Host Bus Adaptors with TCP/IP offload Engines (TOE).

Wide-striped LUN’s.

Load-balancing Storage Processors on your SAN

Page 18: Xen Virtualization 2008

What I’m UsingHardware Software

3 x Dell 2950’s 2 x quad-core Xeon 2.33ghz16-gb RAM4x250gb RAID 5 SCSIDual port iSCSI HBA

1 x Dell 29502 x quad-core Xeon 3.2ghz16gb RAM5x250gb RAID 5 SASDual port iSCSI HBA

1 x Dell AX150i2 storage processors12x500gb SATA II drives

2 x Dell 6248 GbE Switches

Linux:Oracle VM for Host

Fedora Core 8, CentOS 4, CentOS 5 Xen kernels for guests.

Red Hat’s Kickstart for provisioning new VM guests.

CentOS repositories to maintain patches on Oracle VM Host and CentOS guests.

Fedora Core repositories for FC8

Page 19: Xen Virtualization 2008

Baphst01: xm list

Page 20: Xen Virtualization 2008

Baphst01: xm top

Page 21: Xen Virtualization 2008

What’s Running in our Environment?

Host Guests

Baphst01 18

Baphst02 10

Baphst03 19

Baphst04 15

Total 62

Apache ServersRails Application ServersContinuous Build ServersDNS ServersEmail ServersMySQL ServersPostgreSQL ServersSubversion ServerTrac Wiki ServersRepositoriesNagios

Page 22: Xen Virtualization 2008

Maintenance Plan

Whenever Guest Images are provisioned or patched, Guest is downed and image backed up to SAN.

We use automated deployment tools and strict adherence to conventions to configure guest VMs and deploy our systems (Ruby on Rails).

Stress Rebuild over Restore.

Page 23: Xen Virtualization 2008

Maintenance Plan

All config files kept in Subversion, which is hot copied to SAN via SAMBA shared resources.

Mysql, Postgresql and SQL Server 2005 backed up to SAN via SAMBA shared resources.

SAN backed up to portable 500gb USB drives via rsync.

Page 24: Xen Virtualization 2008

Questions and Answers