I’m trying to run ntp in a container and I do want it to set the system clock rather than just using local time. I have issued the command: set NTPContainer security.privileged true.
When I start the container and check the journal I see the error:
set_freq: ntp_loopfilter.c line 1092: ntp_adjtime: Operation not permitted
Dec 28 02:42:32 S-NTP ntpd[352]: step-systime: Operation not permitted.
I assume I need to set some specific privileges somewhere but don’t know where.
Thank you for your reply.
So can I just check I’ve got this straight. Are you saying there simply is no way to do it; no lxd setting or kernel settings that is going to make this possible?
Unfortunately, there is no way to achieve this, that’s kernel limitation, and at this point, the kernel is not providing us with any options. The kernel supports time namespaces, but time namespaces are about monotonic time and boot time clocks, and not about realtime clock.