ESXi

 View Only
Expand all | Collapse all

Time Configuration

  • 1.  Time Configuration

    Posted Sep 09, 2019 12:25 PM

    I wonder if somebody can help

    All of our Esxi servers are out by an hour as far as time is concerned

    The vsphere web client shows the correct time which is picked up by ntp servers and I have verified that the hosts are talking to ntp by running

    /etc/init.d/ntpd restart

    ntpq -p

    When I login to the console and type date the time is out by 1 hour they are showing 1 hour earlier

    Could this be due to the ntp servers not passing on the correct daylight savings

    All the servers are set to utc which I understand cannot be changed

    I am in the UK and all our hosts are in the same timezone

    Thanks in advance



  • 2.  RE: Time Configuration

    Posted Sep 09, 2019 01:13 PM

    Hi,

    Generally it is better to create an internal NTP Server that points to the time registration on the internet, then the VCSA and the ESXi hosts take the setting from the NTP Server.

    Alternatively you must manually set the time in each Esxi Host:

    Alessandro Romeo



  • 3.  RE: Time Configuration

    Posted Sep 09, 2019 01:28 PM

    Thanks

    Yes this is how we have set it up ntp is providing the time correctly to the esxi hosts but when we login to the host directly via the web client and ssh it is out by an hour but in vcenter the time is displayed correctly



  • 4.  RE: Time Configuration

    Posted Sep 09, 2019 01:35 PM

    The computer you use to access the web interface you have set now?



  • 5.  RE: Time Configuration

    Posted Sep 09, 2019 01:39 PM

    my laptop is correct when you see host in vcenter time is correct when you logon to host via ssh and type date the time is 1 hour earlier also host web client shows 1 hour earlier



  • 6.  RE: Time Configuration

    Posted Sep 09, 2019 02:18 PM

    Summing up:

    • from the VCSA if you select a host and go to "Configure" and "Configuration now" the time is correct.
    • If instead you go to SSH on the ESXi host or via the web interface, the time is incorrect by 1 hour
    • the time configuration on the ESX is correct.

    Is it correct what I wrote?



  • 7.  RE: Time Configuration

    Posted Sep 09, 2019 02:22 PM

    yes the first two options are correct but not sure what you mean by the third one I am assuming the hardware time yes



  • 8.  RE: Time Configuration

    Posted Sep 09, 2019 02:31 PM

    Interesting thing is that if I set the hardware clock to the correct time the system time goes back an hour

    If I stop and start the ntp service the hardware clock changes to back it was ie an hour earlier



  • 9.  RE: Time Configuration

    Posted Sep 09, 2019 02:51 PM

    As lmoglie says, the physical server x86 where you installed Esxi, which has now set ?



  • 10.  RE: Time Configuration

    Posted Sep 09, 2019 02:56 PM

    Yes I set the time using the command esxcli hardware clock set but as soon as you stop and start the ntp service the time reverts back to what it was ie an hour earlier

    I ran esxcli hardware clock get



  • 11.  RE: Time Configuration

    Posted Sep 09, 2019 03:00 PM

    where does the NTP setting come from? what did you set as NTP?



  • 12.  RE: Time Configuration

    Posted Sep 09, 2019 03:04 PM

    our own intenal ntp servers which we know are reporting correct time as we can see it in vcenter the problem we have is it is not being picked up by the host we use the same ntp servers on about 2500 of our hypervisors



  • 13.  RE: Time Configuration

    Posted Sep 09, 2019 03:09 PM

    also when doing ntpq -q

    we get the output below

    the reach figure of 377 indicates successful communications to the ntp server but the host and vsphere web client seem to show time out by an hour



  • 14.  RE: Time Configuration

    Posted Sep 09, 2019 02:30 PM

    The time you can see should be the one that you set up on the bare metal of your x86.



  • 15.  RE: Time Configuration

    Posted Sep 09, 2019 02:32 PM

    you mean the output of esxcli hardware clock get



  • 16.  RE: Time Configuration
    Best Answer

    Posted Sep 09, 2019 07:15 PM

    Hi

    Because there is no Time Zone settings for ESXi hosts, even you setup an Internal NTP server (like a router or firewall that can have access to an external NTP)  you can set accurate time just for Web access and if you connect with SSH or Shell and check generated logs in /var/log or query with ntpq -p there is still time differentiate and it's normal

    ---------------------------------------------------------------------------------------------------------

    Was it helpful? Let us know by completing this short survey here.



  • 17.  RE: Time Configuration

    Posted Sep 10, 2019 09:08 AM

    Yes this is correct confirmed by VMware



  • 18.  RE: Time Configuration

    Posted Sep 10, 2019 10:33 AM

    I wrote a post about NTP configuration on ESXi in my personal blog 1 year ago and now post it in my VMware blog. I hope it can help you more:

    Time differentiate between ESXi host & NTP Server



  • 19.  RE: Time Configuration

    Posted Sep 10, 2019 10:35 AM

    I will go and check it out Thank you



  • 20.  RE: Time Configuration

    Posted Mar 28, 2022 11:48 AM

    Hello,

     

    Did you manage to resolve this please?

    No matter what I do on my hosts, the time is always out by an hour, I even looked at pointing the time service to our firewall but it still puts it out by an hour. When I login to the hosts the time is back 1 hour, if I login to vCenter and check the time is correct, this isn't good though as my DC's are pointing to the hosts for their time.

    Any help here is appreciated,

     

    Thanks,