计算机科学 ›› 2009, Vol. 36 ›› Issue (7): 256-261.doi: 10.11896/j.issn.1002-137X.2009.07.063

• 图形图像及体系结构 • 上一篇    下一篇

虚拟机磁盘迁移技术研究与实现

吕小虎,李沁   

  1. (北京航空航天大学计算机学院 北京100191)
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家973项目(编号:2005CB321803) ,国家863项目(编号:2007AA01Z426)资助。

Research and Implementation on Migration of Virtual Machine Including Vm-disk

LU Xiao-hu,LI Qin   

  • Online:2018-11-16 Published:2018-11-16

摘要: 已有基于内存的虚拟机迁移技术要求迁移源机和目标机之间必须共享网络磁盘,迁移性能受网络条件的影响很大,且在不支持“共享网络磁盘”的环境中,无法实现虚拟机迁移。针对上述问题,考虑到虚拟机磁盘作为虚拟机运行所需的持久化状态的封装体,所展现出的如高可用性、高效能、安全稳定等良好特性,提出基于磁盘的虚拟机迁移。通过设计虚拟磁盘驱动系统DiskMig,在实现虚拟机磁盘迁移的同时保证了其在源端和目的端的一致性。设计了“Transfer on Demand with Forward-ahead"( TOD&FA)算法快速同步源端和目的端磁盘文件差异。DiskMig采用自行设计的高效存储结构bitmap,使记录、查询虚拟机磁盘迁移过程中的大量到I/O操作时仅需时间复杂度O(1)。实验表明,DiskMig所采用的相关方法对虚拟机及其中应用程序运行性能的影响仅为5%左右,有效支持了虚拟机磁盘文件的迁移。

关键词: 虚拟机迁移,虚拟机,一致性,虚拟磁盘驱动

Abstract: The existing memory-based virtual machine ( VM) migration technology requires network-disk shared between source side and destination side, which results performance degradation greatly from poor network quality, and the VM migration can not be implemented without shared network-disk environment. To solve these problems, in view of the high-availability, high-performance, security and stability displayed by VM-disk, which acts as the encapsulation of VM persistent running state,a new migration strategy based on VM disk was proposed and implemented. A virtual disk driver named DiskMig was designed to migrate VM disk and ensure its consistency during migration process, and a new algorithm Transfer on Demand with Forward-ahead(TOD& FA) was presented to synchronize disk differences between source and destination fast. An effective storage structure bitmap was adopted by DiskMig system to record and search massive I/O offset information during migration with only constant time complexity. The experiment demonstrates that the performance of VM and its applications brought by the DiskMig system was only 5 percent degraded,thus the VM migration including its disk is implemented efficiently.

Key words: Virtual machine migrate, Virtual machine, Consistency, Virtual disk driver

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!