Create qcow2 image when using the OpenStack builder
set -x
makef.sh --read-only-usr --grub-target bios --force $2 $2.tar.xz
+
+# NOTE: vmdk as image format is required on the SAP CC EE
qemu-img convert -o subformat=streamOptimized -f raw -O vmdk $2.raw $2.vmdk
+
+# NOTE: qcow2 as image format can be used on most OpenStack environments
+# (or can be easily converted back to raw format)
+qemu-img convert -f raw -O qcow2 $2.raw $2.qcow2
