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. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature