Asked 6 years, 2 months ago. Active 6 years, 2 months ago. Viewed 5k times. Improve this question. Yunus Yunus 1, 12 12 silver badges 18 18 bronze badges. Add a comment. Active Oldest Votes.
It's easy, just read qemu-doc. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 0. Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Post by rjolbrich » Tue May 19, am. Post by rjolbrich » Tue May 19, pm.
Post by adespoton » Wed May 20, pm. Post by rjolbrich » Thu May 21, am. Post by rjolbrich » Thu May 21, pm. Post by adespoton » Thu May 21, pm. Post by rjolbrich » Fri May 22, am. Post by adespoton » Fri May 22, pm.
Post by rjolbrich » Fri May 22, pm. Post by adespoton » Mon May 25, pm. QEMU supports many image file formats that can be used with VMs as well as with any of the tools like qemu-img.
This includes the preferred formats raw and qcow2 as well as formats that are supported for compatibility with older QEMU versions or other hypervisors. Depending on the image format, different options can be passed to qemu-img create and qemu-img convert using the -o option.
This section describes each format and the options that are supported for it. Raw disk image format. This format has the advantage of being simple and easily exportable to all other emulators. If your file system supports holes for example in ext2 or ext3 on Linux or NTFS on Windows , then only the written sectors will reserve space.
Preallocation mode allowed values: off , falloc , full. This data may or may not be zero, depending on the storage location. QEMU image format, the most versatile format. Use it to have smaller images useful if your filesystem does not supports holes, for example on Windows , zlib based compression and support of multiple VM snapshots.
Determines the qcow2 version to use. Amongst others, this includes zero clusters, which allow efficient copy-on-read for sparse images. File name of a base image see create subcommand. This option is deprecated and equivalent to encrypt.
If this is set to luks , it requests that the qcow2 payload not qcow2 header be encrypted using the LUKS format. The passphrase to use to unlock the LUKS key slot is given by the encrypt. LUKS encryption parameters can be tuned with the other encrypt. The encryption key is given by the encrypt. This encryption format is considered to be flawed by modern cryptography standards, suffering from a number of design problems:.
The use of this is no longer supported in system emulators. Support only remains in the command line utilities, for the purposes of data liberation and interoperability with old versions of QEMU.
The luks format should be used instead. Provides the ID of a secret object that contains the passphrase encrypt. Name of the cipher algorithm and key length. Currently defaults to aes Only used when encrypt. Name of the encryption mode to use. Currently defaults to xts. Name of the initialization vector generator algorithm. Currently defaults to plain Name of the hash algorithm to use with the initialization vector generator if required.
Defaults to sha Defaults to Changes the qcow2 cluster size must be between and 2M. Smaller cluster sizes can improve the image file size whereas larger cluster sizes generally provide better performance.
0コメント