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
- In Red Hat Virtualization, create a virtual machine to use for image-based provisioning in Satellite.
On the virtual machine, install
cloud-init
:yum install cloud-init
To the
/etc/cloud/cloud.cfg
file, add the following information:datasource_list: ["NoCloud", "ConfigDrive"]
- 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.