Qcow: Difference between revisions
Link |
|||
Line 5: | Line 5: | ||
== Features == |
== Features == |
||
One of the main characteristics of qcow [[disk image]]s is that files with this format can grow as data is added. This allows for smaller file sizes than [[IMG (file format)|raw disk images]], which allocate the whole image space to a file, even if parts of it are empty. This is particularly useful for [[file system]]s that do not support [[sparse file |
One of the main characteristics of qcow [[disk image]]s is that files with this format can grow as data is added. This allows for smaller file sizes than [[IMG (file format)|raw disk images]], which allocate the whole image space to a file, even if parts of it are empty. This is particularly useful for [[file system]]s that do not support [[sparse file]]s, such as [[FAT32]].<ref name="qcow1doc" /> |
||
The qcow format also allows storing changes made to a read-only base image on a separate qcow file by using [[Copy-on-write|copy on write]]. This new qcow file contains the path to the base image to be able to refer back to it when required. When a particular piece of data has to be read from this new image, the content is retrieved from it if it is new and was stored there; if it is not, the data is fetched from the base image.<ref name="qcow1doc">{{ cite web | url = http://people.gnome.org/~markmc/qcow-image-format-version-1.html | title = The QCOW Image Format | publisher = People.gnome.org | date = 2006-06-21 | accessdate = 2013-04-23 }}</ref> |
The qcow format also allows storing changes made to a read-only base image on a separate qcow file by using [[Copy-on-write|copy on write]]. This new qcow file contains the path to the base image to be able to refer back to it when required. When a particular piece of data has to be read from this new image, the content is retrieved from it if it is new and was stored there; if it is not, the data is fetched from the base image.<ref name="qcow1doc">{{ cite web | url = http://people.gnome.org/~markmc/qcow-image-format-version-1.html | title = The QCOW Image Format | publisher = People.gnome.org | date = 2006-06-21 | accessdate = 2013-04-23 }}</ref> |
Revision as of 04:12, 20 April 2018
qcow is a file format for disk image files used by QEMU, a hosted virtual machine monitor.[1] It stands for "QEMU Copy On Write" and uses a disk storage optimization strategy that delays allocation of storage until it is actually needed. Files in qcow format can contain a variety of disk images which are generally associated with specific guest operating systems. Two versions of the format exist: qcow, and qcow2, which use the .qcow and .qcow2 file extensions, respectively.
Features
One of the main characteristics of qcow disk images is that files with this format can grow as data is added. This allows for smaller file sizes than raw disk images, which allocate the whole image space to a file, even if parts of it are empty. This is particularly useful for file systems that do not support sparse files, such as FAT32.[2]
The qcow format also allows storing changes made to a read-only base image on a separate qcow file by using copy on write. This new qcow file contains the path to the base image to be able to refer back to it when required. When a particular piece of data has to be read from this new image, the content is retrieved from it if it is new and was stored there; if it is not, the data is fetched from the base image.[2]
Optional features include zlib-based transparent decompression.[3]
One disadvantage of qcow images is that they cannot be mounted directly as raw disk images would. A utility that is able to read qcow files is required before being able to mount one.
qcow2
qcow2 is an updated version of the qcow format, intended to supersede it. The difference to the original version is that qcow2 supports multiple snapshots through a newer, flexible model for storing snapshots.
References
- ^ "QEMU Emulator User Documentation". Wiki.qemu.org. Retrieved 2011-12-12.
- ^ a b "The QCOW Image Format". People.gnome.org. 2006-06-21. Retrieved 2013-04-23.
- ^ "The QCOW2 Image Format". People.gnome.org. 2008-09-11. Retrieved 2011-12-12.