Qemu-img

From wikieduonline
Revision as of 09:35, 2 January 2020 by Welcome (talk | contribs) (Created page with "<code>qemu-img</code><ref>https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html</ref> allows you to create, convert and modify images offline, It can handle all im...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

qemu-img[1] allows you to create, convert and modify images offline, It can handle all image formats supported by QEMU.


  • /qemu-img create/
    • qemu-img create -f qcow2 MY_IMAGE_NAME.img 3G
    • qemu-img create -f qcow2 -o preallocation=metadata,compat=1.1,lazy_refcounts=on MY_IMAGE_NAME.img
lazy_refcounts=on Reference count updates are postponed with the goal of avoiding metadata I/O and improving performance. Particularly interesting with cache=writethrough.
  • Create a snapshot: qemu-img create -f qcow2 -o backing_file=original snapshot.qcow[3]


  • qemu-img convert
  • qemu-img check
    • qemu-img check -r all

Activities


See also

Template:CC License

Source: wikiversity

Advertising: