The qemu img command is wrapped for specific functions
depends: | qemu-img |
---|
salt.modules.qemu_img.
convert
(orig, dest, fmt)¶Convert an existing disk image to another format using qemu-img
CLI Example:
salt '*' qemu_img.convert /path/to/original.img /path/to/new.img qcow2
salt.modules.qemu_img.
make_image
(location, size, fmt)¶Create a blank virtual machine image file of the specified size in megabytes. The image can be created in any format supported by qemu
CLI Example:
salt '*' qemu_img.make_image /tmp/image.qcow 2048 qcow2
salt '*' qemu_img.make_image /tmp/image.raw 10240 raw
Generated on July 18, 2017 at 06:45:48 MDT.
You are viewing docs for the previous stable release, 2016.3.6. Switch to docs for the latest stable release, 2016.11.6, or to a recent doc build from the develop branch.
© 2017 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy