Qemu-img
Zur Navigation springen
Zur Suche springen
Qcow2 Disc create
- qemu-img create -f qcow2 greta.qcow2 10G
Formatting 'greta.qcow2', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
Qcow2 Disc check
- qemu-img check greta.qcow2
No errors were found on the image. Image end offset: 262144
- qemu-img info greta.qcow2
Qcow2 Disc info
image: greta.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 196K cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false
Qcow2 resize
- qemu-img resize -f qcow2 greta.qcow2 +4G
Image resized.
Raw Disc create
- qemu-img create heidi.raw 10G
Formatting 'heidi.raw', fmt=raw size=10737418240
Raw Disc info
- qemu-img info heidi.raw
image: heidi.raw file format: raw virtual size: 10G (10737418240 bytes) disk size: 0
Raw resize
- qemu-img resize -f raw heidi.raw +4G
Image resized.