[Openembedded-architecture] Wic support for vmdk/qcow2/vdi image types

Vignesh Raman rvignesh.raman at gmail.com
Fri Feb 17 11:43:38 UTC 2017


Hi,

Currently wic doesn't support vmdk/qcow2/vdi images.

I have taken vmdk as example below to explain how wic support can be added.

qemu-img convert is used to create vmdk image in image-vm.bbclass. To
create vmdk image, 'vmdk' needs to be added to IMAGE_FSTYPES
IMAGE_FSTYPES += "vmdk"

vmdk image is created by converting hdddirect image type with qemu-img
convert in image-vm.bbclass
qemu-img convert -O $type ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.hdddirect
${IMGDEPLOYDIR}/${IMAGE_NAME}.$type

vmdk images is implemented as main FSTYPES. In order for wic to
support vmdk images, current vmdk image generation could be
reimplemented as conversion type.
If we implement vmdk conversion, then we can use IMAGE_FSTYPES +=
'wic.vmdk' to produce vmdk image from hdddirect images.
So hdddirect image is created using the kickstart file (wks) and then
the image is converted to wic.vmdk using qemu-img convert.

This applies to qcow2 and vdi images as well and it could be
reimplemented as conversion types.

Can we implement vmdk/qcow2/vdi conversion to add wic support or can
this be done in any other way? Thanks for any pointers.

Regards,
Vignesh.


More information about the Openembedded-architecture mailing list