Editing Qemu-img

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<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 include in <code>[[qemu-utils]]</code> package. It can handle all image formats supported by [[QEMU]].
+
<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 image formats supported by [[KVM/qemu|QEMU]].
  
  
* <code>[[qemu-img info]] MY_image-qcow.qcow2</code><ref>https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html</ref>  
+
* <code>[[/qemu-img info/]]</code><ref>https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html</ref>  
** <code>[[qemu-img info]] --backing-chain MY_image-qcow.qcow2</code>
+
* <code>[[/qemu-img bench/]]</code>
 
 
 
 
* <code>[[qemu-img bench]]</code>
 
 
 
* <code>[[qemu-img create]]</code>
 
  
 +
* <code>[[/qemu-img create/]]</code>
 +
** <code>qemu-img create -f qcow2 MY_IMAGE_NAME.img 3G</code>
 +
** <code>qemu-img create -f qcow2 -o preallocation=metadata,compat=1.1,lazy_refcounts=on MY_IMAGE_NAME.img</code>
 +
:::<code>lazy_refcounts=on</code> Reference count updates are postponed with the goal of avoiding metadata I/O and improving performance. Particularly interesting with cache=writethrough.
 
* Create a snapshot: <code> qemu-img create -f qcow2 -o backing_file=original snapshot.qcow</code><ref>http://libguestfs.org/virt-sysprep.1.html#copying-and-cloning</ref>
 
* Create a snapshot: <code> qemu-img create -f qcow2 -o backing_file=original snapshot.qcow</code><ref>http://libguestfs.org/virt-sysprep.1.html#copying-and-cloning</ref>
* <code>[[qemu-img snapshot]]</code> (See also: <code>[[lvcreate]] --snapshot</code> for LVM snapshots)
 
  
* <code>[[qemu-img convert]]</code> (Related commands: <code>[[virt-clone]]</code>)
 
  
* <code>[[qemu-img check]]</code>
+
* <code>qemu-img convert</code>
 +
* <code>qemu-img check</code>
 
**<code>qemu-img check -r all</code>
 
**<code>qemu-img check -r all</code>
  
* <code>[[qemu-img resize]] YOUR_IMAGE.qcow2 +SIZE</code><ref>https://maunium.net/blog/resizing-qcow2-images/</ref> ([[Extend LVM on qcow2 images]])<ref>https://serverfault.com/questions/324281/how-do-you-increase-a-kvm-guests-disk-space</ref> (See also: <code>[[virsh blockresize]]</code> and <code>[[virt-filesystems]]</code>)
+
* <code>qemu-img resize YOUR_IMAGE.qcow2 +SIZE</code><ref>https://maunium.net/blog/resizing-qcow2-images/</ref> ([[KVM/Extend LVM on qcow2 images]])<ref>https://serverfault.com/questions/324281/how-do-you-increase-a-kvm-guests-disk-space</ref>
 
 
* <code>[[qemu-img commit]]</code>
 
  
* <code>[[qemu-img compare]]</code>
+
* <code>[[qemu-img snapshot]]</code> (See also: <code>[[linux Administration/Devices and Filesystems/LVM/lvcreate|lvcreate]] --snapshot</code> for LVM snapshots)
  
 
== Activities ==
 
== Activities ==
* [[Extend LVM on qcow2 images]]
+
* [[KVM/Extend LVM on qcow2 images]]
* Read qemu-img superuser questions: https://superuser.com/questions/tagged/qemu?tab=Votes
 
  
== Related commands ==
 
* <code>[[virt-builder]]</code>
 
* <code>[[virt-install]]</code>
 
* <code>[[guestfish]]</code>
 
* <code>[[virt-rescue]]</code>
 
* [[Images]]
 
  
 
== See also ==
 
== See also ==
* {{qemu-img}}
+
* <code>virt-install</code> python script
* {{virtinst}}
+
* [[virt-manager]]
* {{QEMU}}
 
 
* https://en.wikibooks.org/w/index.php?title=QEMU/Images
 
* https://en.wikibooks.org/w/index.php?title=QEMU/Images
* {{KVM}}
 
  
{{CC license}}
+
{{CC License}}
 
Source: wikiversity
 
Source: wikiversity
 
 
[[Category:Virtualization]]
 

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: