1.16k likes | 1.33k Views
A Survey of Virtualization Technologies. Ken Moreau Hewlett-Packard. What is virtualization?.
E N D
A Survey of Virtualization Technologies Ken Moreau Hewlett-Packard
What is virtualization? • Virtualization is the process of presenting a logical grouping or (sub)set of computing resources so that they can be used and managed in ways that give benefits over the original configuration. This is not restricted by the geographic location or the physical configuration of the underlying resources. • Resources may consist of processors, memory, I/O channels, whole server systems, application instances, storage, networking, even whole sites. • You are already using virtualization technologies • It has been working for decades… A Survey Of Virtualization Technologies
Why do I care? • Decouple servers, storage, networking, applications, monitoring, etc from the business • Deliver applications as a service, to • Enhance agility • Reduce costs • Reduce risks • Turn IT into a utility • Virtualization is growing fast: $800M in 2007 to $1.8B in 2010 (IDC) A Survey Of Virtualization Technologies
Agenda • Server Virtualization Technologies • Hard Partitioning, Soft Partitioning, Micro Partitioning, Resource Partitioning, Clustering, Software Emulation, Variable Capacity • Networking Virtualization Technologies • VLANs, Sub-nets, Multi-Pathing and Aggregation, NAT • Storage Virtualization Technologies • Virtualization Layers, Raw Volumes and File Systems, RAID, I/O Multi-Pathing, NAS • Client Virtualization Technologies • Software Virtualization Technologies (TBD) • Virtualization Management and Automation • Selling Virtualization To Your Company • Q&A A Survey Of Virtualization Technologies
Tremendous amount of unutilized capacity Yet some systems are still unable to handle peak loads Many standalone servers = high mgmt costs & reactive strategies The IT Issues – Drivers and Challenges • Business Drivers – Reduce costs, improve TCO/ROI + increase service levels + improve agility to more quickly respond to changing business requirements. • Challenge - Too many distributed servers (“One App-One Server”) that are grossly under utilized while some are over utilized. Average server CPU utilization during peak periods is 10-25% (Windows) and 15-30% (UNIX). A Survey Of Virtualization Technologies
An Additional Problem A Survey Of Virtualization Technologies
The Server Virtualization Continuum Single physical node Single system image per node within a cluster Hard partitions within a server Soft partitions and/ormicro-partitions within a hard partition of a server Resource partitions and/orsecure partitions within a system image Hard Partition 1 • Hard Partition 1 • OS image with HW fault isolation • Dedicated CPURAM & I/O • Application 1 • Guaranteed compute resources (shares or percentages) • Soft Partition 1 • OS + SW fault isolation • Dedicated CPU, RAM • Soft Partition 2 • OS + SW fault isolation • Dedicated CPU, RAM • Hard Partition 2 • OS image with HW fault isolation • Dedicated CPURAM & I/O • Application 2 • Guaranteed compute resources (shares or percentages) Hard Partition 2 Hard Partition 3 Application 3 • Virtual Machine 1 • OS + SW fault isolation • Virtual + Shared CPU, I/O • Virtualized Memory Node • Application n • Guaranteed compute resources (shares or percentages) • Hard Partition n • OS image with HW fault isolation • Dedicated CPURAM & I/O • Virtual Machine 2 • OS + SW fault isolation • Virtual + Shared CPU, I/O • Virtualized Memory Isolation Flexibility A Survey Of Virtualization Technologies
Physical Server Virtualization: Hard Partitioning A Survey Of Virtualization Technologies
Hard Partitioning And Flexibility 2 partitions of a large server: 4 processors in one partition, and 12 processors in the other 8 processors in each partition Requires rebooting both O/S instances A Survey Of Virtualization Technologies
System Architecture • Bus Based • Network repeater • Predictable latency • Increasing bus clock speed is easy • Can bottleneck on the system bus • Switch Based • Network switch • Parallel transfers • Highly scalable • Variable latency • Mesh Based • Large network • Massively parallel transfers • Extremely scalable • Overall very low latency • Can be difficult to upgrade A Survey Of Virtualization Technologies
Server Architecture And Hard Partitions A Survey Of Virtualization Technologies
Bus-based (Planar) Servers: All Vendors • All x86 and all low-end servers from all vendors are bus-based • All Opteron servers are mesh-based but do not take advantage of the switching for partitioning • The scalability and economics of these servers do not require partitioning A Survey Of Virtualization Technologies
Switch-based Servers: HP • AlphaServers (Wildfire) GS80, GS160 and GS320 • HP 9000 PA-RISC rp7xxx, rp8xxx and Superdome • Integrity rx7xxx, rx8xxx and Superdome • Hard partitions are done by the switches, so granularity is at the “system building block” (SBB) or “cell” level • True electrical isolation, excellent flexibility A Survey Of Virtualization Technologies
Switch-based Servers: IBM • X-Architecture: System x 365, 366, 440, 445, 455, 3950 • Full 4 processor system with memory and I/O slots • Communication via an SMP port: point to point communication • System i5 and p5 560, 570 • Full 4 processor system with memory and I/O slots • Communication with “flex cable”: ring topology • Can enable/disable communication by changing the cables: true electrical isolation, inflexible A Survey Of Virtualization Technologies
Switch-based Servers: NEC • Express5800 series: • 1080Rf (2 cells) • 1160Xf (4 cells) • 1320Xf (8 cells) • A3 chipset offers Dynamic Partitioning with Windows 2008 • True electrical isolation • Cache coherency is over a full mesh A Survey Of Virtualization Technologies
Switch-based Servers: Sun • SunFire E2900, E4900, E6900, E12K, E15K, E20K, E25K • Fireplane interconnect of the “system board” (E2900) or the “Uniboard” (E4900 and up) to the processor/memory/I/O slot • Switch to connect 2 processors • Switch to connect those switches • Expander switch to make a Uniboard • Fireplane switch to connect the Uniboards • OLAR: not electrically isolated, good flexibility A Survey Of Virtualization Technologies
Switch-based Servers: Unisys • ES7000/400 (Itanium) uses a cross-bar switch to connect modules • ES7000/one (Pentium or Itanium) uses “FleXbar” cables to connect “cells” into 32 processor systems • Each module/cell is a complete system with 4/8 processor slots, up to 64 GBytes of memory and 8 PCI-X slots • True electrical isolation, inflexible A Survey Of Virtualization Technologies
Mesh-based Servers: HP • Alpha ES47, ES80 and GS1280 • Each processor connects directly to private memory and I/O, and up to 4 other processors • Partitioning of dual processors • True electrical isolation, excellent flexibility A Survey Of Virtualization Technologies
Mesh-based Servers: IBM • System i5 and p5 (590 and 595) • Each processor connects directly to private memory and I/O, and up to 4 other processors • Soft partitioning at the processor level • No electrical isolation, excellent flexibility A Survey Of Virtualization Technologies
Logical Server Virtualization: Soft Partitioning A Survey Of Virtualization Technologies
Soft Partitioning And Flexibility 2 partitions of a large server: 7 processors in one partition, and 9 processors in the other 8 processors in each partition Live movement: no rebooting A Survey Of Virtualization Technologies
Soft or Dynamic Partitions A Survey Of Virtualization Technologies
Logical Server Virtualization: Micro Partitioning A Survey Of Virtualization Technologies
Micro-Partitioning And Flexibility Stack many O/S instances on a single server,reducing the number of servers in your environment A Survey Of Virtualization Technologies
Micro-Partitioning Terminology • System Image (SI) - A software component, such as a general or special purpose Operating System, to which specific virtual and physical devices can be assigned. • Virtualization Intermediary (VI) - A component that manages the allocation of resources to an SI and isolates resources assigned to a System Image from access by other System Images. • Virtual System (VS) - The physical or virtualized resources necessary to run a single SI instance. • Virtual resources typically consist of: processors, memory, I/O, and storage. Applications System Image 1 Expand or Contract Virtual System 1 Virtual Processors Virtual Memory Virtual I/O Storage VirtualizationIntermediary Resource Mapping Physical System Expand or Contract Processors Memory Physical I/O Storage A Survey Of Virtualization Technologies
Micro-partitioning: Hosting Models A Survey Of Virtualization Technologies
Micro-partitioning: I/O Models A Survey Of Virtualization Technologies
System Instance 3 System Instance 1 System Instance 2 app2 app1 app1 app1 app2 OS OS OS Virtual Switch NIC 2 Virtual Switch Virtual Switch NIC 1 Physical System Micro-partitioning: I/O paths • Shared or dedicated ports • Can have private networking A Survey Of Virtualization Technologies
Fooling The O/S: Para-Virtualization • Operating Systems do their privileged operations in “inner mode” or “privileged mode”: ring 0 • But guest instances doing these operations will interfere with other guest instances and the host instance itself • This requires either de-privileging the guest operating system, or source code changes to the guest operating system • Para-virtualization replaces all calls to ring 0 in the guest instances with calls to the host instance A Survey Of Virtualization Technologies
Fooling the O/S: Para-virtualization • Most work was being done in the Linux world • Xen (prior to V3.0) • Trango (real-time hypervisor for embedded systems) • All vendors have moved to para-virtualization, but at different rates • Check to see whether full virtualization (ie, completely fooling the un-modified O/S) or para-virtualization (ie, the modified guest O/S cooperates with the hypervisor) is supported • Then check to see if it requires hardware assists A Survey Of Virtualization Technologies
Fooling The O/S: x86, Power5/6 and T1 Virtualization Technology A Survey Of Virtualization Technologies
Fooling The O/S: Itanium Virtualization Technology PSR.vm = 0 PSR.vm = 1 • All O/S instances run un-modified in all ring levels • Guest O/S instances executing some inner mode operations will trap to the host O/S instance A Survey Of Virtualization Technologies
Micro-partitioning (1 of 2) A Survey Of Virtualization Technologies
Micro-partitioning (2 of 2) A Survey Of Virtualization Technologies
Data Mirror Geo-clusters Via Storage Replication Recovery Site Primary Site • Site-level replication • Fully automated setup and configuration • Supports virtually any distance • Fast recovery from planned and unplanned failure Guest Guest Guest Guest Cluster Guest Guest Guest Guest Hypervisor Hypervisor Storage Based Replication A Survey Of Virtualization Technologies
Embedded Virtualization • Dell, HP and IBM embed VMware ESX 3i on a flash card • Much thinner footprint, no installation, more security • Powers up directly into VMware ESX 3i – no boot disk • Supported by VMware Infrastructure 3 • No more console access: use Common Information Model (CIM) instead • Dell and HP embed XenServer on a flash card • Citrix XenServer OEM Edition • OpenKernel Labs, VirtualLogix and Trango are working on virtualization for cell phones A Survey Of Virtualization Technologies
Does Anybody Really Know What Time It Is? Does Anybody Really Care? • Sun xVM provides the system time to each vCPU when it is scheduled to run • VMware Tools includes a time synchronization feature to reset the guest O/S’s clock when needed • Xen syncs all guest instances to dom0 • /proc/sys/xen/independent_wallclock = 0 • HPVM, IBM hypervisor, Sun Logical Domains, and Windows Virtual Server do not do anything special to assist: use NTP A Survey Of Virtualization Technologies
Some considerations of micro-partitioning • Physical isolation required for security • Dongles, regulatory, network, storage • Compute intensive applications • Processor, memory and I/O • Highly variable workloads that peak simultaneously • Latency sensitive workloads • Vendors who don’t support micro-partitioned apps • Support or licensing • Too few servers to justify the effort to get there A Survey Of Virtualization Technologies
Other Micro-Partitioning Tools • There are many other tools which offer micro-partitioning functionality • They vary from emulators to para-virtualization to hypervisors • Most of them are focused on workstations http://en.wikipedia.org/wiki/Comparison_of_virtual_machines A Survey Of Virtualization Technologies
Micro-partitioning and Clustering • Some vendors support clustering of host instances to provide failover of guest instances • VMware ESX 3.0 HA (aka Distributed Availability Services) • HP-UX Virtual Machine supports Serviceguard • IBM Hypervisor does not support clustering of host instances • Xen (all vendors) does not support clustering of host instances • Windows Virtual Server 2005 runs as a service with MSCS • Some vendors support clustering of guest instances • AIX supports HACMP in guest instances with V5.2+ (not with Live Partition Mobility) • HP-UX and Linux Serviceguard are supported with HPVM V2.0 • Oracle RAC is supported in an SPLpar and VMware ESX, but no other guest instance • Windows 2003 supports MSCS of guest instances A Survey Of Virtualization Technologies
Server Software Virtualization: Operating System Partitioning A Survey Of Virtualization Technologies
Partitioning Inside An O/S Instance • A single O/S instance is the most efficient and least costly to license and maintain • It requires all of the application instances to share an O/S and application patch level, and SLA’s • Resource partitioning can group users, processes or application programs for easy management • The process scheduler and memory manager bias their allocations according to policies -or- • A virtual O/S environment is setup for each application • Can be done by the O/S or by the application A Survey Of Virtualization Technologies
Server Resource Partitions A Survey Of Virtualization Technologies
Server Application Partitioning • BEA WebLogics • Databases • DB2, Oracle, Oracle Rdb, SQL Server A Survey Of Virtualization Technologies
Server Partitioning and Security • Hard partitions • Maximum availability and maximum security isolation in a single box (e.g. firewall-separated architecture, or multi-department consolidation) – firmware settings can increase or decrease security • Micro-partitions • Security isolation of separate (virtual) OS instances, sub CPU granularity • Resource Partitions • Maximum flexibility of security isolation in a single OS instance (greater initial setup cost, but reduced maintenance cost due to single OS instance), sub CPU granularity • Soft partitions • High performance consolidation where administrators and processes with admin privileges are trusted across partitions • Clustering • Maximum availability and failover capabilities, single trust domain Increasing security isolation A Survey Of Virtualization Technologies
Server Virtualization Through Emulation • Aries • HP-UX PA-RISC on HP-UX Integrity • Charon-VAX • OpenVMS VAX on Windows x86 and OpenVMS Alpha • Intel • IA-32 Execution Layer on Itanium • Platform Solutions, Inc with T3 Technologies • zOS, OS/390 on HP Integrity (Liberty Server) • zOS, OS/390 on IBM xServer (tServer) • Transitive Software (QuickTransit) • Solaris SPARC on Solaris x86, Linux x86 and Linux Itanium • Linux x86 on IBM pServer (PowerVM Lx86) A Survey Of Virtualization Technologies
All Server Virtualization: Licensing A Survey Of Virtualization Technologies
Server Variable Capacity Virtualization • Sometimes you don’t need a full system, but when you need it, you need it now! • Variable capacity allows you to enable and disable server components dynamically • Permanent activation • Temporary activation • Variable lease payments • Can be bound to a specific server, or be shared between servers or even between sites 8 + 8 = 12 A Survey Of Virtualization Technologies
A I I A Sharing Processors Via License Migration 1. Partition 1 activity increases 2. You determine additional processors are required. A A I I 3. You deactivate 2 processors from Partition 2 A A A A 4. You activate 2 processors on Partition 1 A I A I 5. Total number of active processors remains constant A A A A 8 + 8 = 12 Partition 2 Partition 1 A Survey Of Virtualization Technologies