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 ri.ntp.carnet.hr
ntpdate[22082]: Can’t adjust the time of day: Operation not permitted

Solution:

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 ri.ntp.carnet.hr
ntpdate[3238]: adjust time server 161.53.30.170 offset -0.142383 sec

Comments are closed.