The /etc/resolv.conf file is overwritten by dhcpcd after reboot on Debian 13.
VMware vCenter Server 9.0
dhcpcd has a hook script which will overwrite the /etc/resolv.conf after the guest reboots post-customization.
To work around this issue, perform the following steps:
1 - Using a text editor such as vi, open the following file:
/etc/dhcpcd.conf
2 - Add the following line to the file:
nohook resolv.conf
3 - Save and close the file.
This setting will prevent the overwrite of the /etc/resolv.conf file when an OS customization has DNS settings.