vSphere ESXi 7.x
vSphere ESXi 8.x
This is an expected behavior.
If ESXi experiences a boot disk failure, configuration changes are not persistent across reboot as ESXi is not able to write the configuration changes on disk.
Use one of the following methods: