2014-02-21 19:24:08 +04:00
|
|
|
QA output created by 082
|
|
|
|
|
|
|
|
=== create: Options specified more than once ===
|
|
|
|
|
|
|
|
Testing: create -f foo -f qcow2 TEST_DIR/t.qcow2 128M
|
2017-06-23 19:24:06 +03:00
|
|
|
Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=65536 lazy_refcounts=off refcount_bits=16
|
2014-09-30 23:31:27 +04:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 65536
|
|
|
|
|
|
|
|
Testing: create -f qcow2 -o cluster_size=4k -o lazy_refcounts=on TEST_DIR/t.qcow2 128M
|
2017-06-23 19:24:06 +03:00
|
|
|
Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=4096 lazy_refcounts=on refcount_bits=16
|
2014-11-27 19:28:01 +03:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 4096
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
|
|
|
lazy refcounts: true
|
2015-02-10 23:28:44 +03:00
|
|
|
refcount bits: 16
|
2014-09-30 23:31:28 +04:00
|
|
|
corrupt: false
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k TEST_DIR/t.qcow2 128M
|
2017-06-23 19:24:06 +03:00
|
|
|
Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=8192 lazy_refcounts=on refcount_bits=16
|
2014-11-27 19:28:01 +03:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 8192
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
|
|
|
lazy refcounts: true
|
2015-02-10 23:28:44 +03:00
|
|
|
refcount bits: 16
|
2014-09-30 23:31:28 +04:00
|
|
|
corrupt: false
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o cluster_size=4k,cluster_size=8k TEST_DIR/t.qcow2 128M
|
2017-06-23 19:24:06 +03:00
|
|
|
Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=8192 lazy_refcounts=off refcount_bits=16
|
2014-09-30 23:31:27 +04:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 8192
|
|
|
|
|
|
|
|
=== create: help for -o ===
|
|
|
|
|
|
|
|
Testing: create -f qcow2 -o help TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o ? TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 128M
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
2017-07-18 03:34:22 +03:00
|
|
|
Testing: create -f qcow2 -u -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 128M
|
2017-06-23 19:24:06 +03:00
|
|
|
Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 backing_file=TEST_DIR/t.qcow2,,help cluster_size=65536 lazy_refcounts=off refcount_bits=16
|
2014-02-21 19:24:08 +04:00
|
|
|
|
2017-07-18 03:34:22 +03:00
|
|
|
Testing: create -f qcow2 -u -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2 128M
|
2017-06-23 19:24:06 +03:00
|
|
|
Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 backing_file=TEST_DIR/t.qcow2,,? cluster_size=65536 lazy_refcounts=off refcount_bits=16
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 128M
|
|
|
|
qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
|
|
|
|
|
|
|
|
Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2 128M
|
|
|
|
qemu-img: Invalid option list: ,help
|
|
|
|
|
|
|
|
Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 128M
|
|
|
|
qemu-img: Invalid option list: ,,
|
|
|
|
|
|
|
|
Testing: create -f qcow2 -o help
|
2019-04-13 18:20:37 +03:00
|
|
|
Supported qcow2 options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
2019-04-13 18:20:37 +03:00
|
|
|
The protocol level may support further options.
|
|
|
|
Specify the target filename to include those options.
|
|
|
|
|
2014-02-21 19:24:08 +04:00
|
|
|
Testing: create -o help
|
2019-04-13 18:20:37 +03:00
|
|
|
Supported raw options:
|
2018-10-19 19:49:25 +03:00
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
2019-04-13 18:20:37 +03:00
|
|
|
The protocol level may support further options.
|
|
|
|
Specify the target filename to include those options.
|
|
|
|
|
2018-05-10 00:00:22 +03:00
|
|
|
Testing: create -f bochs -o help
|
|
|
|
qemu-img: Format driver 'bochs' does not support image creation
|
|
|
|
|
2014-02-21 19:24:08 +04:00
|
|
|
=== convert: Options specified more than once ===
|
|
|
|
|
|
|
|
Testing: create -f qcow2 TEST_DIR/t.qcow2 128M
|
2017-06-23 19:24:06 +03:00
|
|
|
Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=65536 lazy_refcounts=off refcount_bits=16
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -f foo -f qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
2014-09-30 23:31:27 +04:00
|
|
|
image: TEST_DIR/t.IMGFMT.base
|
2014-02-21 19:24:08 +04:00
|
|
|
file format: raw
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O foo -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
2014-09-30 23:31:27 +04:00
|
|
|
image: TEST_DIR/t.IMGFMT.base
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 65536
|
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
2014-11-27 19:28:01 +03:00
|
|
|
image: TEST_DIR/t.IMGFMT.base
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 4096
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
|
|
|
lazy refcounts: true
|
2015-02-10 23:28:44 +03:00
|
|
|
refcount bits: 16
|
2014-09-30 23:31:28 +04:00
|
|
|
corrupt: false
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
2014-11-27 19:28:01 +03:00
|
|
|
image: TEST_DIR/t.IMGFMT.base
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 8192
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
|
|
|
lazy refcounts: true
|
2015-02-10 23:28:44 +03:00
|
|
|
refcount bits: 16
|
2014-09-30 23:31:28 +04:00
|
|
|
corrupt: false
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o cluster_size=4k,cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
2014-09-30 23:31:27 +04:00
|
|
|
image: TEST_DIR/t.IMGFMT.base
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 8192
|
|
|
|
|
|
|
|
=== convert: help for -o ===
|
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
Supported options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
qemu-img: Could not open 'TEST_DIR/t.qcow2.base': Could not open backing file: Could not open 'TEST_DIR/t.qcow2,help': No such file or directory
|
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
qemu-img: Could not open 'TEST_DIR/t.qcow2.base': Could not open backing file: Could not open 'TEST_DIR/t.qcow2,?': No such file or directory
|
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
|
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
qemu-img: Invalid option list: ,help
|
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
|
|
|
|
qemu-img: Invalid option list: ,,
|
|
|
|
|
|
|
|
Testing: convert -O qcow2 -o help
|
2019-04-13 18:20:37 +03:00
|
|
|
Supported qcow2 options:
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
2019-04-13 18:20:37 +03:00
|
|
|
The protocol level may support further options.
|
|
|
|
Specify the target filename to include those options.
|
|
|
|
|
2014-02-21 19:24:08 +04:00
|
|
|
Testing: convert -o help
|
2019-04-13 18:20:37 +03:00
|
|
|
Supported raw options:
|
2018-10-19 19:49:25 +03:00
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
2019-04-13 18:20:37 +03:00
|
|
|
The protocol level may support further options.
|
|
|
|
Specify the target filename to include those options.
|
|
|
|
|
2018-05-10 00:00:22 +03:00
|
|
|
Testing: convert -O bochs -o help
|
|
|
|
qemu-img: Format driver 'bochs' does not support image creation
|
|
|
|
|
2018-07-27 06:34:02 +03:00
|
|
|
=== convert: -C and other options ===
|
|
|
|
|
|
|
|
Testing: convert -C -S 4k -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target
|
|
|
|
qemu-img: Cannot enable copy offloading when -S is used
|
|
|
|
|
|
|
|
Testing: convert -C -S 8k -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target
|
|
|
|
qemu-img: Cannot enable copy offloading when -S is used
|
|
|
|
|
|
|
|
Testing: convert -C -c -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target
|
|
|
|
qemu-img: Cannot enable copy offloading when -c is used
|
|
|
|
|
2019-05-07 23:35:08 +03:00
|
|
|
Testing: convert -C --salvage -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target
|
|
|
|
qemu-img: Cannot use copy offloading in salvaging mode
|
|
|
|
|
2014-02-21 19:24:08 +04:00
|
|
|
=== amend: Options specified more than once ===
|
|
|
|
|
|
|
|
Testing: amend -f foo -f qcow2 -o lazy_refcounts=on TEST_DIR/t.qcow2
|
2014-11-27 19:28:01 +03:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 128 MiB (134217728 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 65536
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
|
|
|
lazy refcounts: true
|
2015-02-10 23:28:44 +03:00
|
|
|
refcount bits: 16
|
2014-09-30 23:31:28 +04:00
|
|
|
corrupt: false
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o size=130M -o lazy_refcounts=off TEST_DIR/t.qcow2
|
2014-11-27 19:28:01 +03:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 130 MiB (136314880 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 65536
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
|
|
|
lazy refcounts: false
|
2015-02-10 23:28:44 +03:00
|
|
|
refcount bits: 16
|
2014-09-30 23:31:28 +04:00
|
|
|
corrupt: false
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o size=8M -o lazy_refcounts=on -o size=132M TEST_DIR/t.qcow2
|
2014-11-27 19:28:01 +03:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 132 MiB (138412032 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 65536
|
|
|
|
Format specific information:
|
|
|
|
compat: 1.1
|
|
|
|
lazy refcounts: true
|
2015-02-10 23:28:44 +03:00
|
|
|
refcount bits: 16
|
2014-09-30 23:31:28 +04:00
|
|
|
corrupt: false
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o size=4M,size=148M TEST_DIR/t.qcow2
|
2014-09-30 23:31:27 +04:00
|
|
|
image: TEST_DIR/t.IMGFMT
|
|
|
|
file format: IMGFMT
|
2019-04-17 20:11:01 +03:00
|
|
|
virtual size: 148 MiB (155189248 bytes)
|
2014-02-21 19:24:08 +04:00
|
|
|
cluster_size: 65536
|
|
|
|
|
|
|
|
=== amend: help for -o ===
|
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o help TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o ? TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2018-05-10 00:00:20 +03:00
|
|
|
|
|
|
|
Note that not all of these options may be amendable.
|
2014-02-21 19:24:08 +04:00
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2
|
|
|
|
|
|
|
|
Testing: rebase -u -b -f qcow2 TEST_DIR/t.qcow2
|
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2
|
|
|
|
|
|
|
|
Testing: rebase -u -b -f qcow2 TEST_DIR/t.qcow2
|
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2
|
|
|
|
qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
|
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2
|
|
|
|
qemu-img: Invalid option list: ,help
|
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2
|
|
|
|
qemu-img: Invalid option list: ,,
|
|
|
|
|
|
|
|
Testing: amend -f qcow2 -o help
|
2018-05-10 00:00:20 +03:00
|
|
|
Creation options for 'qcow2':
|
2018-10-19 19:49:25 +03:00
|
|
|
backing_file=<str> - File name of a base image
|
|
|
|
backing_fmt=<str> - Image format of the base image
|
|
|
|
cluster_size=<size> - qcow2 cluster size
|
2019-07-08 21:47:03 +03:00
|
|
|
compat=<str> - Compatibility level (v2 [0.10] or v3 [1.1])
|
2019-01-15 21:02:40 +03:00
|
|
|
data_file=<str> - File name of an external data file
|
2019-02-22 16:29:38 +03:00
|
|
|
data_file_raw=<bool (on/off)> - The external data file must stay valid as a raw image
|
2018-10-19 19:49:25 +03:00
|
|
|
encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
|
|
|
|
encrypt.cipher-mode=<str> - Name of encryption cipher mode
|
|
|
|
encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
|
|
|
|
encrypt.hash-alg=<str> - Name of encryption hash algorithm
|
|
|
|
encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
|
|
|
|
encrypt.ivgen-alg=<str> - Name of IV generator algorithm
|
|
|
|
encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
|
|
|
|
encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
|
|
|
|
encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
|
|
|
|
lazy_refcounts=<bool (on/off)> - Postpone refcount updates
|
|
|
|
preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
|
|
|
|
refcount_bits=<num> - Width of a reference count entry in bits
|
|
|
|
size=<size> - Virtual disk size
|
2014-02-21 19:24:08 +04:00
|
|
|
|
2018-05-10 00:00:20 +03:00
|
|
|
Note that not all of these options may be amendable.
|
|
|
|
|
2019-04-13 18:20:36 +03:00
|
|
|
Testing: amend -o help
|
|
|
|
qemu-img: Expecting one image file name
|
2018-05-10 00:00:22 +03:00
|
|
|
|
|
|
|
Testing: amend -f bochs -o help
|
|
|
|
qemu-img: Format driver 'bochs' does not support option amendment
|
2014-02-21 19:24:08 +04:00
|
|
|
*** done
|