本文介绍了qemu-img如何合并QCOW2增量图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是新来者.我正在学习OpenStack和kvm,但现在遇到了一个难题:

Hello everyone, I am a newcomer.I am learning OpenStack and kvm,but now I met a difficult problem:

     I have a qcow2 image A,

     a qcow2 delta image B whose backing file is A,

     and a qcow2 image C whose backing file is B.

     Now I want to merge the B and C into a qcow2 image D whose backing file is A.

     I have tried to use qemu-img to solve it, but still didn't get positive solutions.

希望您能帮助我,非常感谢.

I hope you can help me, really appreciate.

推荐答案

cp C D
qemu-img rebase -b A D

这将创建名为DC的副本,然后在A上重新建立D的位置.

This creates a copy of C called D and then rebases D on A.

这篇关于qemu-img如何合并QCOW2增量图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-30 10:22