Upload the finished disk to Cloudera Cloud Core in the correct format, set the image properties, and share the image if it belongs to a different project.
- Upload the disk in the correct format.
If Glance and Nova use a Ceph RBD backend, upload the disk as raw so that instances can be cloned without converting the image. Otherwise upload qcow2. A Packer build that uses a block storage volume produces a raw snapshot, which you can convert if you need qcow2.
qemu-img convert -O qcow2 <raw-disk> <image>.qcow2
openstack image create --disk-format raw --container-format bare \
--min-disk <build-disk-size-gb> \
--property os_distro=ubuntu --property os_version=<os-version> \
--file <image>.raw <image-name>
- Set the os_distro property (for example
ubuntu or rocky), the os_version property, and --min-disk to the size of the build disk. - If you set
hw_qemu_guest_agent=yes, install and enable qemu-guest-agent in the image.Bootstrap does not install it.
- If you upload the image in a different project from the project of the cloud credential, share it.
openstack image set --shared <image>
openstack image add project <image> <credential-project>