Provider requirements

Each provider needs the image in its own format, with its own agent, and visible to the account or project that the cloud credential uses.

The previous steps produce a generic image. On every provider, cloud-init must be able to reach the instance metadata service (169.254.169.254) or a configuration drive. Without it, cloud-init stalls and bootstrap fails after its wait.

  • Cloudera Cloud Core. See Uploading the image to Cloudera Cloud Core.
  • AWS. Build on EC2 itself: start an instance from the distribution AMI, run the build steps, and create the AMI with aws ec2 create-image or the Packer amazon-ebs builder. Only the build instance needs internet access. For a disk built elsewhere, upload it to S3, import it with aws ec2 import-snapshot, and register it with aws ec2 register-image and the matching boot mode (legacy-bios or uefi). Use the Amazon Time Sync Service at 169.254.169.123 as the chrony server in step 3, unless you have your own. Remove the regional EC2 mirrors of the distribution in step 5; on Ubuntu, cloud-init restores them on first boot unless step 7 sets preserve_sources_list: true. The image needs the ENA and NVMe drivers, which the standard kernels include. An AMI belongs to one region, so copy it to the region of the cloud credential and share it with the account of the credential if another account owns it.
  • Azure. Create a managed image in the region of the cloud credential. Compute Gallery images are not listed. Start from the Azure image of the distribution, upload a fixed-size VHD whose size is a whole number of MiB, and create the image with the generation (V1 or V2) that matches its boot mode. The image must report provisioning as finished, through the Azure data source of cloud-init or walinuxagent; otherwise VM creation fails with OSProvisioningTimedOut.
  • Compute Engine. Compute Engine nodes get no cloud-init user data. The login user comes from the ssh-keys metadata, so the image must include the Google guest environment (google-guest-agent). Start from the Compute Engine image of the distribution. Package the disk as disk.raw in a .tar.gz file, upload it to Cloud Storage, and run gcloud compute images create with the --guest-os-features that the image supports and a --family. Create the image in the Google Cloud project of the cloud credential, or grant the service account of that project the roles/compute.imageUser role on the image.