mahmn
Enthusiast
Enthusiast

Time differences between vsphere and esx ssh

Jump to solution

As you can see in the picture below, the time and date on the ESX node is correct (for my time zone) but that differs from what I see in the output of the "date" command when I ssh to that node.

What should I do? Is NTP service really running?

[root@localhost:~] date

Sat May 30 12:26:04 UTC 2020

[root@localhost:~] date

Sat May 30 12:26:18 UTC 2020

[root@localhost:~] date

Sat May 30 12:27:38 UTC 2020

Untitled.png

1 Solution

Accepted Solutions
NathanosBlightc
Commander
Commander

Structurally you don't need to change the ESXi Time Zone (and of course you couldn't). Daphnissov explained this matter clearly enough, but if you want to check the NTP synchronization on your ESXi host run the following command:

ntpq -p

And to check the NTP config, run this one:

cat /etc/ntp.conf

I described it with more details in this post on my blog, not bad to check it out: Time differentiate between ESXi host & NTP Server

Please mark my comment as the Correct Answer if this solution resolved your problem

View solution in original post

2 Replies
daphnissov
Immortal
Immortal

Few points of education here:

  • You aren't running "ESX" you are running "ESXi". ESX is a long-dead hypervisor that was substantially different from ESXi. That one letter makes a huge difference.
  • "vSphere" is a bundling of ESXi plus vCenter. Your screenshot shows the vCenter interface.
  • ESXi time is always given in UTC and cannot be changed. vCenter translates this time to your locale. Do not attempt to change the time zone in ESXi.
  • You should not be pointing your internal hosts to external NTP servers. If you don't have an internal NTP server, you need to get one.
NathanosBlightc
Commander
Commander

Structurally you don't need to change the ESXi Time Zone (and of course you couldn't). Daphnissov explained this matter clearly enough, but if you want to check the NTP synchronization on your ESXi host run the following command:

ntpq -p

And to check the NTP config, run this one:

cat /etc/ntp.conf

I described it with more details in this post on my blog, not bad to check it out: Time differentiate between ESXi host & NTP Server

Please mark my comment as the Correct Answer if this solution resolved your problem