arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1212.1787cs.OS
收藏

一种通用的虚拟机检查点重启机制

A Generic Checkpoint-Restart Mechanism for Virtual Machines

Rohan Garg, Komal Sodha, Gene Cooperman

摘要:

如今,在虚拟机(VM)内部部署复杂软件是很常见的。快照提供了快速部署、主机之间的迁移、可靠性(容错)和安全性(将来宾虚拟机与主机隔离)。然而,对于每个虚拟机,快照的代码都是在每个虚拟机的基础上费力地开发的。这项工作演示了一个通用的检查点重启机制的虚拟机。该机制基于一个未修改的用户空间检查点重启包DMTCP之上的插件。检查点重新启动演示了三个虚拟机:Lguest、用户空间QEMU和KVM/QEMU。Lguest和KVM/QEMU的插件只需要200行代码。Lguest内核驱动程序API增加了40行代码。DMTCP检查点用户空间QEMU,无需任何新代码。KVM/QEMU、用户空间QEMU和DMTCP不需要修改。该设计受益于其他DMTCP功能和插件。实验证明,检查点和重新启动在0.2秒内使用分叉检查点,基于mmap的快速重新启动,和增量Btrfs的快照。

英文摘要:

It is common today to deploy complex software inside a virtual machine (VM). Snapshots provide rapid deployment, migration between hosts, dependability (fault tolerance), and security (insulating a guest VM from the host). Yet, for each virtual machine, the code for snapshots is laboriously developed on a per-VM basis. This work demonstrates a generic checkpoint-restart mechanism for virtual machines. The mechanism is based on a plugin on top of an unmodified user-space checkpoint-restart package, DMTCP. Checkpoint-restart is demonstrated for three virtual machines: Lguest, user-space QEMU, and KVM/QEMU. The plugins for Lguest and KVM/QEMU require just 200 lines of code. The Lguest kernel driver API is augmented by 40 lines of code. DMTCP checkpoints user-space QEMU without any new code. KVM/QEMU, user-space QEMU, and DMTCP need no modification. The design benefits from other DMTCP features and plugins. Experiments demonstrate checkpoint and restart in 0.2 seconds using forked checkpointing, mmap-based fast-restart, and incremental Btrfs-based snapshots.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑