Qemu-img: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| (11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 6: | Zeile 6: | ||
No errors were found on the image. | No errors were found on the image. | ||
Image end offset: 262144 | Image end offset: 262144 | ||
*qemu-img info greta.qcow2 | |||
=Qcow2 Disc info= | |||
<pre> | |||
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 | |||
</pre> | |||
=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 | ||
* | <pre> | ||
image: heidi.raw | |||
file format: raw | |||
virtual size: 10G (10737418240 bytes) | |||
disk size: 0 | |||
</pre> | |||
=Raw resize= | |||
*qemu-img resize -f raw heidi.raw +4G | |||
Image resized. | |||
=Links= | |||
*http://qemu-buch.de/de/index.php?title=QEMU-KVM-Buch/_Speichermedien/_Images_anlegen | |||
Aktuelle Version vom 15. Oktober 2017, 20:25 Uhr
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.