I’ve now correlated the XO and host logs, which helps narrow down where the time is spent.
The qemu-img info and qemu-img map calls complete within seconds, but the subsequent host-side QCOW2 diff-export process remains active much longer. For example:
09:47:13 Executing …/qcow2-to-stdout.py <snapshot> --diff <reference> …
10:08:57 ConnectionResetError: [Errno 104] Connection reset by peer
At exactly 10:08:57, XO logs:
xo:fs:abstract INFO will output stream
For another VM, the corresponding interval was approximately 18 minutes, again ending when XO opened the backup output streams.
This points to the preparation of the QCOW2 diff stream as the main delay. The connection resets may be caused by XO closing the preparatory HTTP stream before continuing through NBD, rather than an actual backup failure.