YourSite - Slogan Here!

Cara menjalankan ntpdate under virtual machine Proxmox

Some of OpenVZ containers, on servers that I manage, had problems with wrong date being displayed. Well, no big deal, I can just issue good old ntpdate command. Or not.

ntpdate[22082]: Can’t adjust the time of day: Operation not permitted


On HW host:

/usr/sbin/vzctl stop  <ctid>

/usr/sbin/vzctl set <ctid>  –capability sys_time:on  –save

/usr/sbin/vzctl start  <ctid>

Check if everything is working now:

ntpdate[3238]: adjust time server offset -0.142383 sec

Comments are closed.