Symptoms:
For RHEL 10.x, AlmaLinux 10.x and Rocky Linux 10.x and Oracle Linux 10.x virtual machine, guest os customization may fail to work on it.
VMware vCenter Server 8.0U3
Since RHEL 10.0, It's NetworkManager doesn't support ifcfg-rh profile any more, therefore the path /etc/sysconfig/network-scripts is removed. This leads to guest os customization fails to locate this path and ends with error.
Release vSphere 8.0U3b and later now support Guest OS IP Customization with the following operating systems:
RHEL 10.x, AlmaLinux 10.x and Rocky Linux 10.x and Oracle Linux 10.x
To successfully have the Guest OS IP Customization feature succeed, follow the steps below:
Update virtual machine or template to create the path "/etc/sysconfig/network-scripts" before customizing it.
e.g. "sudo mkdir -p /etc/sysconfig/network-scripts"
Or
Switch to cloud-init engine to do guest os customization, please refer to KB How does vSphere Guest OS Customization work with cloud-init to customize a Linux VM.