Hyper-V - Live Migration
Join the DZone community and get the full member experience.
Join For Freehttp://itproguru.com/expert/2013/03/become-a-virtualization-expert-with-20-days-of-server-virtualization-virtexpert-itproguru-part-0-of-20/
live migration
live
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:
http://aka.ms/hypervfree
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.
in the video below i show a 2 minute demo of moving a dos machine running duke nukem from server hyperv2 to hyperv1 and then back again. the reason i used a dos machine was because the disk is small and so it storage migrates quickly. moving one of my server 2012 boxes takes a tad bit longer as it needs to copy more data in the storage migration phase. the power of moving running vms between any hyper-v host is truly a game changer.
Published at DZone with permission of Brian Lewis, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Essential Architecture Framework: In the World of Overengineering, Being Essential Is the Answer
-
Database Integration Tests With Spring Boot and Testcontainers
-
Building a Flask Web Application With Docker: A Step-by-Step Guide
-
Observability Architecture: Financial Payments Introduction
Comments