DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Securing Your Software Supply Chain with JFrog and Azure
Register Today

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

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
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Hyper-V - Live Migration

Hyper-V - Live Migration

Brian Lewis user avatar by
Brian Lewis
·
Apr. 04, 13 · Interview
Like (0)
Save
Tweet
Share
3.53K Views

Join the DZone community and get the full member experience.

Join For Free
this is post 12 of 20 in a series of how to’s on virtualization with microsoft hyper-v. for a full list of posts in this series please see dan stolts’s original post (o of 20) located here:
http://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.

image

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.

ws2012_live_migration

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.

Hyper-V Host (Unix)

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

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: