Uploading the image to Cloudera Cloud Core

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.

  1. 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>
  2. Set the os_distro property (for example ubuntu or rocky), the os_version property, and --min-disk to the size of the build disk.
  3. If you set hw_qemu_guest_agent=yes, install and enable qemu-guest-agent in the image.

    Bootstrap does not install it.

  4. 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>

The image is visible to the project of the cloud credential. Tag the image for Cloudera Cloud Factory as described in Tagging Cloudera Cloud Core images for Cloudera Cloud Factory.