Cloud Director 10.3.3.4
Steps to Check Configuration in Cloud Director 10.3 and RHEL9
To resolve the issue of the hostname not being retained, follow these steps to verify both the VCD configuration and the RHEL9 VM settings:
cloud-init
Configuration on the RHEL9 VM.cloud-init
is installed and running by executing:systemctl status cloud-init
cloud-init
logs for any errors related to hostname configuration:less /var/log/cloud-init.log
less /var/log/cloud-init-output.log
cloud-init
configuration file includes the correct settings for hostname customization:cat /etc/cloud/cloud.cfg
preserve_hostname: false
hostnamectl
/etc/hostname
file contains the correct hostname:cat /etc/hostname
sudo hostnamectl set-hostname <hostname here>
reboot
hostnamectl
If the above steps do not resolve the issue, please reach out to Redhat Support.