Skimming through the latest libvirt releases, to my surprise, i found that latest versions (>= v10.10.0) have added support for the QCOW data-file setting.
Usually the incremental backup feature using bitmaps was limited to qcow2 based images, as there was no way to store the bitmaps persistently within raw devices. This basically ruled out proper incremental backups for direct attached luns, etc.
In the past, there were some discussions how to implement this, mostly by using a separate metadata qcow image, holding the bitmap information persistently.
These approaches have been discussed again lately and required features were implemented
In order to be able to use the feature, you need to configure the virtual machines and its disks in a special way:
Lets assume you have a virtual machine that uses a raw device /tmp/datafile.raw
1) Create an qcow image (same size as the raw image):
2) Now use the amend option to point the qcow image to the right raw device using the data-file option:
3) Reconfigure the virtual machine configuration to look like this:
Now its possible to create persistent checkpoints:
and the persistent bitmap will be stored within the metadata image:
Hoooray.
.png)


