VMware – Fixing “Invalid” Virtual Machines

In either ESX 3.x or vSphere, if there are disk array or networking issues, some Virtual Machines may appear in the vSphere Client as being “Invalid” and they are greyed out. To fix these VM’s, we have been able to follow the below steps successfully. We tried steps as given to us from VMware support and various other steps that we found on Google (including restarting the VMware Management services on the ESX host) but after finding some of the steps below off the VMware Community Forums (which worked for us) here’s the procedure we came up with.

1.  via the VI Client, make a note of the invalid VM name, the ESX host it lives on, and the datastore where the VM’s files are (all from the ‘summary’ page of the VM).

2.  Remove the invalid VM from inventory (by Right clicking on the VM and choosing “Remove from Inventory).

3.  SSH (with Putty or some other method) into the ESX host (from step 1), cd into the datastore volume (from above), rename the ‘vm-name’.vmxf file (note it is the vmxf file, not the vmx file) to something else.

4.  Connect the VI Client to the specific ESX host (from step 1, not your vCenter Server), browse the datastore (from step 1), find the ‘vm-name’.vmx file, right click and ‘add to inventory’

5.  In the main VI Client connected to your vCenter Server, power on the VM, which should now be available and no longer “invalid” and greyed out.

You can also do the rename of the .vmxf file from within the VI Client that’s connected to vCenter.  Just identify everything from step 1, above, remove the invalid VM from inventory, browse the datastore, right click the vmxf file, rename it, add the vmx file to inventory, power up the VM.  Seems to work great all within the VI Client.

This entry was posted in VMware by djlaube. Bookmark the permalink.

About djlaube

I have over 16+ years of experience helping small to enterprise businesses nationwide design and then implement enterprise storage, backup and recovery, disaster recovery and system virtualization solutions including private cloud, public cloud and hybrid cloud infrastructures. I hold numerous storage and virtualization certifications. I have supported 18-25 sales reps at any one time as a presales engineer, involved in all stages of the sales cycle. I have consistently been a top producer in all of my roles. I have personally delivered over 300+ complex enterprise solution implementations from multiple vendors (including VMware, EMC, Dell, Symantec and HP). I am an expert in solution design and architecture and have designed over 250+ complex solutions for customers of all sizes (SMB to Fortune 100).

5 thoughts on “VMware – Fixing “Invalid” Virtual Machines

  1. Pingback: ESX Invalid virtual machines « My Blog, My Precious.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s