[SOLVED] PVE9: qmp command query-block missing bitmaps

abbbi

Member
Jul 17, 2022
17
7
8
hi,

with PVE 8 it was possible to create bitmaps using the "block-dirty-bitmap-add" QMP command and the bitmaps were shown using "query-block" command right after creating them.
Now with PVE 9, it seems this behavior has changed.

First of all, one needs to create a bitmap for the child device of the inserted node:

JSON:
                "children": [
                    {
                        "child": "file",
                        "node-name": "fe0d1a339ae510e43fde3db6a83b965"
                    }

I can create a persistent bitmap for this node:

JSON:
(QEMU) block-dirty-bitmap-add node=fe0d1a339ae510e43fde3db6a83b965 name=test persistent=true
{
    "return": {}
}


but the bitmap is not shown in the query-block command.
Once the VM is reset (power off, and power on) , i can see that the bitmaps have been synced to the qcow file, and query-block command shows them.

Is this behavior specific to the qemu version shipped with PVE 9? Because with the stock qemu version in Debian trixie, the bitmaps are immedately shown in the query-block QMP command once created (and even if not yet synced to the QCOW files)

Thanks.


PS: Sorry for wrong forum, feel free to move thread to english section.
 
Last edited:
ok, instead of "query-block"it seems "query-named-block-nodes" correctly shows the bitmaps and their state once created.
 
  • Like
Reactions: fiona