Re: [chrony-users] Re: Configuring chronyd w/o real time source |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
On Mon, 16 Mar 2020, Dominik Vogt wrote:
On Thu, Mar 12, 2020 at 11:18:25PM +0100, Dominik Vogt wrote:
for a test setup I need to configure chronyd to run in an isolated
network without internet access and without any real time source
other than the system clock. The only requirement is that the
server replies to any client request with the system time and
claims that its absolutely precise.
Okay, I have this in chrony.conf:
initstepslew 1
local stratum 1
allow all
smoothtime 400 0.001
but it does not work:
$ ntpdate -v localhost
16 Mar 16:43:23 ntpdate[12530]: ntpdate 4.2.8p10@1.3728-o Sun Feb 25 21:22:56 UTC 2018 (1)
16 Mar 16:43:31 ntpdate[12530]: no server suitable for synchronization found
What are you using ntpdate? That is NOT chrony.
you do NOT want to use anything from the ntpd project when you are using
chrony. There is a danger they will interfere with each other.
In chrony.conf you need to put in your sources for time. eg
server pool.ntp.org
Otherwise chronyhas no idea where to get the time from. It DOES NOT have a
default source. That would be really bad as it would get swamped with
requests.
What ist wrong with this config? (chronyd *is* running and
listening on port 123).
The program to do the querying is chronyc
chronyc
tracking
will tell you what chrony thinks your clock's accuracy is.
sources and sourcestats will tell what your sources are and which chrony is
using.
etc
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.