qemu-img convert a overlay qcow2 image into a entire image
Bug #1662050 reported by
chengkang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have a base image file "base.qcow2" and a delta qcow2 image file "delta.qcow2" whose backing file is "base.qcow2".
Now I use qemu-img to convert "delta.qcow2" and will get a new image file "new.qcow2" which is entire and equivalent to combination of "base.qcow2" and "delta.qcow2".
In fact,I don't want to get a complete image.I just want to convert delta qcow2 image file "A" to a New delta overlay qcow2 image "B" which is equivalent to "A". So the "new.qcow2" is not what i want. I have to admit that this is not bug. Could you please take this as a new feature and enable qemu-img to convert qcow2 overlay itself?
Changed in qemu: | |
assignee: | nobody → wayen (wayen) |
assignee: | wayen (wayen) → nobody |
summary: |
- qemu-img convert a delta qcow2 image into a complete image + qemu-img convert a overlay qcow2 image into a complete image |
summary: |
- qemu-img convert a overlay qcow2 image into a complete image + qemu-img convert a overlay qcow2 image into a entire image |
description: | updated |
Changed in qemu: | |
status: | New → Invalid |
Changed in qemu: | |
status: | Invalid → Incomplete |
description: | updated |
description: | updated |
To post a comment you must log in.
On 02/05/2017 09:19 PM, wayen wrote:
>
> I have a base image file "base.qcow2" and a delta qcow2 image file
> "delta.qcow2" whose backing file is "base.qcow2".
>
> Now I use qemu-img to convert "delta.qcow2" and will get a new image
> + file "new.qcow2" which is entire and equivalent to combination of
> "base.qcow2" and "delta.qcow2".
>
> In fact, i just want to convert the delta qcow2 image file and get a new
> delta overlay qcow2 image file. So the "new.qcow2" is not what i want. I
> have to admit that this is not bug. Could you please take this as a new
> feature and enable qemu-img to convert images in-place?
This feature already exists. Use:
qemu-img rebase -F $backing_fmt -b '' -f qcow2 delta.qcow2
and now delta.qcow2 will be a complete image.
-- libvirt. org
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://