Add vm to inventory greyed out

Sekodata
Sekodata used Ask the Experts™
on
After removing a VM from the inventory of a vmware vSphere 5.5 cluster, the "Add to inventory" option is grayed out on the vmx file. The files are probably locked, as it is "Powered on". How do I add it again and start it?

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
I'm not quite sure how you were able to remove a Power On VM from the Inventory.

If the add to inventory option is grayed out, it could be the VMX file is corrupted, or it is locked.

If locked you will have to find the process which has locked the file, and remove the lock.

Why do you think it's Powered On ?

Is there a memory swap file present ?

Author

Commented:
We had a SAN improper shutdown, and the vm was greyed out as inacccessible. We then removed it from inventory, and now we can't add it again. I think it is "powered on" because there's a vmx.lck file, and the swapfile is present, (3 actually)

Author

Commented:
There is also a .vmx~ file present
Commented:
It solved itself, suddenly it just reappeared in the inventory (?). Thanks for your response

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial