Difference between revisions of "Qemu-img info"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
<code>[[qemu]]-img<ref>https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html#OPTIONS</ref> info IMAGE_NAME</code>
+
<code>[[qemu-img]]<ref>https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html#OPTIONS</ref> info IMAGE_NAME</code>
  
 
<pre>
 
<pre>

Revision as of 16:29, 6 January 2020

qemu-img[1] info IMAGE_NAME

 $ qemu-img info test.vmdk 
 (VMDK) image open: flags=0x2 filename=test.vmdk
 image: test.vmdk
 file format: vmdk
 virtual size: 20M (20971520 bytes)
 disk size: 17M
 $ qemu-img info image-qcow.qcow2
 image: image-qcow.qcow2
 file format: qcow2
 virtual size: 10G (10737418240 bytes)
 disk size: 136K
 cluster_size: 65536
 $ qemu-img info MY_image-qcow.qcow2
 image: MY_image-qcow.qcow2
 file format: qcow2
 virtual size: 20G (21474836480 bytes)
 disk size: 7.5G
 cluster_size: 65536
 Format specific information:
    compat: 1.1
    lazy refcounts: true
    refcount bits: 16
    corrupt: false

Notes:

  • Encrypted information will be available only if the image is encrypted (The use of encryption in qcow and qcow2 images is considered to be flawed by modern cryptography standards)
  • Snapshot list: A list of all internal snapshots

See also

  • https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html#OPTIONS
  • Advertising: