ESXi

 View Only
Expand all | Collapse all

Cannot Login to WebAccess but to ESXi console

Manuel_Serrano

Manuel_SerranoAug 26, 2017 02:07 AM

  • 1.  Cannot Login to WebAccess but to ESXi console

    Posted Jul 25, 2017 11:19 AM

    Hi *,

    i can access the ESXi console with my root & pw, but not the WebAccess with "root" & pw. The pw is the same, there are no spell / keyboard language issues.

    We have a single ESXi 6.5 (4887370), no vCenter. No Domain Account, just local.

    Best regards

    Max



  • 2.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jul 25, 2017 11:33 AM

    so you can log in like over ssh using root&password but cannot access the host ui (https://hostname/ui) with the same credentials?

    Or are you talking about the DCUI (yellow/black console window)?

    It sounds like you're in lockdown mode. Try disabling it in the DCUI (HOW TO: Enable or Disable Lockdown Mode on VMware vSphere ESXi host | vStrong.info )



  • 3.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jul 25, 2017 11:40 AM

    - I can login /w ssh to the shell

    - I can login to the DCUI

    - I cannot login to https://hostname/ui/#/login

    In the yellow/black console, the option "Configure lockdown Mode" is greyed out.



  • 4.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jul 25, 2017 11:55 AM

    You have to installed embedded client on ESXI.

    If you have SSH access then install it using below command and retry via UI.

    esxcli software vib install -v http://download3.vmware.com/software/vmw-tools/esxui/esxui-signed-5744014.vib



  • 5.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Mar 25, 2021 04:26 PM

    I am having this problem on VSphere 7.1. Would this same VIB work or should I use a different one?



  • 6.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Sep 30, 2021 11:45 PM

    If you have access to the esxi through the console login in and change password and than try via web works



  • 7.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jul 25, 2017 11:57 AM

    I think there is a embedded client already shipped with the GA of ESXi 6.5

    I'd try to reset your password. You can do it on the shell or in the DCUI and try to login in with the newly set password on the host client.

    If you can login to ssh and dcui you have access to the host. If there is no vCenter server you can't have lockdown mode.



  • 8.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jul 25, 2017 12:09 PM

    Is there also the possibility, that the root account is locked out of the WebClient after too many retrys?

    I did a reset of the password in the DCUI & tried to login:

    - Login /w ssh to the shell - working

    - Login to the DCUI - working

    - Login to WebClient:

    Still not working.



  • 9.  RE: Cannot Login to WebAccess but to ESXi console
    Best Answer

    Posted Jul 25, 2017 06:42 PM

    Hi,

    if you some sort of monitoring server that is probing that host. it could be that the root account is locked out. you can change the lockout time to 0 and try it or fix the monitoring system to use the proper password and wait the default lockout time and you should be able to logon. But it sounds like something or someone is hammering that host with root logon using the wrong credentials.

    Lionel.



  • 10.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jul 26, 2017 06:02 AM

    Hi Lionel,

    the root account was locked by Nagios monitoring - i just quit the checks & after 30min the root account was able to login to the WebClient.

    Thank you for your help & best regards

    Max



  • 11.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Aug 17, 2017 02:59 PM

    I don't have nagios monitoring so whats blocking me from accessing the client?

    I can login in shell/ssh but not in client with root username



  • 12.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Aug 20, 2017 10:55 AM

    Hi ,

    Same issue . root account is not locked  and able to access through console not from web

    Rebooting the host solved issue .



  • 13.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Aug 21, 2017 02:40 PM

    Rebooting the host did not work for me.

    Is this related to correct IP address of the machine? I had to set a static IP.



  • 14.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Aug 25, 2017 07:44 PM

    Hi ,

    if you have static IP then its good but it is not related IP  .

    You may have to disable the lockout or account lock  . And reset management networks , host services  or reboot is the options



  • 15.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Mar 29, 2019 08:05 AM

    A reboot of the host solved the issue for me



  • 16.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Dec 14, 2019 12:01 AM

    Yes, reboot the host helps



  • 17.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Apr 03, 2023 07:00 PM

    That worked…. Thank you so much!!!



  • 18.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Apr 03, 2023 09:14 PM

    Procedure to Restart the Management Agents (instead of rebooting the machine)

    1. From the direct console, select Troubleshooting Options and press Enter.
    2. Select Restart Management Agents and press Enter.
    3. Press F11 to confirm the restart.


  • 19.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Aug 26, 2017 02:07 AM

    What are you typing in the url?



  • 20.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jan 05, 2018 05:57 PM

    Cause :- Root account is locked and some time monitoring system will not unlock automatically.

    1. Try to login through SSH/WinScp/VI-Client/host UI on host after checked "lock-down mode" 

    2. If step #1 fail; Login on  vCenter >>> Select Host >>> Security Profile >> Restart SSH service

    3. Try to login through SSH/WinScp/VI-Client/host UI on host and root password would be working.

    Note:- Starting with vSphere 6.x, account locking is supported for access through SSH and through the vSphere Web Services SDK. The Direct Console Interface (DCUI) and the ESXi Shell do not support account lockout.

    A maximum failed attempts is allowed before the account is locked (login on host UI - https://hostname/ui >>>System>>>Advanced settings>>>Check "SecurityLockFailures" and "SecurityAccountUnlockTime")



  • 21.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Feb 14, 2019 11:29 AM

    Hello

    if you have access to console enable shell and use the following commang for it' works well pam_tally2 --user root --reset.

    Thanks to Kimi Thang http://kimizhang.com/unlook-root-account-for-vmware-esxi-host/

    Have a nice day.

    Eric



  • 22.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jun 14, 2019 04:06 PM

    You rule! Thanks, worked!!



  • 23.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Aug 30, 2023 06:01 PM

    THANK YOU! Worked perfectly and i was spending hours trying to resolve this!



  • 24.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jun 14, 2019 07:23 PM

    Resolved.

    I first usedESXXi 6.7  but could not log in.

    I then used ESXi 6.7 update 2.  now everything works.   Dell power edge r720



  • 25.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Apr 17, 2020 07:41 AM

    Hello,

    i can confirm Lionel's idea.

    Here it happened after upgrading to ESXi 6.7 and changing the password. The inventory software "hammered" on the server trying to check the inventory.

    After removing the device in the inventory software and rescanning the server the WebAccess worked again.



  • 26.  RE: Cannot Login to WebAccess but to ESXi console

    Posted May 13, 2020 10:01 PM

    If vCenter appliance is down you can't access your ESXi hosts, even with the right account?



  • 27.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Jan 21, 2021 10:19 PM

    I'm currently having this issue. I cannot login to the web interface, ssh but i can log into the host itself. I had to reboot the server to get in the last time, it worked then all the accounts failed again. Causing my backups to fail as well. My backups only uses one account, there's three accounts on the system and i cannot get any of them to logon to the host and the lockdown mode is grayed out. SMH



  • 28.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Feb 23, 2021 11:51 AM

    Check whether SSH / UI enable or not

    if not, enable it and restart agent 

     

    Thanks,

    Nijlal



  • 29.  RE: Cannot Login to WebAccess but to ESXi console

    Posted Feb 10, 2022 02:17 AM

    Hi, this is just happened to me and do not know why the root cause,

    Login to https://ip/ui/#/login is failed due to wrong credential,
    Login via ssh to ip, failed too,
    Login to DCUI (console with yellow-black colouring page) is OK,

    Everything with the same username and password, and then I try change the password, but nothing change,

    In the end I just try to restart the management agent via DCUI and then everything works fine, hope this help!