The error "Virtual machine is no longer protected. Cannot protect virtual machine because its config file is located on a non-replicated or non-protected datastore" indicates that the virtual machine's configuration file (.vmx) is on a datastore that isn't replicated or protected by your replication solution (like VMware vSphere Replication or Site Recovery Manager). This prevents the virtual machine from being properly replicated or protected in a recovery scenario.
vCenter 7.0.x
vCenter 8.0.x
vSphere Replication 8.7.x | 8.8.x | 9.0.x
Site Recovery Manager 8.7.x | 8.8.x
VMware Live Site Recovery 9.0.x
The VM's configuration file ended up on a non-replicated datastore, which is preventing Site Recovery Manager (SRM) from protecting it.
Here is how, step by step, to migrate all files to a single replicated datastore to ensure SRM can properly safeguard it.
Steps to Move All VM Files to One Datastore
Step 1: Verify Current VM Storage Configuration
Before making changes, confirm which files reside on which datastores:
Step 2: Storage vMotion to Consolidate VM Files
Since the VM is in production, using Storage vMotion (advanced migrate) is the safest method to move the files without downtime.
Step 3: Confirm File Locations
Once the migration is complete:
Navigate back to the VM settings and confirm all files (VMX, VMDK, etc.) reside entirely on the replicated datastore.
If everything checks out, proceed to re-protect the VM in SRM.
Step 4: Reprotect the VM in SRM
Additional Notes
Once you've completed these steps, your VM should be fully protected again under SRM.