This is an old revision of the document!
VMware OS Optimization Tool. -
Testing system updates using libvirts checkpoint feature - https://abbbi.github.io/changes/
virtndbackup error - https://github.com/abbbi/virtnbdbackup/discussions/119
Checkpoints increment backup
# Libvirt - checkpoints - dirtybitmap
article for incremental backup - https://abbbi.github.io/changes/
## Commands
virsh checkpoint-create
virsh qemu-monitor-command one-31 --pretty '{"execute": "query-block", "arguments": {}}'
qemu-img info --output json --force-share /var/lib/one/datastores/0/31/disk.0
## Manual
1.https://qemu-project.gitlab.io/qemu/interop/bitmaps.html#bitmap-status
1.https://qemu-project.gitlab.io/qemu/interop/dbus-vmstate.html
## Interesting manual with commands
1.https://github.com/OpenNebula/one/issues/6206 - in first message examples of commands
1.
<details>
<summary>Example of create chekpoints and use it</summary>
12:23:12.061 [CMD]: virsh --connect qemu:///system checkpoint-list --name 0f297c4b-001f-434d-9123-739342da23fb
12:23:12.079 [CMD]: DONE
12:23:12.080 [CMD]: virsh --connect qemu:///system domfsfreeze 0f297c4b-001f-434d-9123-739342da23fb
12:23:12.149 [CMD]: DONE
12:23:12.152 [CMD]: qemu-img create -f qcow2 /var/lib/one//datastores/0/36/tmp/scracth.0.qcow2 256M
12:23:12.211 [CMD]: DONE
12:23:12.211 [CMD]: virsh --connect qemu:///system backup-begin --reuse-external --backupxml /var/lib/one//datastores/0/36/tmp/backup.xml --checkpointxml /var/lib/one//datastores/0/36/tmp/checkpoint.xml 0f297c4b-001f-434d-9123-739342da23fb
12:23:12.641 [CMD]: DONE
12:23:12.641 [CMD]: virsh --connect qemu:///system domfsthaw 0f297c4b-001f-434d-9123-739342da23fb
12:23:12.716 [CMD]: DONE
12:23:12.719 [CMD]: nbdinfo --json --map=qemu:dirty-bitmap:backup-vda nbd+unix:///vda?socket=/var/lib/one//datastores/0/36/backup.socket
12:23:12.726 [CMD]: DONE
12:23:12.726 [CMD]: qemu-img create -f qcow2 -F raw -b nbd+unix:///vda?socket=/var/lib/one//datastores/0/36/backup.socket /var/lib/one//datastores/0/36/backup/disk.0.2
12:23:12.794 [CMD]: DONE
12:23:12.794 [CMD]: qemu-io
12:23:13.034 [CMD]: DONE
12:23:13.034 [BCK]: Incremental backup done in 0.955029454s
12:23:13.034 [CMD]: virsh --connect qemu:///system domjobabort 0f297c4b-001f-434d-9123-739342da23fb
12:23:13.054 [CMD]: DONE
12:23:13.055 [CMD]: virsh --connect qemu:///system checkpoint-list --name 0f297c4b-001f-434d-9123-739342da23fb
12:23:13.072 [CMD]: DONE
12:23:13.072 [CMD]: qemu-img info --output json --force-share /var/lib/datastores/local_mount/0/36/disk.0.snap/0
12:23:13.077 [CMD]: DONE
12:23:13.078 [CMD]: virsh --connect qemu:///system checkpoint-delete 0f297c4b-001f-434d-9123-739342da23fb one-36-0
12:23:13.399 [CMD]: DONE
</details>
````
sed -i 's/pc-q35-7.2/pc-q35-6.1/g' ./vmconfig.virtnbdbackup.32.xml
sed -i 's/<seclabel/<!--seclabel/g' ./vmconfig.virtnbdbackup.32.xml
sed -i 's/<\/seclabel>/<\/seclabel-->/g' ./vmconfig.virtnbdbackup.32.xml