Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Live migration of Virtual Machines  



1.1  Pre-copy memory migration  



1.1.1  Pre-copy phase  





1.1.2  Stop-and-copy phase  







1.2  Post-copy memory migration  







2 VM managers with live migration support  





3 Cloud Platforms with live migration support  





4 Systems providing software live migration  





5 See also  





6 References  





7 External links  














Live migration






Русский
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
This article needs additional citations for verification. Please help improve this articlebyadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Live migration" – news · newspapers · books · scholar · JSTOR
(May 2009) (Learn how and when to remove this message)
This article possibly contains original research. Please improve itbyverifying the claims made and adding inline citations. Statements consisting only of original research should be removed. (May 2009) (Learn how and when to remove this message)
(Learn how and when to remove this message)

Live migration, also called migration, refers to the process of moving a running virtual machine (VM) or application between different physical machines without disconnecting the client or application. Memory, storage, and network connectivity of the virtual machine are transferred from the original guest machine to the destination. The time between stopping the VM or application on the source and resuming it on destination is called 'downtime'. When the downtime of a VM during live migration is small enough that it is not noticeable by the end user, it is called a 'seamless' live migration.

Live migration of Virtual Machines[edit]

Two techniques for moving the virtual machine's memory state from the source to the destination are pre-copy memory migration and post-copy memory migration.

Pre-copy memory migration[edit]

Pre-copy phase[edit]

In pre-copy phase,[1] the Hypervisor copies all the memory pages from source to destination while the VM is still running on the source. If some memory pages change (become 'dirty') during the pre-copy phase, they will be copied again and again over several 'pre-copy rounds'. Usually the pre-copy phase ends when the number of dirtied pages remaining becomes small enough to yield a short stop-and-copy phase. However, if a VM keeps dirtying memory faster than can be re-copied to the destination, then pre-copy phase will end after a set time limit or maximum number of pre-copy rounds to begin the next stop-and-copy phase.

Stop-and-copy phase[edit]

After the pre-copy phase, the VM will be paused on the source host, the remaining dirty pages will be copied to the destination, and the VM will be resumed at the destination. The downtime due to this phase can range from a few milliseconds to seconds depending on the number of dirty pages transferred during downtime. VMs that dirty a lot of memory during the pre-copy phase tend to have a larger downtime.

Post-copy memory migration[edit]

Post-copy[2] VM migration is initiated by suspending the VM at the source. With the VM suspended, a minimal subset of the execution state of the VM (CPU state, registers and, optionally, non-pageable memory) is transferred to the target. The VM is then resumed at the target. Concurrently, the source actively pushes the remaining memory pages of the VM to the target - an activity known as pre-paging. At the target, if the VM tries to access a page that has not yet been transferred, it generates a page-fault. These faults, known as network faults, are trapped at the target and redirected to the source, which responds with the faulted page. Too many network faults can degrade performance of applications running inside the VM. Hence pre-paging can dynamically adapt the page transmission order to network faults by actively pushing pages in the vicinity of the last fault. An ideal pre-paging scheme would mask large majority of network faults, although its performance depends upon the memory access pattern of the VM's workload.

Post-copy sends each page exactly once over the network whereas pre-copy can transfer the same page multiple times if the page is dirtied repeatedly at the source during migration. On the other hand, pre-copy retains an up-to-date state of the VM at the source during migration, whereas during post-copy, the VM's state is split across the source and the destination. If the destination fails during live migration, pre-copy can recover the VM, whereas post-copy cannot.

VM managers with live migration support[edit]

Cloud Platforms with live migration support[edit]

Systems providing software live migration[edit]

See also[edit]

References[edit]

  1. ^ Clark, Christopher; et al. Live migration of virtual machines. NSDI'05.
  • ^ Hines, et al, Post-copy live migration of virtual machines
  • ^ "Xen project Mailing List".
  • ^ "Migration - KVM".
  • ^ "Chapter 4. KVM Live Migration Red Hat Enterprise Linux 6".
  • ^ "KVM-15 release [LWN.net]".
  • ^ "Daniel P. Berrangé » Blog Archive » Analysis of techniques for ensuring migration completion with KVM".
  • ^ Windows Server 2012 Unleashed. Sams. 2012-09-16. ISBN 978-0-672-33622-5.
  • ^ "VirtualBox Manual - Teleporting".
  • ^ "Qemu/KVM Virtual Machines - Proxmox VE".
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Live_migration&oldid=1202669853"

    Category: 
    Virtualization
    Hidden categories: 
    Articles needing additional references from May 2009
    All articles needing additional references
    Articles that may contain original research from May 2009
    All articles that may contain original research
    Articles with multiple maintenance issues
     



    This page was last edited on 3 February 2024, at 07:44 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki