virt.device.export_disk_image

Exports a zvol to a formatted VM disk image.

Utilized qemu-img with the conversion functionality to export a zvol to any supported disk image format, from RAW -> ${OTHER}. The resulting file will be set to inherit the permissions of the target directory.

As of this implementation it supports the following {format} options :

  • QCOW2 - QED - RAW - VDI - VPC - VMDK

format is a required parameter for the exported disk image directory is a required parameter for the export disk image zvol is the source for the disk image

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: virt_device_export_disk_image

virt_device_export_disk_image

Type: object
No Additional Properties

Format

Type: string

Must be at least 1 characters long

Directory

Type: string

Must be at least 1 characters long

Zvol

Type: string

Must be at least 1 characters long

Result

Type: boolean


Required roles: VIRT_INSTANCE_WRITE