Vijay Tewari Program Manager Microsoft Corp Session Code: SVR314 Rajesh Dave Program Manager Microsoft Corp Allen Stewart Program Manager Microsoft Corp.

Download Report

Transcript Vijay Tewari Program Manager Microsoft Corp Session Code: SVR314 Rajesh Dave Program Manager Microsoft Corp Allen Stewart Program Manager Microsoft Corp.

Vijay Tewari
Program Manager
Microsoft Corp
Session Code: SVR314
Rajesh Dave
Program Manager
Microsoft Corp
Allen Stewart
Program Manager
Microsoft Corp
Agenda
Overview
Customer scenarios
Technology
Demo/Walkthrough: setting up Live Migration
Q&A
What is Live Migration?
Move a running virtual machine from one host to another host with no
perceived downtime for the VM
VM is not aware of the migration
Maintain TCP connections of the guest OS
Building block for Dynamic Data Center through business agility, cost reduction
and increase in productivity
VM is treated as a black box
How is Live Migration (LM) different from Quick Migration (QM)?
VM is saved and restored on destination
Results in downtime for applications/workloads running inside VMs
Both leverage same storage infrastructure – easy to move from QM to LM
Live Migration is a planned scenario
Scenario 1: Host servicing
Live Migrate VMs from
Source to Destination
Service Source – Patching or
Hardware Servicing, no
downtime seen by VMs on
Destination
Live Migrate VMs from back
from Destination to Source
No workload downtime during maintenance window
Host evacuation
A cluster node can be part of only ONE live migration at
any given time
16-node cluster can have 8 simultaneous live migrations
between 8 distinct 2-node pairs
SCVMM 2008 R2 allows to queue more than one live
migration from a node
SCVMM UI
SCVMM powershell cmdlet disable-vmhost / enable-vmhost
Scenario 2: load balancing
R2
Scenario 3: Green IT – Power management
During business hours, both
servers are in use
During off-peak or nonbusiness hours, number of
clients go down
Following day as Business
starts, load goes up, VMs are
live migrated back
Live Migration work?
Prerequisites:
Source and Destination computers running Windows Server 2008 R2 (Enterprise
or DC) or Microsoft Hyper-V Server 2008 R2
Source and destination hosts must be part of a Failover Cluster
Files used by the VM must be located on shared storage
Source and Destination have access to same IP subnet
Failover Cluster
Source Host
Destination Host
.BIN
.VSV
.XM
.VH
L
D
Storage
Live Migration Initiate Migration
I want to Migrate
this VM to another
physical machine
Client accessing VM
IT Admin initiates a Live
Migration to
move a VM from one host
to another
Cluster UI
SCVMM 2008 R2
Cluster PowerShell scripts
SAN
VHD
• Create TCP connection between
source and destination hosts
• Transfer VM configuration data to
destination host
• Setup a skeleton for the VM on
the destination host
Live Migration
Memory Copy: Full Copy
Memory content is
copied to new server
VM pre-staged
SAN
VHD
First initial copy is of all
in memory content
Live Migration
Memory Copy: Dirty Pages
Client continues
accessing VM
Pages are
being dirtied
Client continues to access
VM, which results in memory
being modified
SAN
VHD
Live Migration
Memory Copy: Incremental Copy
Recopy of changes
Smaller set of
changes
Transfer the content of the VM’s
memory to the destination host
Track pages modified by the VM,
retransfer these pages
Final transfer pass
SAN
VHD
Live Migration
Final Transition
Partition State
copied
Window is very small
and within TCP
connection timeout
Save register and device state of VM on
source host
Transfer saved state and storage ownership
to destination host
Restore VM from saved state on
destination host
SAN
VHD
Live Migration
Post-Transition: Clean-up
Client directed to
new host
Old VM deleted once
migration is verified
successfully
ARP issued to have routing
devices update their tables
Since session state is maintained,
no reconnections necessary
SAN
VHD
Processor Compatibility Mode
Overview
Allows live migration across different CPU versions within the same processor
family (i.e. Intel-to-Intel and AMD-to-AMD).
Does NOT enable cross platform from Intel to AMD or vice versa.
Configure compatibility per-VM through Hyper-V Manager or SCVMM UI
Benefits
•
•
Greater flexibility within a cluster
Enables migration across a broader range of Hyper-V host hardware
How does Compatibility work?
When a VM is started the hypervisor exposes guest
visible processor features
With Processor Compatibility Enabled processor
features are “hidden” from the VM
CPUID will not return presence of hidden features
List of processor features hided in compatibility mode
Host running AMD based processor
Host running Intel based processor
SSSE3, SSE4.1, SSE4.A, SSE5, POPCNT,
LZCNT, Misaligned SSE, AMD 3DNow!,
Extended AMD 3DNow!
SSSE3, SSE4.1, SSE4.2, POPCNT,
Misaligned SSE, XSAVE, AVX
Storage Model with Failover Clustering in
Windows Server 2008
Failover Clustering implemented a “shared nothing” storage model for the
last decade
Each Disk is owned by a single node at any one time, and
only that node can perform I/O to it
Only one node accesses
a LUN at a time
SAN
Shared Storage
Migration & Storage with Windows
Server 2008 R2
NEW Cluster Shared Volume (CSV)
CSV provides a single consistent file name space;
All Windows Server 2008 R2 servers see
the same storage
Guest VMs can be moved without requiring any drive
ownership changes
No dismounting and remounting of volumes is required
Enabling multiple nodes to concurrently access
a single ‘truly’ shared volume
From hundreds of LUN’s to a handful…
Validate times from all night long, to minutes…
Real browse-able paths, no more GUID’s…
Cluster Shared Volume Overview
Concurrent
access to a
single file
system
SAN
Single Volume
Disk5
VHD
VHD
VHD
Node Fault Tolerance
Coordination
Node
VM running on
Node 2 is
unaffected
Volume relocates to a
healthy node
SAN
VHD
Brief queuing of I/O
while volume
ownership is changed
I/O Connectivity Fault Tolerance
I/O Redirected
via network
VM running on
Node 2 is
unaffected
Coordination
Node
SAN
VHD
SAN Connectivity
Failure
VM’s can then be Live
Migrated to another node
with zero downtime
Microsoft Hyper-V Server 2008 R2
Free download from
http://www.microsoft.com/hvs
New 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
Enhancements to SCONFIG
Enhanced scalability
Manage Remotely…
Remote Server Administration Tool
Microsoft Hyper-V Server V1 vs. V2
Microsoft Hyper-V Server
2008
Microsoft Hyper-V Server V2
Up to 4 processors
Up to 8 processors
Up to 32 GB
Up to 1 TB
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
High Availability
(can be clustered with Windows
Server 2008 R2 server core)
No
Yes
Yes
Processor Support
Physical Memory Support
Virtual Machine Memory Support
Management Options
Free Hyper-V Manager MMC
SCVMM
Free Hyper-V Manager MMC
SCVMM
Demo Environment Overview
HVNODE1
(Microsoft Hyper-V Server 2008 R2)
HVNODE2
(Windows Server 2008 R2 deployed as Server core)
CONTOSO:
Tips and tricks
Always run cluster validation
No need to create virtual
network switch on Live
Migration network
Same virtual network switch
names across all cluster nodes
Live Migration networks
Default is second lowest metric
Network Configuration
Standard Production Configuration
Separate private network of at least 1Gb for Live Migration
Separate private network for cluster and CSV
Separate public network for management OS
Separate public networks for VMs
What if I only have 2 NICs?
Both NICS should be 10Gb – preferred for production
configuration
1 NIC for Live Migration & CSV/Cluster
1 NIC for management and VM Traffic
Cap/limit network traffic on both NICs using Windows eQoS to
avoid starvation
Related Content
MGT220 Virtualisation 360: Microsoft Virtualisation Strategy, Products, and Solutions for the
New Economy
SVR205 Introduction to Hyper-V and Windows Server 2008 R2 with Microsoft System Center
Virtual Machine Manager
SVR208 Gaining Higher Availability with Windows Server 2008 R2 Failover Clustering
SVR303 Planning for Windows Server 2008 R2, Virtualization and Server Consolidation with
Windows Server Solution Accelerators
SVR307 Security Best Practices for Hyper-V and Server Virtualisation
SVR308 Storage and Hyper-V: The Choices You Can Make and the Things You Need to Know
SVR318 How to Protect Your Virtualised Environment
SVR319 Multi-Site Clustering with Windows Server 2008 R2
SVR09-IS Windows Server 2008 R2 Hyper-V Deployment Considerations
Track Resources
Live Migration Guide
http://technet.microsoft.com/en-us/library/dd446679(WS.10).aspx
http://www.microsoft.com/downloads/details.aspx?FamilyID=fdd083c6-3fc7-470b-85697e6a19fb0fdf&displaylang=en
Microsoft Virtualization Home:
http://www.microsoft.com/virtualization
Microsoft Virtualization TechCenter
http://technet.microsoft.com/en-us/virtualization/default.aspx
Microsoft Hyper-V Security Guide
http://technet.microsoft.com/en-us/library/dd569113.aspx
Windows Virtualization Blog Site:
http://blogs.technet.com/virtualization/default.aspx
Virtualization Case Studies
http://www.microsoft.com/virtualization/case-studies.mspx
Windows Server 2008 Virtualization & Consolidation:
http://www.microsoft.com/windowsserver2008/en/us/virtualization-consolidation.aspx
System Center Virtual Machine Manager (SCVMM)
http://www.microsoft.com/systemcenter/virtualmachinemanager/en/us/default.aspx
Hyper-V FAQ
http://www.microsoft.com/windowsserver2008/en/us/hyperv-faq.aspx
Complete an evaluation
on CommNet and enter to
win an Xbox 360 Elite!
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should
not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,
IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.