Our ESXi server had an ungraceful restart and as a result when now I open vSphere it looks like this:
I've read that to get them back all I need to do is right click on the relevant .vmx file in the datastore and select Add to Inventory, however that option is greyed out.
I'm really struggling here, as I'm new to this and not sure what to do.
Many thanks in advance.
Usually a restart of the management agents will cause these to reappear as the correct guest names. You can do this directly on the host if you log in via the F2 prompt or you can also do it by connecting to the host via SSH and running "service mgmt-vmware restart" and then "service vmware-vpxa restart". This will not stop any running guests. http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100349...
Hope this helps,
Is the VM are still running?
First remove the invalid VM's from inventory -> Right Click on Invalid VM -> Click Remove from inventory
Then browse the datstore and try to add it datastore by right clicking VMX file
Have you restarted the vcenter server service? If that doesnt work have a look at this Kb:
if you are able to log the local shell, then do a rescan of hba and VMFS
Command to use is
To search for new VMFS datastores, run this command:
Note: This command does not generate any output.
If a new datastore has been detected, it is mounted in /vmfs/volumes/ using its friendly name (if it has one) or its UUID
Still if not worked, reboot and try the same
Can you try enabling Local Tech Support mode and then running the management restart commands from there? You can enable Local Tech Support via the vSphere client under Configuration - Security profile or by running vim-cmd hostsvc/start_esx_shell from the cli. Once enabled press Alt-F1 locally to switch to it and log in as your root user.
I'm now able to get in and stay in as I rebooted the server and then set the its IP settings manually as when I left it to DHCP it worked for a short time beofre coming unresponsive.
I'm now in the SSH console and after I press ALT-F1 I get this
Am I missing something?
Sorry, the Alt-F1 needs to be done locally on the machine, not via SSH. If the server is more responsive now it may be worth seeing if the F2 now works. Having said that rebooting the server will have restarted the agents anyway so chances are this is not going to help.
Hi again guys,
OK I *think* I've located the problem. The only trouble is I have no idea how to fix it.
When I run the vmkfstools -D command on vmx files located in the datastore it returns the owner as being 50069512-78ce6ec4-0c9b-001b21c130a4
Whereas in the datastore path shows the following :
/vmfs/volumes/datastore1/4ea2bf00-f6408240-43be-782bcb5aaed1\<PATH TO FILE>
Which if I'm correct would indicate that someone else owns the file.
Is there any way to change it or indeed to release the locks on the files in the datastore?
have you tried the above link
I've tried both and still no luck.
Even trying to just touch the vmx returns an Invalid Argument.
There must be a way of either unlocking the file or changing the UUID to that which it says is the owner.