One of the new features of Hyper-V in Windows Server 2012 is Live Migration of virtual machines. This feature allows you to move running virtual machines from one Hyper-V server to another Hyper-V Server. Two hyper-v Servers should be in same domain or different domains having 2 way trust with each other. The limitation of this feature is that the VM can be moved from Windows Server 2012 Hyper-V Server to Windows Server 2012 Hyper-V Server. VM can’t be moved to a down level server is not supported.
Hyper-V live migration moves running virtual machines from one physical server to another with no impact on virtual machine availability to users. A live migration is deterministic which means the administrator chooses the destination server that the VM needs to be moved to. The guest operating system of the migrating virtual machine is not aware that the migration is happening, so no special configuration for the guest operating system is needed.
Prerequisites for Hyper-V Live migration
- The source and Destination Server must have Hyper-V roles installed with one VM created.
- The Source and destination Server must belong to same domain or there must be trust if they are in different domains.
- The account you use to configure live migration and to perform the live migrations must be a member of the local Hyper-V Administrators group or the Administrators group on both the source and destination computers.
Follow these steps to configure live migration in Hyper-v.
- Open Hyper-V Manager if it is not already open. (From Server Manager, click Tools and then click Hyper-V Manager.)
- In the navigation pane, select one of the servers that you want to configure for live migrations. (If none of the servers are listed, click Hyper-V Manager in the navigation pane. Then, in the Action pane, click Connect to Server and specify each server name. After that, select one of the servers in navigation pane.)
- In the Action pane, click Hyper-V Settings.
- In Hyper-V Settings dialog box, click Live Migrations.
- In the Live Migrations pane, check Enable incoming and outgoing live migrations.
- Under Simultaneous live migrations, specify a different number if you don’t want to use the default of 2.
- Under Incoming live migrations, if you want to use specific network connections to accept live migration traffic, click Add to type the IP address information. Otherwise, click Use any available network for live migration. Click OK.
- If you have configured constrained delegation expandLive Migrations and then select Advanced Features.
- In the Advanced Features pane, under Authentication protocol, select Kerberos.
- Click OK.
- Select the other server in Hyper-V Manager and repeat the remaining steps.
Follow these steps to move a virtual machine from one Hyper-V Server to another.
- From the Virtual Machines section of Hyper-V Manager, right-click the virtual machine and then click Move.
- On the Choose Move Type page of the Move Wizard, choose Move the virtual machine.
- On the Specify Destination page, type the name or browse to the destination computer.
- On the Choose Move Options page, select whether you want to move various items stored for a virtual machine, such as virtual hard disks, snapshots, and paging file.
- On the Summary page, review your choices and then click Finish.