Skip to contentSkip to conversation

Could not initialize refcount handling:

DISCUSSION listy 1 participant 2 messages Jul 15 – Jul 17

lore
Share & tools
lore

listy

author
#0 lore raw

Hi guys.

Perhaps not the first place this mailing list might be, however _users_ one seems pretty quiet, thus I'm trying here.

My qemu cannot start a domain:

-> $ virsh create /etc/libvirt/qemu/pacemaker.d/ubusrv2.xml
error: Failed to create domain from /etc/libvirt/qemu/pacemaker.d/ubusrv2.xml
error: internal error: QEMU unexpectedly closed the monitor (vm='ubusrv2'): 2026-07-15T11:25:13.789834Z qemu-kvm: -blockdev {"node-name":"libvirt-2-format","read-only":false,"discard":"unmap","cache":{"direct":true,"no-flush":false},"driver":"qcow2","encrypt":{"format":"luks","key-secret":"libvirt-2-format-encryption-secret0"},"file":"libvirt-2-storage","backing":null}: Could not initialize refcount handling: Input/output error

I qemu check the image:
...
No errors were found on the image.
584043/901120 = 64.81% allocated, 20.63% fragmented, 0.00% compressed clusters Image end offset: 38286524416

-> $ __myQcowInfo --info /X0-STORAGEs/0/X-VMs-BKPs/ubusrv2.qcow2
image: json:{"encrypt.key-secret": "my-sec0", "driver": "qcow2", "file": {"driver": "file", "filename": "/X0-STORAGEs/0/X-VMs-BKPs/ubusrv2.qcow2"}} file format: qcow2
virtual size: 55 GiB (59055800320 bytes)
disk size: 35.7 GiB
encrypted: yes
cluster_size: 65536
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: false
refcount bits: 16
encrypt:
ivgen alg: plain64
detached header: false
hash alg: sha256
cipher alg: aes-256
uuid: 1809fc93-5ae7-4f9e-bf2c-2c3d25364859
format: luks
cipher mode: xts
slots:

I think this might have happened after:

$ -> virsh backup-begin ...
but I'm not 100% sure.

qemu-img version 10.1.0 (qemu-kvm-10.1.0-24.el10)

Any thoughts on how to solve/fix this I'll appreciate a lot. many thanks, L.

author
#1 lore raw

@devel - this issue I described, stems from "broken" - at least in Centos - 10.1.0-24.el10 version. Use 10.1.0-23.el10 version and issue is no more.