( XMI | 2024. 04. 24., sze – 11:28 )

Szerintem nem erdemes a matrjoska trukkozes, csak bonyolitja az eletet.

qemu-img convert -c -F qcow2 -o compression_type=zstd original.img newimage.qcow2

(-c compressed, -F output format, a -o compression_type=zstd nem biztos, hogy tamogatott, akkor marad a default zlib)

Utana

modprobe nbd max_part=8

qemu-nbd -c /dev/nbd0 -f qcow2 newimage.qcow2

Es innentol a /dev/nbd0 alatt ott figyel a teljes image block device-kent. Lehet rajta mindent csinalni, amig a read-only mod megfelel: kpartx -a, mount, photorec...