10.2. Preparing Cloud-init Images in Red Hat Virtualization

To use cloud-init during provisioning, you must prepare an image with cloud-init installed in Red Hat Virtualization, and then import the image to Satellite to use for provisioning.

Procedure

  1. In Red Hat Virtualization, create a virtual machine to use for image-based provisioning in Satellite.
  2. On the virtual machine, install cloud-init:

    yum install cloud-init
  3. To the /etc/cloud/cloud.cfg file, add the following information:

    datasource_list: ["NoCloud", "ConfigDrive"]
  4. In Red Hat Virtualization, create an image from this virtual machine.

When you add this image to Satellite, ensure that you select the User Data check box.