Difference between revisions of "Qemu-img"
Jump to navigation
Jump to search
(18 intermediate revisions by the same user not shown) | |||
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 | + | <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 info]] MY_image-qcow.qcow2</code><ref>https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html</ref> | * <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]] --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> | ||
− | |||
− | |||
− | |||
* 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 snapshot]]</code> (See also: <code>[[lvcreate]] --snapshot</code> for LVM snapshots) | ||
− | * <code>qemu-img convert</code> | + | * <code>[[qemu-img convert]]</code> (Related commands: <code>[[virt-clone]]</code>) |
+ | |||
* <code>[[qemu-img check]]</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> | + | * <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 commit]]</code> | ||
+ | * <code>[[qemu-img compare]]</code> | ||
== Activities == | == Activities == | ||
* [[Extend LVM on qcow2 images]] | * [[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}} | ||
* {{virtinst}} | * {{virtinst}} | ||
* {{QEMU}} | * {{QEMU}} |
Latest revision as of 19:04, 30 August 2021
qemu-img
[1] allows you to create, convert and modify images offline include in qemu-utils
package. It can handle all image formats supported by QEMU.
qemu-img info MY_image-qcow.qcow2
[2]qemu-img info --backing-chain MY_image-qcow.qcow2
- Create a snapshot:
qemu-img create -f qcow2 -o backing_file=original snapshot.qcow
[3] qemu-img snapshot
(See also:lvcreate --snapshot
for LVM snapshots)
qemu-img convert
(Related commands:virt-clone
)
qemu-img check
qemu-img check -r all
qemu-img resize YOUR_IMAGE.qcow2 +SIZE
[4] (Extend LVM on qcow2 images)[5] (See also:virsh blockresize
andvirt-filesystems
)
Activities[edit]
- Extend LVM on qcow2 images
- Read qemu-img superuser questions: https://superuser.com/questions/tagged/qemu?tab=Votes
Related commands[edit]
See also[edit]
qemu-img
:qemu-img info
,qemu-img check
,qemu-img resize
,qemu-img create
, qcow2,qemu-img rebase
,qemu-img convert
,qemu-img commit
,qemu-img ammend
virtinst
(package):virt-install
,virt-clone
,virt-convert
andvirt-xml
- QEMU:
qemu-img
,qemu-ga
,qemu.conf
,virsh qemu
, QEMU guest agent (qemu-ga
), qcow2,qemu-nbd, qemu-img map
,qemu-io
,/etc/libvirt/qemu.conf
, QEMU releases, VENOM,qemu-nbd --help, qemu-system
- https://en.wikibooks.org/w/index.php?title=QEMU/Images
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source: wikiversity
- ↑ https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html
- ↑ https://manpages.debian.org/testing/qemu-utils/qemu-img.1.en.html
- ↑ http://libguestfs.org/virt-sysprep.1.html#copying-and-cloning
- ↑ https://maunium.net/blog/resizing-qcow2-images/
- ↑ https://serverfault.com/questions/324281/how-do-you-increase-a-kvm-guests-disk-space
Advertising: