Fixing Greyed out Virtual Machines

As I am sure many of you have, I had an outage recently that caused my hosts to come up before my storage. This resulted in the dreaded invalid or “greyed out” VM.

There are, of course, other ways to recover from this, but I have found this to be the easiest!

Here are the steps to recover from this issue.

1. Determine which host the affected VM(s) are on.

2. SSH to the appropriate host (you will most likely have to enable SSH)

3. Type the following command:

This will list all the greyed out VMs (note it will present you with a numerical vm identifier)

4. Note the four digit ID and add it in place of 0000 in the following command:

If all goes well, in 30-60 seconds the VM will re-register and no longer show as invalid.