VMware Cloud Community
ii00907
Contributor
Contributor

Config NTP

Hy,

I have a physical machine ( DNS ) whit a NTP server and i want connect my esx to this machine for set my clock and after enable Sync in my VM's WHIT VMWARE TOOLS.

I have enable ntp client whit this command;

esxcfg-firewall --enableService ntpClient

But i don't known for conf my esx.

Sorry for my english.

Remain waiting a your inadvertent replies.

By

0 Kudos
5 Replies
kucharski
Commander
Commander

Here is the link to configure NTP on your ESX servers. Follow the link and you shouldn't have any problems. Really easy to setup and configure.

Michael

ii00907
Contributor
Contributor

Ok,

i have watch this doc, but i don't understand the 3 step;Edit the contents of the default /etc/ntp.conf, which the ESX Server installation creates for you, so the file looks like this:

restrict 127.0.0.1

restrict default kod nomodify notrap

server 0.vmware.pool.ntp.org

server 1.vmware.pool.ntp.org

server 2.vmware.pool.ntp.org

driftfile /var/lib/ntp/drift

In the file ntp.conf i insert the my machine master for the date?

es.

estrict 127.0.0.1

restrict default kod nomodify notrap

ip_machine server_name

o my pool ESX MACHINE?

and the file /etc/ntp/step-tickers

Thanks foryour help

Ivan

0 Kudos
ii00907
Contributor
Contributor

Ok,

i have watch this doc, but i don't understand the 3 step;Edit the contents of the default /etc/ntp.conf, which the ESX Server installation creates for you, so the file looks like this:

restrict 127.0.0.1

restrict default kod nomodify notrap

server 0.vmware.pool.ntp.org

server 1.vmware.pool.ntp.org

server 2.vmware.pool.ntp.org

driftfile /var/lib/ntp/drift

In the file ntp.conf i insert the my machine master for the date?

es.

estrict 127.0.0.1

restrict default kod nomodify notrap

ip_machine server_name

o my pool ESX MACHINE?

and the file /etc/ntp/step-tickers

Thanks foryour help

Ivan

0 Kudos
kucharski
Commander
Commander

Step 3 is wrong. These are the lines you need to edit:

  1. restrict mytrustedtimeserverip mask 255.255.255.255 nomodify notrap noquery

  2. server mytrustedtimeserverip

Replace both lines of the mytrustedtimeserverip with your internal time server ip address along with the subnet mask adddress then save the file

Then in the step-tickers file just put the ip address of the internal time server

Then follow the rest of the instructions

Then type service ntpd restart

Then type ntpq -p to check the status.

Michael

ii00907
Contributor
Contributor

Perfect,

this is is ultimate question.

Now, whit command ntpq -p i have this message,

remote refid st t when poll reach delay offset jitter

==============================================================================

*Machine_time LOCAL(0) 13 u 37 64 17 2.731 -23.002 13.526

LOCAL(0) LOCAL(0) 10 l 52 64 17 0.000 0.000 0.008

The offset is the different time Server_time to server_client?

( Because first no * and now yes ? )

And if i want do test i want change the date and time ( manual ) the time resync in automatic?

And the date with command

date

date -u

hwclock

Whats the different?

Because i test the modify the file clock

Before:

ZONE="Europe/Rome"

UTC=true

ARC=false

Now

ZONE="Europe/Rome"

UTC=false

ARC=false

Is correct o is

indifferent?

Sorry for my stress

Thanks

Ivan

0 Kudos