Difference between revisions of "Qemu-img create"
Jump to navigation
Jump to search
(Redirected page to Qemu-img) Tag: New redirect |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | * <code>qemu-img create -f [[qcow2]] MY_IMAGE_NAME.[[qcow2]] 10G</code> | |
+ | * <code>qemu-img create -f raw MY_IMAGE_NAME.img</code> | ||
+ | |||
+ | * <code>qemu-img create -f qcow2 -o preallocation=metadata,compat=1.1,lazy_refcounts=on MY_IMAGE_NAME.img 600GB</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. | ||
+ | |||
+ | qemu-img create -f [[qcow2]] MY_IMAGE_NAME.img 10G | ||
+ | |||
+ | |||
+ | qemu-img create -f qcow2 MY_IMAGE_NAME.qcow2 20G | ||
+ | Formatting 'MY_IMAGE_NAME.qcow2', fmt=qcow2 size=21474836480 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | ||
+ | |||
+ | qemu-img create -f [[qcow2]] MY_IMAGE_NAME.img | ||
+ | qemu-img: MY_IMAGE_NAME.img: Image creation needs a size parameter | ||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[virt-install]]</code> | ||
+ | * <code>[[virt-resize]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{qemu-img}} | ||
+ | |||
+ | |||
+ | [[Category:QEMU]] |
Latest revision as of 07:55, 5 August 2020
qemu-img create -f qcow2 -o preallocation=metadata,compat=1.1,lazy_refcounts=on MY_IMAGE_NAME.img 600GB
lazy_refcounts=on
Reference count updates are postponed with the goal of avoiding metadata I/O and improving performance. Particularly interesting with cache=writethrough.
qemu-img create -f qcow2 MY_IMAGE_NAME.img 10G
qemu-img create -f qcow2 MY_IMAGE_NAME.qcow2 20G Formatting 'MY_IMAGE_NAME.qcow2', fmt=qcow2 size=21474836480 cluster_size=65536 lazy_refcounts=off refcount_bits=16
qemu-img create -f qcow2 MY_IMAGE_NAME.img qemu-img: MY_IMAGE_NAME.img: Image creation needs a size parameter
Related commands[edit]
See also[edit]
Advertising: