Saturday, January 24, 2015

Install ntpdate ntp client to update time from openvz proxmox CT container

By default OpenVZ container does not allow ntpdate operation to set date + time.

If you are getting error message like:

Can't adjust the time of day: Operation not permitted

on the Proxmox hardware node (HN) do the following to override default Proxmox OpenVZ setting to allow sys_time override:

vzctl stop 108
vzctl set 108 --capability sys_time:on --save
vzctl start 108

apt-get update
apt-get install ntpdate



Add the following to your crontab to auto-update date-time daily:

crontab -e

22 2 * * * /usr/sbin/ntpdate 192.168.1.1 > /log/ntpdate.log

No comments:

Post a Comment