If you see a virtual machine shows invalid in the vCenter VM inventory, it means this VM failed to get registered against vCenter. You have to manually remove it from the inventory and go to the datastore, then find the virtual machine .vmx file and manually add it to the vCenter inventory.
If you have multiple datastores, and unfortunately don’t remember where the virtual machine is stored. Here is the command that can help you to find the location of virtual machine in the datastore.
In my exmaple, xxx-pro-web-03 is the virtual machine’s name, and DS-P0-03 is datastore.
find / -iname xxx-pro-web-03
/vmfs/volumes/4f72dc64-04479760-ecc1-001a647601c1/XXX-PRO-WEB-03
ls -alh /vmfs/volumes | grep 4f72dc64-04479760-ecc1-001a647601c1
drwxr-xr-t 1 root root 2.6k Jul 20 00:29 4f72dc64-04479760-ecc1-001a647601c1
lrwxr-xr-x 1 root root 35 Sep 13 01:48 DS-P0-03 -> 4f72dc64-04479760-ecc1-001a647601c1