This document outlines various methods for recovering the ESXi host root password. This is how to document.
Environment
vSphere ESXi vSphere ESXi 7.x vSphere ESXi 8.x
Resolution
There are several ways to reset the ESXi host Root password
Using Host Profile
Reset ESXi Host Root Password with Host Profile - The KB provides guidance on resetting the root password for an ESXi host connected to vCenter when access via SSH or DCUI with the root account is not possible due to password issue.