“Share nothing” Live Migration with Hyper-V 2012

When you perform a live migration of a virtual machine between two computers that do not share an infrastructure, Hyper‑V first performs a partial migration of the virtual machine’s storage, as shown in the figure below.

ShareNothing

 

Hyper‑V performs the following steps:

  1. Throughout most of the move operation, disk reads and writes go to the source virtual hard disk.
  2. While reads and writes occur on the source virtual hard disk, the disk contents are copied over the network to the new destination virtual hard disk.
  3. After the initial disk copy is complete, disk writes are mirrored to both the source and destination virtual hard disks while outstanding disk changes are replicated.
  4. After the source and destination virtual hard disks are synchronized, the virtual machine live migration is initiated, following the same process that was used for live migration with shared storage.
  5. After the live migration is complete and the virtual machine is successfully running on the destination server, the files on the source server are deleted.

After the virtual machine’s storage is migrated, the virtual machine migrates while it continues to run and provide network services.

Benefits

Live migration, which was introduced with Windows Server 2008 R2, was a valuable improvement for cloud management, giving organizations the ability to move virtual machines without shutting them down. As an organization’s customer base grows, managing the cloud environment becomes more challenging because to use resources effectively, administrators must move virtual machines within a cluster and between clusters more frequently.

With the Windows Server 2012 Hyper‑V live migration improvements, organizations can now not only perform live migrations, but they can also quickly move many virtual machines between clusters and now even to servers that do not share storage, all without downtime. These improvements significantly increase the flexibility of virtual machine placement by providing truly dynamic mobility of virtual machines across a data center. These improvements also increase administrator efficiency and eliminate the user downtime that was previously incurred for migrations across cluster boundaries. In addition to saving time because migration speed is faster, you also save time because you can perform multiple simultaneous live migrations.

Requirements

All live migrations require the following:

  • Windows Server 2012.
  • Two or more Hyper‑V hosts:
    • Servers that support hardware virtualization.
    • Servers that use processors from the same manufacturer (for example, all AMD or all Intel).
  • Hyper‑V hosts that are part of the same Active Directory domain.
  • Virtual machines that are configured to use virtual hard disks or Virtual Fiber Channel disks (no direct-attached storage).
  • A private network for live migration network traffic.

Live migration in a cluster requires:

  • The Windows Failover Cluster Manager feature enabled and configured.
  • Cluster Shared Volume (CSV) storage in the cluster enabled.

Live migration by using shared storage requires the following:

  • All files on a virtual machine (such as virtual hard disks, snapshots, and configuration) stored on a Server Message Block 2.2 (SMB2) share.
  • Permissions on the SMB2 share configured to grant access to the computer accounts of all Hyper‑V hosts.

Live migration with no shared infrastructure has no additional requirements.

Marcos Nogueira

With more than 18 years experience in Datacenter Architectures, Marcos Nogueira is currently working as a Principal Cloud Solution Architect. He is an expert in Private and Hybrid Cloud, with a focus on Microsoft Azure, Virtualization and System Center. He has worked in several industries, including Aerospace, Transportation, Energy, Manufacturing, Financial Services, Government, Health Care, Telecoms, IT Services, and Gas & Oil in different countries and continents. Marcos was a Canadian MVP in System Center Cloud & Datacenter Managenment and he has +14 years as Microsoft Certified, with more than 100+ certifications (MCT, MCSE, and MCITP, among others). Marcos is also certified in VMware, CompTIA and ITIL v3. He assisted Microsoft in the development of workshops and special events on Private & Hybrid Cloud, Azure, System Center, Windows Server, Hyper-V and as a speaker at several Microsoft TechEd/Ignite and communities events around the world.

Leave a Reply

Your email address will not be published. Required fields are marked *