Installing and configuring cloud-init on RHEL
Before you capture a virtual machine, you need to install the cloud-init package. This topic provides you details about cloud-init installation procedure for RHEL.
Install cloud-init on Red Hat® Enterprise Linux®
This section details procedure for installing cloud-init on RHEL 7.x, RHEL 8.2, RHEL 8.4, RHEL 8.6, and later, and RHEL 9.x.PowerVC supports
cloud-init-19.1 for RHEL 7.x. PowerVC supports
RHEL provided cloud-init for RHEL 8.2 and later. See supported versions of RHEL guest OS at Hardware and software requirements.
Notes:
- Update NetworkManager to the latest version available on the OS.
Use yum update NetworkManager to update NetworkManager.
- When updating existing RHEL on your system to a later version, refer to cloud-init configuration steps to reconfigure cloud-init (for ppc64le architecture only).
- For troubleshooting steps related to MAC address conflict issues, see MAC address conflict.
- If any of the RHEL versions (for example, RHEL 8.2) become out of support, you must obtain extended support from Red Hat. Follow the requirements of extended support and apply patches or updates as recommended by Red Hat. For more information about extended support, see RHEL Extended Update Support (EUS) Overview.
PowerVC is responsible
for only bringing up the virtual machines. You can leverage cloud-init for specific customization.
An example of generating new machine ID is given here. Update the file at
/etc/cloud/cloud.cfg.
- Add:
runcmd: - rm -f /etc/machine-id - systemd-machine-id-setup