com.vmware.vim.eam was absent from the Management Object Browser (MOB) page, and the vSphere ESX Agent Manager was not present within the vSphere UI (under Administration > Solutions > vCenter Server Extensions).YYYY-MM-DDTHH:MM:SS.MSZ | INFO | eam-0 | VcConnection.java | 167 | Connecting to vCenter as com.vmware.vim.eam extensionYYYY-MM-DDTHH:MM:SS.MSZ | INFO | eam-0 | VcConnection.java | 603 | Connecting to https://vCenter_Server_FQDN:8089/sdk/vimService via vCenter proxy http://localhost:80YYYY-MM-DDTHH:MM:SS.MSZ | DEBUG | http-bio-0.0.0.0-15005-exec-1 | AllowAllSamlTokenPolicy.java | 24 | HealtStatus request's token subject name: machine-########-####-####-####-#######, subject domain: vsphere.localYYYY-MM-DDTHH:MM:SS.MSZ | ERROR | eam-0 | VcConnection.java | 179 | Failed to login to vCenter as extension. vCenter has probably not loaded the EAM extension.xml yet.: Cannot complete login due to an incorrect user name or password.YYYY-MM-DDTHH:MM:SS.MSZ | WARN | eam-0 | VcListener.java | 114 | Trying to recover from error(vim.fault.InvalidLogin) {faultCause = null,faultMessage = null}..YYYY-MM-DDTHH:MM:SS.MSZ | INFO | eam-0 | VcListener.java | 121 | Retrying in 10
YYYY-MM-DDTHH:MM:SS.MSZ | WARN | vim-async-1 | ExtensionSessionRenewer.java | 227 | [Retry:Login:com.vmware.vim.eam:################] Re-login failed, due to:com.vmware.eam.security.NotAuthenticated: Failed to authenticate extension com.vmware.vim.eam to vCenter...Caused by: com.vmware.vim.binding.vim.fault.InvalidLogin: Cannot complete login due to an incorrect user name or password."
YYYY-MM-DDTHH:MM:SS.MSZ | ERROR | vim-monitor | VcListener.java | 124 | An unexpected error in the changes polling loopcom.vmware.eam.EamRemoteSystemException: Unexpected error communicating with the vCenter server...Caused by: com.vmware.vim.binding.vim.fault.NotAuthenticated: The session is not authenticated.
info vpxd[58229] [Originator@6876 sub=Default opID=######] [VpxLRO] -- ERROR lro-4##### -- SessionManager -- vim.SessionManager.loginExtensionByCertificate: vim.fault.InvalidLogin:
--> Result:
--> (vim.fault.InvalidLogin) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>
--> msg = ""
--> }
--> Args:
-->
--> Arg extensionKey:
--> "com.vmware.vim.eam"
--> Arg locale:
-->
The EAM extension was accidentally unregistered from the vSphere HTML5 client.
Note: Before undertaking the following steps, it is strongly recommended to create a snapshot of your vCenter Server, please refer KB: VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice
service-control --stop vmware-eam
<certificate>@CERT_PATH@</certificate>
<url>https://@HOST@:443/eam/eamService-web/health.xml</url>
<url>https://@HOST@:443/eam/sdk/</url><smallIconUrl>http://@HOST@:80/eam/imx/esx_vm_16x.png</smallIconUrl>cp /usr/lib/vmware-eam/firstboot/eam_firstboot.py /usr/lib/vmware-eam/firstboot/eam_firstboot.py.bakif fbAction == FBActions.FIRSTBOOT: fb.setup_config_files() fb.register_with_cm() fb.installService() fb.registerExtension() fb.setup_service_security() upgrade_dir = fb.getUpgradeDir() if(upgrade_dir): fb.importDepotTrustJson(upgrade_dir) startService(fb)
To look like -
if fbAction == FBActions.FIRSTBOOT: #fb.setup_config_files() #fb.register_with_cm() #fb.installService() fb.registerExtension() <<< DO NOT COMMENT THIS LINE #fb.setup_service_security() #upgrade_dir = fb.getUpgradeDir() #if(upgrade_dir): # fb.importDepotTrustJson(upgrade_dir) #startService(fb)
PYTHONPATH=$PYTHONPATH:$VMWARE_PYTHON_PATH $VMWARE_PYTHON_BIN -B /usr/lib/vmware-eam/firstboot/eam_firstboot.pypsql -U postgres -d VCDB -c "SELECT * FROM vpx_ext;"
/usr/lib/vmware-lookupsvc/tools/lstool.py list --url https://localhost/lookupservice/sdk --no-check-cert | grep -i "Service Type:" | sort | uniq -c
service-control --start vmware-eam