Virtual machines that are running and fully functional in vCenter Server do not display correctly in the Inventory view of the ESX/ESXi host on which they are registered.
Virtual machines appear in an Orphaned state in vCenter Server.
Removing the host from vCenter Server does not resolve the Orphaned state.
The vm-support -xcommand does not contain all of the virtual machine's registered on the host.
When the host is re-added to inventory, vCenter Server reports this error:
Not enough licenses to perform this operation
The vCenter Server log file contains this error from Licmgr:
Bad host information for host
The vpxa.log file on the ESX host contains the error:
[yyyy-mm-dd 'App' 7490480 warning] ============BEGIN FAILED METHOD CALL DUMP============ [yyyy-mm-dd 'App' 7490480 warning] Invoking [GetLayout] on [vim.VirtualMachine:10496] [yyyy-mm-dd 'App' 7490480 warning] Fault Msg: "A general system error occurred: Failed to serialize result" [yyyy-mm-dd 'App' 7490480 warning] ============END FAILED METHOD CALL DUMP============
Environment
VMware VirtualCenter 2.x VMware vCenter Server 3.x VMware vSphere ESX 3.x VMware vCenter Server 4.x VMware vSphere ESX 4.x VMware vCenter Server 5.x VMware vSphere ESXi 5.x
Cause
This issue may be caused by a corrupt inventory file on the ESX host.
Resolution
To clear the existing host inventory and re-register the orphaned virtual machines on the affected host:
Open the VMware Infrastructure Client (VI) and connect to vCenter Server with administrative privileges.
Right-click the host and remove it from the inventory.
Note: If the ESX(i) host is a part of the Virtual Distributed Switch (VDS), you will need to remove it from the VDS before removing from inventory. Remove Hosts from a vSphere Distributed Switch
Log in to the host as root.
Make a backup copy of the existing inventory file for the host.