Windows Server Virtualization - Hyper-V 2008 R2

52

Transcript of Windows Server Virtualization - Hyper-V 2008 R2

Page 1: Windows Server Virtualization - Hyper-V 2008 R2
Page 2: Windows Server Virtualization - Hyper-V 2008 R2

Virtualization in Windows Server 2008 R2

Arlindo AlvesMicrosoft http://blogs.technet.com/aralves

Page 3: Windows Server Virtualization - Hyper-V 2008 R2

Sponsors

Page 4: Windows Server Virtualization - Hyper-V 2008 R2

Agenda

• Hyper-V V2• Cluster Shared Volumes• Live Migration• Hosted Desktops

Page 5: Windows Server Virtualization - Hyper-V 2008 R2

Architecture

Page 6: Windows Server Virtualization - Hyper-V 2008 R2

Windows Server 2008

Windows Kernel

OS

Provided by:Hyper-V ArchitectureISV / IHV / OEM

Microsoft Hyper-V

Ring -1Windows hypervisor

“Designed for Windows” Server Hardware

Kernel Mode

User Mode

Parent Partition

Applications

IHV Drivers

Page 7: Windows Server Virtualization - Hyper-V 2008 R2

Windows Server 2008

Windows Kernel

VSP

OS

Provided by:Hyper-V Architecture

Applications

Non-Hypervisor Aware OS

Emulation

ISV / IHV / OEM

Microsoft Hyper-V

Microsoft / XenSource

Ring -1

Applications

Xen-Enabled Linux Kernel

Linux VSC

Hypercall Adapter

VMBus

Windows hypervisor

“Designed for Windows” Server Hardware

Kernel Mode

User Mode

Child PartitionsParent Partition

WMI Provider

VM Service

VM Worker Process

Applications

VMBus

Applications

Windows Server 2003, 2008

VMBus

Windows Kernel

VSC

IHV Drivers

Page 8: Windows Server Virtualization - Hyper-V 2008 R2

Hyper-VCapabilities• 32-bit (x86) & 64-bit (x64) VMs• Large memory support (64 GB) per VM• SMP VMs (up to 4 cores)• Integrated cluster support for HA & Quick Migration• BitLocker: Seamless, secure data encryption• Live Backup: Volume Shadow Service integration• Pass-through disk access for VMs• Virtual Machine snapshots• New hardware sharing architecture (VSP/VSC/VMBus)• Disk, networking, input, video• Robust networking: VLANs and NLB• DMTF standard for WMI management interface• Support for Full or Server Core installations

Page 9: Windows Server Virtualization - Hyper-V 2008 R2

Windows Server 2008 R2 Hyper-V• Building on the rock-solid architecture of Windows

Server 2008 Hyper-V• Integration with new technologies• Enabling new dynamic scenarios:

• Increased Server Consolidation• Dynamic Data Center• Virtualized Centralized Desktop

• Customer Driven

Page 10: Windows Server Virtualization - Hyper-V 2008 R2

Live Migration

Page 11: Windows Server Virtualization - Hyper-V 2008 R2

Live Migration

• #1 Customer Request

• Moving a virtual machine from one server to another without loss of service• Workload is unaware of the migration• Maintain TCP connections of the guest OS

• Enables new dynamic scenarios• No downtime host servicing

• Maintenance Mode with SCVMM R2

• Load Balancing with SCVMM R2 & PRO

Page 12: Windows Server Virtualization - Hyper-V 2008 R2

Live Migration

• Live Migration via Cluster Manager• In box UI

• Live Migration via Virtual Machine Manager• Orchestrate migrations via policy

• Moving from Quick to Live Migration:• Guest OS limitations?: No• Changes to VMs needed?: No• Changes to storage infrastructure: No• Changes to network infrastructure: No• Update to Windows Server 2008 R2

Hyper-V: Yes

Page 13: Windows Server Virtualization - Hyper-V 2008 R2

Live MigrationInitiate Migration

• IT Admin initiates a Live Migration to move a VM from one host to another

Client accessing VM

VHD

I want to Migrate this

VM to another physical machine

SAN

Page 14: Windows Server Virtualization - Hyper-V 2008 R2

Live MigrationMemory Copy: Full Copy

• First initial copy is of all in memory content

Memory content is copied to new

server

VM pre-staged

SAN

VHD

Page 15: Windows Server Virtualization - Hyper-V 2008 R2

Live MigrationMemory Copy: Dirty Pages

• Client continues to access VM, which results in memory being modified

Pages are being dirtied

Client continues accessing VM

SAN

VHD

Page 16: Windows Server Virtualization - Hyper-V 2008 R2

Live MigrationMemory Copy: Incremental Copy

• Hyper-V tracks changed data, and re-copies over incremental changes

• Subsequent passes get faster as data set is smaller

Smaller set of changes

Recopy of changes

SAN

VHD

Page 17: Windows Server Virtualization - Hyper-V 2008 R2

Live MigrationFinal Transition

• Window is very small and within TCP connection timeout

Partition State copied

VM Paused

SAN

VHD

Page 18: Windows Server Virtualization - Hyper-V 2008 R2

Live MigrationPost-Transition: Clean-up

• ARP issued to have routing devices update their tables

• Since session state is maintained, no reconnections necessary

Old VM deleted once migration is verified successful

Client directed to new host

SAN

VHD

Page 19: Windows Server Virtualization - Hyper-V 2008 R2

DEMO

• Live Migration Demo

Page 20: Windows Server Virtualization - Hyper-V 2008 R2

Migration & Storage

• Windows Server 2008 R2 Hyper-V• NEW Cluster Shared Volume (CSV)• CSV provides a single consistent file name space;• All Windows Server 2008 R2 servers see

the same storage• Easy setup; Uses NTFS• No reformatting SANs• Create one big data store• No more drive letter problems• Existing tools just work

Page 21: Windows Server Virtualization - Hyper-V 2008 R2

Cluster Shared Volumes

• All servers “see” the same storage

Page 22: Windows Server Virtualization - Hyper-V 2008 R2

Clustering VMs with CSV

1. Install Failover Clustering, Hyper-V from 2008 R22. Create & Validate your cluster3. Enable CSV4. Add storage to CSV5. Copy VHD file to CSV storage

C:\ClusterStorage\...

6. Create VM, select CSV Path for VM and files7. Add the VM to the cluster making it HA8. Within the VM, configure your application

Page 23: Windows Server Virtualization - Hyper-V 2008 R2

Individual VM Failover on a LUN

VHD 2

Disk Resource

SAN

VHD 3VHD 1

SolutionToday

Same LUN

Disk Resource

Page 24: Windows Server Virtualization - Hyper-V 2008 R2

Individual VM Failover on a LUN

VHD 2

Coordinator Node

SAN

VHD 3VHD 1

The Solution (R2)

Same LUN

VMs running on Node 1 are

unaffected

Page 25: Windows Server Virtualization - Hyper-V 2008 R2

Optimized Capacity Planning

• In the past (2008) - 1 LUN for 1 VM • LUN smallest unit of failover• Run out of storage space• Wasted storage space• Storage management challenging

VHD

Free Space

Used VHD Space

VHD VHD VHD VHD

VHD VHD VHD VHD VHD VHD

VHDVHD

Many LUNs to Manage

VHD

Wasted Space

Out of Space

Page 26: Windows Server Virtualization - Hyper-V 2008 R2

Optimized Capacity Planning

• The Solution (R2): 1 LUN for many VMs

• VM smallest unit of failover• VMs share the pool of unused space• Flexible utilization and easy

managementVHD

Free Space

Used VHD Space

VHDVHDVHD

VHD

VHD

VHD VHD VHD

VHD VHDFree Space

Page 27: Windows Server Virtualization - Hyper-V 2008 R2

DEMO

• Clustered Shared Volumes

Page 28: Windows Server Virtualization - Hyper-V 2008 R2

Live Migration Best Practices

• Cluster Shared Volumes• Not required but, highly recommended

• Network Adapters• Cluster Heartbeat/Management

• CSV

• Virtual Switches

• iSCSI

• MPIO: Add another

• Live Migration & IPSEC• Will impact migration performance

Page 29: Windows Server Virtualization - Hyper-V 2008 R2

New Processor Feature Support

Microsoft Confidential

Page 30: Windows Server Virtualization - Hyper-V 2008 R2

VM Memory Management

• Today, processors provide one level of address translation, but hypervisor needs to manage two

Guest Virtual Address

Guest Physical Address

System Physical Address

Guest OS defines GVA-to-GPA mappings

Hypervisor defines GPA-to-SPA mappings

Guest Virtual Address

System Physical Address

Shadow page tables combine these mappings because the processor knows how to perform only one level of translation

Page 31: Windows Server Virtualization - Hyper-V 2008 R2

Shadow Page Tables

• Hypervisor maintains a Shadow Page Table• Combines two layers of translation into a

single page table• Demand-filled when Child OS touches a page• Flushed any time the Child OS modifies

its page tables

• Shadow Page Table overhead• Fills and flushes invoke the hypervisor• Can account for up to 10% of total CPU time• Consumes roughly 1MB of memory per VM

Page 32: Windows Server Virtualization - Hyper-V 2008 R2

Second LevelAddress Translation (SLAT)• Goes by several names

• Intel: Extended Page Tables (EPT)• AMD: Nested Page Tables (NPT)/Rapid Virtualization Indexing (RVI)

• Processor provides two levels of translation• Walks the guest OS page tables directly• No need to maintain Shadow Page Table• No hypervisor code for demand-fill or flush operations

• Resource savings• Hypervisor CPU time drops to 2%• Roughly 1MB of memory saved per VM

• Benefits Large Memory Workloads• Exchange, SQL, Terminal Services

Page 33: Windows Server Virtualization - Hyper-V 2008 R2

Windows Server 2008 R2 Core Parking

• Overview• Scheduling virtual machines on a single server for

density as opposed to dispersion• This allows “park/sleep” cores by putting them in

deep C states

• Benefits• Enhances Green IT by reducing

CPU power consumption

Page 34: Windows Server Virtualization - Hyper-V 2008 R2

Windows Server 200816 LP Server

Page 35: Windows Server Virtualization - Hyper-V 2008 R2

Windows Server 2008 R2 Core Parking16 LP Server

Processor is

“parked”

Processor is

“parked”

Page 36: Windows Server Virtualization - Hyper-V 2008 R2

Hyper-V Virtual Storage

Page 37: Windows Server Virtualization - Hyper-V 2008 R2

Hot Add/Remove Storage

• Overview• Add and remove VHD and pass-through disks to a

running VM without requiring a reboot. • Hot-add/remove disk applies to VHDs and pass-through

disks attached to the virtual SCSI controller

• Benefits• Enables storage growth in VMs without downtime• Enables additional datacenter backup scenarios• Enables new SQL/Exchange scenarios

Page 38: Windows Server Virtualization - Hyper-V 2008 R2

Performance

• Major Performance Improvements• Dynamic Virtual Hard Disks

• 64k Sequential Writes: 3x Faster• 4k Random Writes

• 15x Faster• 85% of Native

• Fixed Disks• Hyper-V R1: 94% of native• Hyper-V R2: Almost Equal to native

Page 39: Windows Server Virtualization - Hyper-V 2008 R2

Hyper-V Networking

Page 40: Windows Server Virtualization - Hyper-V 2008 R2

TCP Offload Support

• Overview• TCP/IP traffic in a VM can be offloaded to a physical

NIC on the host computer.

• Benefits• Reduce CPU burden• Networking offload to improve performance• Live Migration is supported with Full TCP Offload• Major performance improvement on 10 Gb/E

Page 41: Windows Server Virtualization - Hyper-V 2008 R2

Virtual Machine Queue(VMQ)

• Overview• NIC can DMA packets directly into VM memory

• VM Device buffer gets assigned to one of the queues

• Avoids packet copies in the VSP

• Avoids route lookup in the virtual switch (VMQ Queue ID)

• Allows the NIC to essentially appear as multiple NICs on the physical host (queues)

• Benefits• Host no longer has device DMA data in its own buffer

resulting in a shorter path length for I/O (performance gain)

Page 42: Windows Server Virtualization - Hyper-V 2008 R2

Jumbo Frames

• Jumbo Frame Support• Ethernet frames >1,500

bytes• Ad hoc standard is ~9k

• Overview• Enables 6x larger

payload per packet

• Benefits• Reduce CPU utilization of

large file transfers• Reduces TCP/IP overhead by

up to 84%

Page 43: Windows Server Virtualization - Hyper-V 2008 R2

Microsoft Hyper-V Server 2008 R2

Microsoft Confidential

Page 44: Windows Server Virtualization - Hyper-V 2008 R2

Microsoft Hyper-V Server V2New Features• Live Migration

• High Availability

• New Processor Support• Second Level Address Translation

• Core Parking

• Networking Enhancements• TCP/IP Offload Support

• VMQ & Jumbo Frame Support

• Hot Add/Remove virtual storage

• Enhanced scalability

• Enhancements to SCONFIG

Page 45: Windows Server Virtualization - Hyper-V 2008 R2

Hyper-V Server R1 vs. R2Microsoft Hyper-V Server

2008Microsoft Hyper-V Server

R2

Processor Support Up to 4 processorsup to 24 LPs

Up to 8 processorsUp to 32 LPs

Physical Memory Support Up to 32 GB Up to 1 TB

Virtual Machine Memory Support

Up to 32 GB total(e.g. 31 1 GB VMs or

5 6 GB VMs)

64 GB of memory per VM

Live Migration No Yes

High Availability No Yes

Management Options Free Hyper-V Manager MMC

SCVMM

Free Hyper-V Manager MMC

SCVMM R2

Page 46: Windows Server Virtualization - Hyper-V 2008 R2

Hosted Desktops

Page 47: Windows Server Virtualization - Hyper-V 2008 R2

Terminal ServicesVirtualization

• Overview• TSV - Virtualized “Centralized Desktop” provisioning,

access and management solution on top of Hyper-V• Unified user and admin experience for traditional TS

(session per user) and TSV (VM per user). • Deployment Scenarios

• Temporary (until Logoff) VM per user Assignment• Permanent VM per user assignment

• Built-in solution for low complexity deployments• Features and management are tuned for Entry Level

deployments. Example: 4 TS/TSVM Servers with few apps.

Page 48: Windows Server Virtualization - Hyper-V 2008 R2

Connection Broker Infrastructure

TS Session Broker

TS Farm

TS Users

TS UsersRemote

Hosted Desktop Users

Hyper-V Farm

Hosted DesktopUsers (Remote)

TS Gateway

Storage

Page 49: Windows Server Virtualization - Hyper-V 2008 R2

“Virtualization without good management is more dangerous than not usingvirtualization in the first place.”

– TOM BITTMAN, GARTNER VP AND ANALYST, 9 MAY, 2007

{ }

Virtualization Will Drive Major Change in IT Infrastructure and Operations in the Next Three Years, Tom Bittman, May 8, 2007

Virtualization Management

Page 50: Windows Server Virtualization - Hyper-V 2008 R2

Virtual Workload

Provisioning

OS / Software Deploy,

Patching and State Mgmt

Performance and Health Monitoring

Disaster Recovery

Hardware ProvisioningBackup

Managing The Server Lifecycle

Patch management and deploymentOS and application configuration managementSoftware upgrades

Virtual machine managementServer consolidation and resource utilization optimizationConversions: P2V and V2V

Live host level virtual machine backupIn guest consistencyRapid recovery

End to end service managementServer and application health monitoring & managementPerformance reporting and analysis

Server ManagementSuite Enterprise

Page 51: Windows Server Virtualization - Hyper-V 2008 R2

Virtual Machine Manager 2008A centralized, heterogeneous management solution for the virtual datacenter

• Centralized virtual machine deployment and management for Hyper-V, Virtual Server, and VMware ESX servers

• Intelligent placement of Virtual Machines• Fast and reliable P2V and V2V conversion• Comprehensive application and service-level

monitoring with Operations Manager• Integrated Performance and Resource

Optmization (PRO)• Increase Agility• Rapid provisioning of new and virtual machines

with templates

Page 52: Windows Server Virtualization - Hyper-V 2008 R2

Thank you!

OPATIJA | 20 – 24.4. 2009.