1 / 38

From Zero to Live Migration

From Zero to Live Migration. Allen Stewart Program Manager Microsoft Corp. Rajesh Dave Program Manager Microsoft Corp. Vijay Tewari Progra m Manager Microsoft Corp Session Code: SVR314. Agenda. Overview Customer scenarios Technology Demo/Walkthrough: setting up Live Migration Q&A.

romeo
Download Presentation

From Zero to Live Migration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. From Zero to Live Migration Allen Stewart Program Manager Microsoft Corp Rajesh Dave Program Manager Microsoft Corp Vijay Tewari Program Manager Microsoft Corp Session Code: SVR314

  2. Agenda • Overview • Customer scenarios • Technology • Demo/Walkthrough: setting up Live Migration • Q&A

  3. Overview and scenarios

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

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

  6. 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 powershellcmdletdisable-vmhost / enable-vmhost

  7. Scenario 2: load balancing R2 SCVMM 2008 R2 driven by PRO (Performance Resource Optimization) can dynamically live migrate VM’s to meet changing load

  8. Scenario 3: Green IT – Power management During business hours, both servers are in use During off-peak or non-business hours, number of clients go down Following day as Business starts, load goes up, VMs are live migrated back

  9. Under the covers

  10. 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 .VHD .VSV Source Host Destination Host .XML .BIN Storage

  11. Live Migration Initiate Migration I want to Migrate this VM to another physical machine • IT Admin initiates a Live Migration to move a VM from one host to another • Cluster UI • SCVMM 2008 R2 • Cluster PowerShell scripts Client accessing VM • 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 SAN VHD

  12. First initial copy is of all in memory content Live MigrationMemory Copy: Full Copy Memory content is copied to new server VM pre-staged SAN VHD

  13. Client continues to access VM, which results in memory being modified Live MigrationMemory Copy: Dirty Pages Client continues accessing VM Pages are being dirtied SAN VHD

  14. Transfer the content of the VM’s memory to the destination host Track pages modified by the VM, retransfer these pages Final transfer pass Live MigrationMemory Copy: Incremental Copy Recopy of changes Smaller set of changes SAN VHD

  15. 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 Live MigrationFinal Transition Partition State copied SAN VHD

  16. ARP issued to have routing devices update their tables Since session state is maintained, no reconnections necessary Live MigrationPost-Transition: Clean-up Client directed to new host Old VM deleted once migration is verified successfully SAN VHD

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

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

  19. Clustering and Storage

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

  21. 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…  

  22. Cluster Shared Volume Overview Concurrent access to a single file system SAN Disk5 Single Volume VHD VHD VHD

  23. Node Fault Tolerance Coordination Node VM running on Node 2 is unaffected Brief queuing of I/O while volume ownership is changed Volume relocates to a healthy node SAN VHD

  24. I/O Connectivity Fault Tolerance I/O Redirected via network VM running on Node 2 is unaffected Coordination Node SAN Connectivity Failure VM’s can then be Live Migrated to another node with zero downtime SAN VHD

  25. Microsoft Hyper-V Server 2008 R2

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

  27. Manage Remotely… Remote Server Administration Tool

  28. Microsoft Hyper-V Server V1 vs. V2

  29. demo

  30. Demo Environment Overview HVNODE1 (Microsoft Hyper-V Server 2008 R2) HVNODE2 (Windows Server 2008 R2 deployed as Server core) Gigabit Switch CONTOSO: Domain Controller and iSCSI storage

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

  32. 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 eQoSto avoid starvation

  33. Q&A

  34. Required Slide Speakers, please list the Breakout Sessions, TLC Interactive Theaters and Labs that are related to your session. 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 VirtualisedEnvironment SVR319 Multi-Site Clustering with Windows Server 2008 R2 SVR09-IS Windows Server 2008 R2 Hyper-V Deployment Considerations

  35. Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. 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-8569-7e6a19fb0fdf&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

  36. Complete an evaluation on CommNet and enter to win an Xbox 360 Elite!

  37. Required Slide © 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.

More Related