Performing Live Migration with Hyper-V Manager

After previously having to use System Center Virtual Machine Manager for live migration of VMs, it is now possible to set up Hyper-V 3.0 for live migration directly through the Hyper-V manager console.

Set up Hyper-V 3.0 for Live Migration

Prerequisites:

2 or more physical servers with the same processor manufacturer

Intel or AMD CPU supporting Virtualization extensions (VT-x/AMD-V)

SLAT recommended for performance

Windows Server 2012 with Hyper-V 3.0 Role installed

Install Windows Server 2012 and install the Hyper-V role in server manager

Both servers members of the same domain

Join both servers to the same domain

One or both servers may be a domain controller of a new domain if an existing domain is not available

Both servers set up for Live Migrations

In the Hyper-V Settings in Hyper-V Manager, Live Migrations sub-menu, check the “Enable incoming and outgoing live migrations” checkbox.

Select use CreddSSP as the Authentication protocol as it is simpler to configure but requires you to be logged on to the server

Specify 1 or more Simultaneous live migrations

Select “Use any available network for live migration” or configure the IP range if you have multiple networks

clip_image002

Identical network configuration

This can be tested in SCVMM under the Migrate VM Wizard

This portion of the setup is easier to configure using VMM since it gives feedback and recommendations to your current configuration:

clip_image004

If SCVMM is unavailable, name your virtual switches the same on both physical servers:

clip_image006

Recommended:

Same processor architecture (Workaround by setting Compatibility Configuration > “Migrate to a physical computer with a different processor version” checkbox in VM Settings under Processor > Compatibility sub-tree)

clip_image008

 

After these prerequisites are complete, the process of actually performing a live migration is simple:

1. Right click Virtual Machine in Hyper-V manager and select Move…

2. Follow the Wizard, specifying the Move Type as “Move the virtual machine”

clip_image010

3. Specify the destination server name

clip_image012

4. Select the “Move the virtual machine’s data to a single location” option

clip_image014

5. Specify the location on the target server to save the VM file or browse for the location using Remote File Browser

clip_image016

6. Review and accept the configuration by clicking Finish on the wizard

clip_image018

 

That’s it! You can now move you virtual machines back and forth between your servers without any downtime!

 

Pitfall: Pay very close attention to the network configurations of your servers as each snapshot requires the corresponding network connection on the target server. If you experience errors while moving a VM, and your configuration otherwise looks correct, check the settings for each snapshot and verify they reflect your current virtual network infrastructure. Yes, you can change the settings for each snapshot independently…

image

If you'd like to share this, click below:

Leave a Reply

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