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.0, RHEL 8.1, RHEL 8.2, and RHEL 8.4.PowerVC supports
cloud-init-19.1 for RHEL 7.x and RHEL 8.0. PowerVC supports RHEL provided cloud-init for RHEL
8.1 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 Installing and configuring cloud-init on RHEL to reconfigure cloud-init (for ppc64le architecture only).
- For troubleshooting steps related to MAC address conflict issues, see MAC address conflict.
- To avoid running into issues on RHEL 8.0 guest OS, review the steps in RMC inactive for RHEL 8 guest OS on NovaLink hosts.
- If some of the RHEL versions (for example, RHEL 8.1 and 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