| [chrony-users] Chrony client on host with server running in LXC on same host |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] Chrony client on host with server running in LXC on same host
- From: Joachim Tingvold <joachim@xxxxxxxxxxxx>
- Date: Sat, 31 Jan 2026 19:23:12 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tingvold.com; s=google; t=1769883794; x=1770488594; darn=chrony.tuxfamily.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=VyyHw8QzTQmGqUBOUApCiZJGitSTuCd+bwy9pN0j18s=; b=rh4mQLyLDHsBk3mHAHbYW0ei6MBwnpAfyYHqGfuucVHcIBnANd4+Ds7NYDl/6pyQOB K36RBO7ZjJYvb1RfXB2bg24Y3Ileyl//Oe0bt+DzXiu7TWuoclQNh5gy0uUB4uyoB4+u IMEaISydzUA2nIWVI2qTjLm8NLy7HOAc77derPloIvoa/RkuYUd44d1QVqNLWg3ahRRG QQsv97lpQHYiA2ZBuJzNYdZU+i3vaXYwKAurQkQyVBcBJ4VMqCelam7kO3dvVzc1t1T3 bCZUCk1kxVeqJEq5AwuqoQaz28/6IhihPTbmHSvJ1jKMcRPEeMx255SZBENX4+Ikp/L8 lJwA==
Hi,
Stumbled upon the recent discussion about running multiple layers of ntp services[1], and also an older discussion[2] regarding feedback loops even when running with the -x flag.
I have a scenario where I have multiple physical Linux hosts (10+ for the sake of this discussion), which I was planning to run chrony in “client mode” syncing with “ntp1.foo.bar” and “ntp2.foo.bar”. These two ntp-servers (ntp1+2) will be running inside an LXC-container on two out of the 10+ hosts, and source their time from external NTP-servers.
My interpretation of how the -x flag worked, was that it basically ignored the system time, and only used the virtual software clock (“NTP clock”) to serve NTP clients with. Based on the two aforementioned discussions, that doesn’t seem to be the case (i.e. it still relies on the system clock, even if the server doesn’t attempt to set it).
I also noticed that the 4.7 changelog mentions “Detect clock interference from other processes”. Is this something that would solve these feedback loops in the scenario I’m describing?
If not, what should the chrony-config look like on the client (hosts) and server (ntp1+2)? Would it be possible to have equal config on all hosts (regardless if ntp1+2 is running as LXC container on said host or not), to ease config-deployment of chrony on the hosts? Preferably a setup where only ntp1+2 has access to the external NTP-servers (i.e. hosts will not).
[1] <https://listengine.tuxfamily.org/chrony.tuxfamily.org/chrony-users/2026/01/msg00003.html>
[2] <https://listengine.tuxfamily.org/chrony.tuxfamily.org/chrony-users/2024/10/msg00002.html>
--
Joachim
--
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.