Qemu-img: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
 
  Image end offset: 262144
 
  Image end offset: 262144
 
*qemu-img info greta.qcow2
 
*qemu-img info greta.qcow2
=Raw Disc create=
 
*qemu-img create heidi.raw  10G
 
Formatting 'heidi.raw', fmt=raw size=10737418240
 
*qemu-img info  heidi.raw
 
<pre>
 
image: heidi.raw
 
file format: raw
 
virtual size: 10G (10737418240 bytes)
 
disk size: 0
 
</pre>
 
 
 
=Qcow2 Disc info=
 
=Qcow2 Disc info=
 
<pre>
 
<pre>

Version vom 15. Oktober 2017, 19:53 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