An Introduction to Server Virtualisation

Alan McSweeney

A loose definition

Virtualisation is a framework or methodology of dividing the resources of a computer into multiple execution environments, by applying one or more concepts or technologies such as hardware and software partitioning, time-sharing, partial or complete machine simulation, emulation, quality of service, and many others.

November 26, 2009

2

Some history

− An old concept — first virtual machines created on IBM mainframes in early ’60s − Typically, IBM's virtual machines were identical "copies" of the underlying hardware. Each instance could run its own operating system. − Virtualisation formed the basis of “time sharing”

November 26, 2009

3

Some virtual machines you may know…

− NT had Virtual DOS Machine (NTVDM) and Windows on Win32 (WOW) − Windows 95 used virtual machines to run older (Windows 3.x and DOS) applications

November 26, 2009

4

The old model
− A server for every application − Software and hardware are tightly coupled − Underutilised resources introduce real cost into the infrastructure

November 26, 2009

5

The new model
− Physical hardware is abstracted by a virtualisation layer, or

hypervisor
− Manage OS and application as a single unit by encapsulating them into virtual machines − Separate OS and hardware and break hardware dependancies − Optimise utilisation levels

November 26, 2009

6

Increased Hardware Utilisation

Before Virtualisation

After Virtualisation

November 26, 2009

7

Underutilisation of Resources

Most organisations overprovision
− Multiple processors in each server − Memory requirements overestimated

Aim to drive up CPU utilisation
Actual DSS customer data – 120 servers monitored

November 26, 2009

8

Virtual Infrastructure
• • • •

Virtual infrastructure brings uniformity to the data centre Dynamically map computing resources to the business Lower IT costs through increased efficiency, flexibility and responsiveness Provision new services and change the amount of resources dedicated to a software service Treat your data centre as a single pool of processing, storage and networking power

November 26, 2009

9

How is it implemented?
− Typically, in order to virtualize, you would use a layer of software that provides the illusion of a "real" machine to multiple instances of "virtual machines". This layer is traditionally called the Virtual Machine Monitor (VMM) or “hypervisor”. − The hypervisor could run directly on the real hardware or it could run as an application on top of a host operating system.

November 26, 2009

10

Type 1 VMM

Guest VM

Guest VM

Guest VM

VMM

Hardware

IBM CP/CMS VMware ESX Windows Virtualisation (2008) Xen Virtual Iron
November 26, 2009 11

Type 2 VMM

Guest VM

Guest VM

Guest VM

VMM Host OS Hardware

VMware Server

November 26, 2009

12

Hybrid VMM

Host VM

Guest VM

Guest VM

VMM

Hardware MS Virtual Server MS Virtual PC

November 26, 2009

13

Paravirtualisation
Paravirtualization is a virtualization technique that presents a software interface to virtual machines that is similar but not identical to that of the underlying hardware. This requires operating systems to be explicitly ported to run on top of the virtual machine monitor (VMM)

November 26, 2009

14

Full Virtualisation
• Provides • With

a complete simulation of the underlying hardware binary translation, rewrites some x86 instructions at run time that cannot be trapped and converts them into a series of instructions that can be trapped and virtualised of running existing legacy operating systems without modification

• Capable

November 26, 2009

15

Native Virtualisation

− Leverages hardware-assisted capabilities available in the latest processors from Intel (Intel VT – “Vanderpool”) and Advanced Micro Devices (AMD-V – “Pacifica”) to provide near-native performance. − Virtual Iron is one of the first companies to offer virtualization software to fully support Intel-VT and AMD-V hardware assisted virtualization.

November 26, 2009

16

Native Virtualisation
− Dell
• • • • • • • Precision 380 PowerEdge 430 PowerEdge 440 PowerEdge 1435 PowerEdge 1950 PowerEdge 1955 PowerEdge 2950 ProLiant DL140 G3 ProLiant DL320 G4 ProLiant DL360 G5 ProLiant DL365 ProLiant DL380 G5 ProLiant DL385 G2 ProLiant DL580 G4 ProLiant DL585 G2 xSeries 100 System x3455 System x3550 System x3850 LS21 Intel Pentium D Intel Pentium D Intel Xeon 3xxx AMD Opteron 22x Intel Xeon 5xxx Intel Xeon 5xxx Intel Xeon 5xxx Intel Xeon 5xxx Intel Xeon 5xxx Intel Xeon 5xxx AMD Opteron 22xx Intel Xeon 5xxx AMD Opteron 22xx Intel Xeon 7xxx AMD Opteron 82xx Intel Pentium-D AMD Opteron 22xx Intel Xeon 5xxx Intel Xeon 7xxx HS21 Intel Xeon 5xxx AMD Opteron 22xx

− HP
• • • • • • • •

− IBM
• • • • •

November 26, 2009

17

What’s in a Virtual Machine?

November 26, 2009

18

What’s in a Virtual Machine - BIOS
• VM • Has

has its own BIOS

everything you would expect to see in a real BIOS options may include floppy, CD-ROM, disk drive and PXE.

• Boot

November 26, 2009

19

What’s in a Virtual Machine - Networking

• •

Each VM has a virtual NIC Virtual NICs are connected to virtual switches implemented in the virtualisation layer
− VMware — vSwitches − Microsoft - .vnc-files

Virtual switches have uplink connections to physical NICs on the host

November 26, 2009

20

Combining internal and external virtual switches

Virtual switch with one outbound adapter acts as a DMZ Backend applications are secured behind the firewall using internal-only switches

November 26, 2009

21

What’s in a Virtual Machine - Storage

To the applications and guest operating systems inside each virtual machine, the storage subsystem is a simple virtual SCSI host bus adapter connected to one or more virtual SCSI disks Virtual disks are files kept on physical storage. − VMware — VMDK files − Microsoft — VDF files Virtual disk represents a local drive on a virtual server, such as a C or D drive in Windows Physical storage could be − Direct attached SCSI − SAN attached − iSCSI − NAS
November 26, 2009 22

Licensing Considerations
• On

host

− Host OS? − Virtualisation technology?
• On

Guest

− Guest OS? − Guest Applications

November 26, 2009

23

Support Considerations
• Two

meanings

− Is it technically possible? − Will the vendor support a virtual environment?
• The

Microsoft position

− “For Microsoft customers who do not have a Premier-level support agreement, Microsoft will require the issue to be reproduced independently from the nonMicrosoft hardware virtualization software.” − “Microsoft supports Windows Server System software running within a Microsoft Virtual Server environment subject to the Microsoft Support Lifecycle policy ... “

November 26, 2009

24

Usage Scenarios for Virtualization

Consolidation

Business Continuity Management

Workload Mobility
November 26, 2009

Development and Test
25

Usage Scenario
Production server consolidation
Gartner definition

1.

Logical Physical Rational

2.

3.

November 26, 2009

26

Usage Scenario
Production server consolidation

Consolidate workloads
− − − − Infrastructure applications Low-utilization workloads Branch office and datacenter workloads Efficient use of available hardware resources

Re-host legacy OS and applications
− NT4 guest applications on virtual platform
• Run on current hardware and current OS • No application updates required

Partition resources
− Limit CPU resource per VM

November 26, 2009

27

Usage Scenario
Business continuity management

Disaster Recovery
− Maintain DR systems as virtual machines − Eliminate traditional problems associated with bare metal restores

OS and application patching
− Deploy and test patches off-production, and swap − Eliminate scheduled downtime

Isolation / sandboxing
− Isolate OS environments for untrusted applications − Prevent malicious code from affecting others

November 26, 2009

28

Usage Scenario
Dynamic datacenter

• Workload

mobility

− Package up entire OS environment and move to other location − Flexible deployment of workloads

November 26, 2009

29

Usage Scenario
Development and test

• Rapid

provisioning of virtual machines arbitrary test scenarios test range for niche scenarios

• Create • Wider

November 26, 2009

30

Application + OS: Now A Data File
Entire server – OS, apps, data, devices, and state – is now simply a file.
• Server

provisioning is similar to copying a file migration is now similar to data migration management techniques can be used for server management
• Server cloning/copying
• • •

• Server

• Data

Versioning Server archival Remote mirroring
31

November 26, 2009

The Role of Shared Storage
• Virtual

Machine files are centrally located. access. Machines can be moved for DR purposes, system repair/upgrade, etc. take advantage of advanced SAN features such as snapshots, clones and replication.

• Multiple • Virtual

• Can

November 26, 2009

32

Live Migration
• Move • Zero

running virtual machines from one physical system to another with no downtime downtime maintenance resource utilisation across infrastructure

• Balance

November 26, 2009

33

Hardware Infrastructure — Scale Up or Scale Out?

Scaling up means fewer, larger systems − Advantages
• Fewer ESX Server images to manage • Lower infrastructure costs (Ethernet/SAN switches)

Scaling out means more, smaller systems
− Advantages
• Lower hardware costs (servers) • Low H.A. impact in case of failure of a node • More CPUs supported "per rack“ • Headroom required for HA is less expensive • Not locked into obsolete hardware • More flexible

− Disadvantages
• Higher hardware costs (servers) • Big H.A. impact in case of failure of a node • Fewer CPUs supported "per rack“ • Headroom required for HA is expensive • Servers may go obsolete • Locked into server architecture

− Disadvantages
• Many hypervisor (ESX) images to maintain • Higher infrastructure costs (Ethernet/SAN switches)

November 26, 2009

34

What should an enterprise ready virtualisation platform offer?
• • • • • • • •

Efficient server partitioning SMP support in guest VMs Scalable memory in guest VMs Fault isolation — a crash in one virtual machine should not impact other virtual machines Security isolation — a virtual machine should never access the memory or I/O operations of another virtual machine Resource isolation — runaway applications in one virtual machine should not “starve” others virtual machines. Non-disruptive addition of capacity Scalable management tools
November 26, 2009 35

VMware Workstation
• Desktop • Run

Virtualisation

multiple operating systems simultaneously on a single PC Windows, Linux, NetWare, development/test Solaris

• Supports • Software • Training

November 26, 2009

36

VMware Server

• • • •

Free virtualisation platform Type 2 “hosted” VMM Runs on any standard x86 hardware Runs on a wide variety of Linux and Windows host and guest operating systems Intended as a “step up” to Type 1 hypervisor products.

November 26, 2009

37

VMware Infrastructure 3
VMware ESX Server 3.0 - Type 1 VMM • VMware VirtualCenter 2.0 • 4-way vSMP / 16GB Virtual RAM support • VMware VMotion • VMware HA • VMware Distributed Resource Scheduling • VMware Consolidated Backup

November 26, 2009

38

Non-disruptive capacity on demand

November 26, 2009

39

Automate resource assurance for critical applications
DRS
Dynamic Balancing Continuous Optimization

November 26, 2009

40

Automatic availability for all applications
VMWARE HA

X
November 26, 2009 41

Backup anytime

VMWARE CONSOLIDATED BACKUP

Decouple backup from production VMs 20-40% better resource utilization Pre-integrated with 3rd party backup products

November 26, 2009

42

Microsoft Virtualisation Products
• Virtual

PC Virtual Server 2005 R2

• Microsoft • Virtual

Machine Manager (in Beta but available for download) Virtualisation (to be released after Longhorn)

• Windows

November 26, 2009

43

Virtual PC
• Suited • Not

to use in testing on a desktop environment

recommended for production servers

− Single CPU support only − No remote management possible − No SCSI support − Starts as an application not as a service
• Shares

disk format with Virtual Server

November 26, 2009

44

Virtual Server 2005 R2 SP1

Microsoft’s current offering for virtualisation in production environments Shares underlying technology with Microsoft Virtual PC Web based management portal Guests supported include:
− Windows (up to Vista with SP1) − Linux
Virtual Server 2005 R2: Administration Website

• • •

November 26, 2009

45

Clustering in Virtual Server 2005 R2 SP1
Guest to Guest
iSCSI connection

Host to Host
SAN or iSCSI connection

Cluster storage

Cluster storage

November 26, 2009

46

Virtual Server 2005 R2 SP1
• VM

Additions

− VM additions provide enhanced performance and additional functionality to the guest OS − Additions available for XP, Windows 2003, Vista and Linux − Windows additions provide:
• Allow for direct mode kernel execution (faster processing of some commands)

− Linux additions provide:
• Time sync • Shutdown support • SCSI disk • Does not allow for direct mode kernel execution

− Important to update for each new release to maximise performance benefits
November 26, 2009 47

Windows Virtualisation
• To

be released within 180 days after the Longhorn release (no Beta available as yet) Intel VT or AMD Virtualisation hardware

• Requires • Uses

Hypervisor (a thin layer of software under the

“Host OS”)
Guest 1 (“Host OS”) Guest 2

VMM (Hypervisor) Hardware
November 26, 2009 48

Virtual Machine Manager

Virtual Machine Manager: Centralized management view

November 26, 2009

49

Centralized Management: Reports

Full set of reports, integration with MOM database

Actions one click away in context sensitive Actions Pane

November 26, 2009

50

Self Service Portal

Ability to control owned virtual machines

Thumbnails of all owned virtual machines
November 26, 2009 51

Self-Service Portal
Provisioning

User selects from list of templates Administrator has associated with that user

November 26, 2009

52

Self-Service Portal
Provisioning

New virtual machine ready for use, Terminal Services connection information automatically emailed to user.

November 26, 2009

53

Virtual Server 2005 vs Windows Server Virtualization
Virtual Server 2005 R2
32- VMs? 32-bit VMs? 64- VMs? 64-bit VMs? MultiVMs? Multi-processor VMs? VM memory support? Hot add memory/processors? Hot add storage/networking? Can be managed by System Center Virtual Machine Manager? Microsoft Cluster support? Scriptable / Extensible? VMs? Number of running VMs? User interface
Yes No No 3.6 GB per VM No No

Windows Server Virtualization
Yes Yes Yes, up to 8 processor VMs More than 32 GB per VM Yes Yes

Yes Yes Yes, COM 64 Web Interface

Yes Yes Yes, WMI More than 64. As many as hardware will allow. MMC 3.0 Interface

November 26, 2009

54

Xen
Open source hypervisor solution • Installs on bare-metal • Linux VMs fully supported

− Red Hat − Debian − Suse

Windows VMs require Intel VT or AMD-V processor
− Microsoft Windows Server 2000 − Microsoft Windows Server 2003 − Microsoft Windows XP SP2

November 26, 2009

55

XenSource

November 26, 2009

56

XenSource Products

User Profile Windows guest support

Enterprise IT, system integrators Windows Server 2003; Windows XP; Windows 2000 Server Red Hat EL 3.6, 3.7, 3.8, 4.1, 4.2, 4.3, 4.4, 5.0; SUSE SLES 9.2, 9.3, 10.1; Debian Sarge Mid-2007 Mid-2007

Windows IT professionals Windows Server 2003; Windows XP; Windows 2000 Server N/A (Windows guests support only)

Developers, testers, support, IT enthusiasts Windows Server 2003; Windows XP; Windows 2000 Server Red Hat EL 3.6, 3.7, 3.8, 4.1, 4.2, 4.3, 4.4, 5.0; SUSE SLES 9.2, 9.3, 10.1; Debian Sarge N/A N/A

Linux guest support

Live Migration Shared storage

N/A N/A

November 26, 2009

57

Virtual Iron
• An

enterprise ready native virtualisation platform

• Uses

hardware-assisted virtualisation technologies of Intel VT and AMD-V processors on an open source hypervisor derived from the Xen open source project software need be installed on physical hardware

• Based • No

November 26, 2009

58

Virtual Iron Components
Component
Hypervisor

License
GPL

Function
First software loaded when physical server boots. Manages all hardware resources Second software loaded when physical server boots. Manages virtual server creation and configuration and all I/O. Controls virtual servers through an agent in the service partition Operating systems that are fully virtualised on a physical server

Service Partition

GPL

Virtualisation Manager Guest operating systems

Commercial

Varies

November 26, 2009

59

Virtualization Manager

• •

Java-based application Allows for central management of virtualized servers A physical server can have many virtualized servers, which are run as unmodified guest operating systems.

November 26, 2009

60

Virtual Manager Policy-based Automation
LiveMigration — moves a running virtual server from one physical server without pausing or impacting running applications • LiveCapacity — monitors virtual server CPU utilisation or other application needs to determine when a workload needs additional capacity. When a user-defined threshold is met, the virtual server is LiveMigrated to a physical server that has the necessary resources • LiveRecovery — monitors the status of physical resources and moves virtual servers to maintain uptime in the event of a hardware failure • LiveMaintenance — moves virtual servers to alternative locations without downtime when a physical server is taken offline for maintenance

November 26, 2009

61

Virtual Iron Architecture

November 26, 2009

62

Supported Configurations

Feature Operating systems

Support 32 and 64-bit Red Hat Enterprise Linux 4 32 and 64-bit SUSE Linux Enterprise Server 9 32-bit Windows XP 32-bit Windows 2003 Intel Xeon with Intel VT AMD Opteron with AMD-V 100s per virtual data centre Up to 8 Up to 96GB Up to 5 Up to 5 Up to 16

Processors Virtualised Nodes Processors per virtual Server RAM per Physical Server Virtual servers per physical server CPU Virtual NIC adapters per virtual server Virtual disks per virtual server

November 26, 2009

63

Virtuozzo

− Operating System—Level Virtualisation − Creates multiple, isolated virtual environments (VEs) − Whereas VMs attempt to virtualize "a complete set of hardware," VEs represent a "lighter" abstraction, virtualizing instead "an operating system instance"

November 26, 2009

64

Parallels Workstation
• • •

Test/Development solution aimed at desktop market Uses hypervisor technology Wide guest OS support
− Entire Windows family - 3.1, 3.11, 95, 98, Me, 2000, XP and 2003 − Linux distributions Red Hat, SuSE, Mandriva, Debian and Fedora Core − FreeBSD − “Legacy” operating systems e.g. OS/2, eComStation and MSDOS.
November 26, 2009 65

HP Virtual Server Environment
• Implemented

on HP Integrity and HP 9000 systems

November 26, 2009

66

Physical to Virtual (P2V)
• P2V • Can

is the term used to describe the process of converting physical servers into virtual machines be performed while server is live operating systems require cold migration

• Some

• Process:

− Analyse source − Create a target VM − Transfer data from physical source to virtual target − Transform VM

November 26, 2009

67

VMware Converter
Replaces P2V Assistant • Wizard based conversion process • Can convert physical machines, virtual machines or third party system images (e.g. Symantec Ghost, Backup Exec LiveState Recovery) • Source physical machines:

− − − − −

64-bit Windows XP/2003 WinNT SP4+ Windows 2000 Windows XP Windows 2003
68

November 26, 2009

Platespin PowerConvert

“Anywhere to anywhere” conversion
− Peer-to-Peer
• • • • Physical to Virtual (P2V) Virtual to Virtual (V2V) Virtual to Physical (V2P) Physical to Physical (P2P)

− Image Capture
• Physical to Image (P2I) • Virtual to Image (V2I)

− Image Deployment
• Image to Virtual (I2V) • Image to Physical (I2P)

− Disaster Recovery
• Physical to Virtual (P2V) • Virtual to Virtual (V2V) •

Windows and Linux sources can be converted
November 26, 2009 69

Platespin PowerConvert

November 26, 2009

70

Portlock Storage Manager
• Third-party • Can

NetWare data management product be used for P2V conversions of NetWare servers some manual reconfiguration of VM

• Requires

November 26, 2009

71

Capacity Planning
• Important • Aims:

first step in any server consolidation project

− Understand server performance and utilization rates of a group of servers − Identifying servers that are good candidates to be migrated into virtual machines − Size virtual environment accurately
• Statistics • What-if

are gathered and processed

scenarios can be run to examine different possible approaches
72

November 26, 2009

VMware Capacity Planner

November 26, 2009

73

Platespin PowerRecon
• • •

Onsite data collection and analysis Scenario modelling (what-if) Agentless operation

Inventory

Workload Data Collection

Analyse

Recommend

November 26, 2009

74

Some additional products…

November 26, 2009

75

VMware Lab Manager

Create centralised pools of VMs, storage and network components • Rapid setup and tear down of test/dev environments • Maintain library of customer and production system environments

November 26, 2009

76

VMware ACE

November 26, 2009

77

VMware Virtual Desktop Infrastructure

November 26, 2009

78

Dunes VS-0

Dunes VS-O http://www.dunes.ch/content/view/82/157/

November 26, 2009

79

Virtual Machine Backup and Replication

− esxRanger Professional • LAN/WAN backups • Backup active servers • Database of backup activity − esxReplicator • Replicate changes to remote location — “chunked” by time or data change volumes • Effective business continuity

November 26, 2009

80

Virtual Machine Backup and Replication
• esXpress

− Virtual Backup Appliance runs backup jobs within a VM − Offloads CPU and memory utilisation from VMware ESX console
• Virtual

Solution Box

− Also implemented as a virtual machine appliance

November 26, 2009

81

esxCharter
A Windows based esxtop and more…

November 26, 2009

82

esxMigrator

Assists customers upgrading from VMware ESX 2.X to VMware ESX 3.0 Uses data manipulation strategies that can copy virtual disks much faster than allowed by the VMware console Enables failback contingency

November 26, 2009

83

Best Practice Recommendations
• • • • •

Explore your options. Evaluate your applications for potential consolidation. Understand the differences between various virtualization solutions. Look closely at the licensing and support policies of your software vendors. Start small.

November 26, 2009

84

Best Practice Recommendations
• • • • •

Manage expectations. Beware of “virtual sprawl.” Consider blades as a complementary consolidation strategy. Integrate server consolidation with a broader consolidation strategy. Develop a framework for continuous consolidation.

November 26, 2009

85

More Information
Alan McSweeney alan@alanmcsweeney.com

November 26, 2009

86