VM shows "Unknown (invalid)" when added to the inventory

sglee
sglee used Ask the Experts™
on
Hi,

 I have ESXi with a few virtual machines.
 One day, the building lost electric power and this VMWare box was shut down at that time. Since then this computer failed to boot from external USB stick.
 So I created a bootable USB flash drive again, loaded ESXi, assigned the same IP address at the console, opened datastore, browse to the VM folder and right click on .vmx file and chose "add to inventory". By doing this, one of VMs came up just fine. But one of them did fail with the message "Unknown (invalid)".
 How can I fix this?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
The VMX file, configuration is corrupt, or invalid.

and if a file got corrupted, there is a possibility the virtual machine disk could also be corrupted.

Re-create a new VMX file, restore from backup.

Author

Commented:
basically restore a particular VMX file from the backup and upload it to the datastore?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
That's correct, but you may want to just restore the entire VM (as well) just in case the vmdk is corrupted.

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