This article provides steps to re-register a Virtual Machine on another ESXi host without changing its inventory ID (MoRef ID).
VMware vSphere ESXi 7.x
VMware vCenter Server 7.x
VMware vSphere ESXi 8.x
VMware vCenter Server 8.x
Virtual Machine is registered to the target ESXi host on vSphere Client and the inventory ID (MoRef ID) does not change.
Note:
If registration of a Virtual Machine fails, check whether it is locked.