Re:Creating a modifiable gzipped disk image
by rwmj on Sunday December 04, 2022 @08:10AM
(#33853377)
Prefixed by saying this is indeed a good approach, I did just want to point out some potential issues:
- Clouds don't universally support qcow2 (or even worse, use their own implementation which isn't feature-complete)
- Probably a per-cluster compressed qcow2 isn't ever going to be as small as a qcow2.xz file.
[Edit: deleted a bogus third point here about making these files, no special tools are needed to create or modify compressed qcow2 files]
The data layout within the file can be queried with "qemu-img map file.qcow2" so you know the offsets where uncompressed data can be overwritten (if you want to patch it from the host instead of from inside a virtual machine).