from zero to live migration. how to set up a live...

43

Upload: others

Post on 16-Apr-2020

7 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is
Page 2: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Howard ChowMicrosoft MVP

Page 3: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Agenda

Overview of Live Migration

Typical Live Migration customer scenarios

Technology overview (Live Migration)

Storage management during Live Migration

Walkthrough: setting up Live Migration

Best practices for setting up Live Migration

Page 4: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

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 it different from Quick Migration?VM is saved and restored on destinationResults 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 failover solution

Page 5: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Key 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

Page 6: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Key scenario 2: Load Balancing

R2

Page 7: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Key scenario 3: Green IT – Power Management

Network

Server 1

Server 2

Web clients

VM3

VM4

VM1 VM2Day1, 8:00

AM: Web

clients are

connected to

Web servers

running in

VM1 to VM4

During business hours, both servers are in use

Page 8: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Key scenario 3: Green IT – Power Management

Network

Server 2

Server 1

Web clients

VM1

VM2

VM3 VM4

Day 1, 6:00 PM:

Number of Web

clients are

dropped, load on

Web servers is

reduced

Day1, 8:00 PM:

VM3 and VM4

are live migrated

to Server 1

Day1, 8:01 PM:

Server 2 is

turned off

During off-peak or non-business hours, number of clients go down

Page 9: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Key scenario 3: Green IT – Power Management

Network

Server 2

Server 1

Web clients

VM1

VM2

VM3 VM4

Day2, 7: 00 AM:

Number of Web

clients are

increasing, load

on Web servers

is going up

Day2, 7:30 AM:

Server 2 is

turned on

Day2, 7: 45 AM:

VM3 and VM4

are live migrated

to Server 2

Following day as business starts, load/demand go up, VMs are live migrated back

Page 10: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Failover Cluster

How Does Live Migration Work?Prerequisites:

Source and Destination computers running WS08 R2Source and destination nodes must be part of a Failover ClusterFiles used by the VM must be located on shared storage

.BIN.VSV.XML

.VHD

Source Node Destination Node

Storage

Page 11: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

How Does Live Migration Work?Phase 1: Setup

Create TCP connection between source and destination nodesTransfer VM configuration data to destination nodeCreate a new VM on the destination node

.BIN.VSV.XML

.VHD

Source Node Destination Node

Network Storage

Configuration Data

Page 12: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

How Does Live Migration Work?

Phase 2: Memory transferTransfer the content of the VMs memory to the destination nodeTrack pages modified by the VM, retransfer these pages Pause the VM before the final transfer pass

.BIN.VSV.XML

.VHD

Source Node Destination Node

Network Storage

Memory Content

Page 13: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

How Does Live Migration Work?Phase 3: State transfer and VM restore

Save register and device state of VM on source nodeTransfer running state and storage ownership to destination nodeStart running VM on destination nodeCleanup VM on source node

.BIN.VSV.XML

.VHD

Source Node Destination Node

Network Storage

Running State

Page 14: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

SAN

Storage Management During Live Migration

Live Migration requires VMs to use shared storage

SAN LUNs managed by the Failover Clustering service

Traditionally, each VM needs its own LUN

Volumes cannot be concurrently mounted on multiple nodes

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

Page 15: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

SAN

Storage Management During Live Migration

The migration of a VM with a dedicated LUN requires that the ownership of the LUN is moved from the source to the destination node

Time-consuming, requires the volumes on the LUN to be offlined on the source node and onlined on the destination nodeIs part of the blackout period

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

Page 16: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

SAN

Cluster Shared Volumes (CSV)New feature of Failover Clustering in Windows Server 2008 R2Single consistent namespace for the volumes on all nodes

%SystemDrive%\ClusterStorage\VolumeX

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

Page 17: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

SAN

CSV and Live MigrationMoving the files of a VM during a migration becomes as simple as closing the files on the source node and opening the files on the destination node

Additionally, CSV significantly simplifies the administration of the SAN

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

.BIN.VSV.XML

.VHD

Page 18: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is
Page 19: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Demo Configuration

My Demo:Cluster Nodes:

HP DL380 G6

Quad Core, 8 GB RAM

Storage:HP Lefthand 4500

12 x 146 GB Disk, RAID

Microsoft iSCSI Target

Networking:Multiple Gigabit Interfaces on server, single on node

Other:All running Windows Server 2008 R2

Best Practices:Cluster Nodes:

Hardware with Windows Logo + Failover Cluster Configuration Program (FCCP)

Storage:Storage with Windows Logo + FCCP

Networking:Multiple Gigabit Interfaces

CSV uses separate network

Other:All running Windows Server 2008 R2

Page 20: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Storage Requirements

CSV + Live MigrationRequired? No

Recommended? Yes

Other solutions include:3rd party Clustered File System

SanBolic Melios

HP PolyServe

Page 21: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Demo Environment Overview

Page 22: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Live Migration via CSV: Step 1

Install WS08 R2 on all systems

Add Hyper-V Role

Install WS08R2 VM on Storage ServerWill act as DC for the demo

Domain required for failover clustering

Add failover clustering role on cluster nodes

Run DCPromo on VM

Join machines to domainOptional: Add DHCP role

Page 23: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Live Migration via CSV: Step 2

iSCSI Target ConfigurationMicrosoft iSCSI Software Target

Included in Windows Storage Server – now available for MSDN/TechNet subscribers!

Alternative iSCSI TargetsStarwind iSCSI Target

SANFly

Create Volumes1 GB for quorum

Remainder for CSV

Ensure bindings are correct!

Page 24: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Live Migration via CSV: Step 3

Configure Networking on nodesCreate Hyper-V External Virtual Network

Assign Static IP to Virtual NIC

Launch iSCSI Control PanelStart -> Administrative Tools -> iSCSI Initiator

Log in to iSCSI target

Page 25: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Live Migration via CSV: Step 4

Create iSCSI Target for clusterUse IQN (iSCSI Qualified Name)

Add both cluster nodes

Assign volumes to target

From Node 1, open Disk Management and online / format disks

Disk 1: Letter Q, Label: Quorum

Disk 2: Letter S, Label: CSV

Ensure that “Add this connection to the list of Favorite Targets” is set!

Page 26: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Live Migration via CSV: Step 5

Open Failover Cluster Manager

Form ClusterCluster Validation Wizard

Enable CSV

Add Disk to CSV

Page 27: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Live Migration via CSV: Step 6

Create VM on CSV volume (c:\clustervolume\volume1)

Add as cluster resource

Power on VM

Live Migrate!

Page 28: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Changes at WS08R2 RTM

Need multiple NIC’s if using iSCSINIC 1: Normal Network Traffic

NIC 2: iSCSI Traffic

NIC 3: CSV Traffic

Page 29: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is
Page 30: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Support for new WS2008 R2 featuresLive migration: Includes compatibility checks

Network optimization: VMQ and Chimney

Hot add/remove of VHDs, Pass-through disks

Storage migration (migrate storage of running VM)

Rapid provisioning (templates)

Support for CFS (CSV and 3rd party solutions)

SAN-related enhancementsMigration in and out of clusters

Support for single target iSCSI with multiple LUNs

Host maintenance mode (host evaluation)

VDI (RDS integration)

RC available end of May;

RTM within 60 days of

WS2008 R2

A centralized, heterogeneous management solution for the virtual datacenter

Page 31: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Maintenance Mode

Apply to all host and host clusters

Two optionsSave-state (no migration)

Live-migrate all running HA VMs and save-state for non-HA running VMs

Page 32: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

In Maintenance Mode

When host is in maintenance mode,Host state is not monitored;

No VM creation is allowed;

No VM can be moved into the host;

Host is excluded from any placement.

What can users do?Request to remove host;

Request to start / stop VMs;

Request to change host properties;

Request to move VM out of the host; …

Page 33: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Exit Maintenance Mode

When host is taken out of maintenance mode,The next host refresher will update host to its current state;

No VM is auto-migrated back;

No VM is auto-restarted;

Host is now available for placement.

Page 34: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is
Page 35: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Microsoft Hyper-V Server V2New Features

Live Migration

High Availability

New Processor SupportSecond Level Address Translation

Core Parking

Networking EnhancementsTCP/IP Offload Support

VMQ & Jumbo Frame Support

Hot Add/Remove virtual storage

Enhancements to SCONFIG

Enhanced scalability

Page 36: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Manage Remotely…

Page 37: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Live Migration $$ Comparison

Hyper-V Server R2 VMware vSphere

3 Node Cluster2 Socket Servers

Free $13,470

3 Node Cluster4 Socket Servers

Free $26,940

5 Node Cluster2 Socket Servers

Free $22,450

5 Node Cluster4 Socket Servers

Free $44,900

For $500 add VMM 2008 R2 (Workgroup Edition) to manage MS Hyper-V Server R2:•Physical to Virtual Conversion (P2V); Quick Storage Migration; Library Management;•Heterogeneous Management; PowerShell Automation; Self-Service Portal and more…

Page 38: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Housekeeping

Speed Stacking final competition @2:45pm

Page 39: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

Level 1Theatre 1: WCL373R– by Howard Chow

Theatre 2: MGT363 – Daniel Lai

Level 4Room S421: DEV363 – by Stephen Forte

Room S423: DYN213 – by Harry Ng

Room S425: DEV313 – by Quoc Bui

Room S427: SVR243 – by Patrick Elliott

Room S426: UNC16-HOL – by Microsoft Certified Trainer

Page 40: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is
Page 41: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is
Page 42: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

www.microsoft.com/teched

Sessions On-Demand & Community

http://microsoft.com/technet

Resources for IT Professionals

http://microsoft.com/msdn

Resources for Developers

www.microsoft.com/learningMicrosoft Certification and Training Resources

www.microsoft.com/learning

Microsoft Certification & Training Resources

Resources

Page 43: From Zero to Live Migration. How to Set Up a Live Migrationdownload.microsoft.com/documents/hk/technet/techdays2009/SVR3… · Best practices for setting up Live Migration. What is

© 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.