Live MigrationLive Migration is the Microsoft Hyper-v feature where you move a running virtual machine from one physical host to another physical host while the VM continues to run. That’s right without any downtime or service outage. Cool hunh? Yes, for those of you who know VMware, it is like vMotion.
You can download the Free Microsoft Hyper- V server 2012 Here:
Prior to the 2012 version of Hyper-v you needed to setup a failover cluster to enable Hyper-v Live Migration. You also needed to have shared storage to use this feature. With Hyper-v 2012 this technology now adds the ability to move running VMs between non-clustered hosts as well as clustered hosts. Further in addition to iSCSI and Fiber Channel you can now host your shared files on SMB 3.0 file shares. But – the goodness doesn’t stop there, this tech is like the ginsu knife – there’s more… Your files don’t need to be on shared storage. They can just exist on local attached disk and you can still move running Virtual machines between stand alone Hyper-v hosts with Shared Nothing Live Migration.
The high availability that hyper-v offers by allowing you to move VMs from host to host without downtime allows you to physically update your hosts as well as patch them with no downtime to the VMs. When used in a failover cluster you can have virtual machines automatically start on another host when the physical host that they are running on fails. Unfortunately when a reboot is needed on a VM, from say patching it, there is not magic high availability bullet and the VM must be rebooted.
Live Migration Process
In the Live Migration Process the virtual Machine memory is copied form the source machine to the destination machine. First the configuration is copied to the destination server and then the memory is copied. Once the memory is synchronized the network connections can be moved to the destination and the source machine can be removed from ram. When combined with shared storage this is all that is needed to move a running Virtual Machine.
Live Storage Migration
Live Storage Migration works by syncing the VHD or VHDX files between the source and destination storage locations. For more on this technology see my earlier post on Step by step – Storage Live Migration.
Shared Nothing Live Migration
Now if we add together both the Live Migration and the Storage Migration processes we get Shared Nothing Live Migration. This is where we can move a running VM from host to host without using shared storage.
Here is how the process works. First we sync the virtual hard disks between source and destination servers. Then we sync the virtual machine’s memory between the source and destination servers. When we get the two running VMs in sync then we move the network. Lastly delete the source VM.