addendum to jails vs time and date

Last month I wrote a little note about getting time and date correct in jails.

What I failed to mention is that I started getting constant mails like the following from my jails

adjkerntz[53498]: sysctl(set: “machdep.wall_cmos_clock”): Operation not permitted

The reason is that the jail tries to update the cmos clock, which of course it can not.

That is a simple fix in the system crontab within the jails.
Simply comment the out the following:

# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time. See adjkerntz(8) for details.
1,31 0-5 * * * root adjkerntz -a

After some quick googling on this I found the following mailing list archive thread, but I feel it was worh reiterating it once more here.


Leave a Reply

Your email address will not be published. Required fields are marked *