[Lxc-users] reading hwclock from container
DTK
gruessle at gmail.com
Sat Dec 17 22:38:49 UTC 2011
I am trying to avoid having to install NTP in every container, so I
came up with following idea.
Main server cron job
* 0 * * * /sbin/hwclock -w
Each container has following cron job
10 0 * * * /sbin/hwclock -s
However, the container can't access /dev/rtc and I am guessing that
has something to do with my cgroup config line:
lxc.cgroup.devices.allow = c 254:0 rwm # rtc
Anyway I can fix this? Or get the same result some other way?
More information about the lxc-users
mailing list