I have PCNS 4.4 running as virtual appliance on VMware 5.5 host. Time reported by Centos (and used in PCNS in logs) is not correct. There is about 20 minutes difference to real time. Below you can see time settings reported by < timedatectl > command. Time zone is set correctly.
How to sync time on Centos? Do I need to start NTP service? Or time for Centos is synchronized other way? How?
Try the below command:
sudo systemctl enable chronyd --now
Thanks for your replay
In the meantime, I was looking for an answer in a different direction, taking VMware Tools into account . One of the VMware Tools feature is synchronize time in VM guests. So I have followed alternative way described here: https://kb.vmware.com/s/article/1014038 , ie I ran < vmware-toolbox-cmd timesync enable > command inside VM guest
Probably better way is :
As far I as know when VMware Tools is being used native operation system time sync should be disabled as it is replaced by VMware Tools functionality
Thanks for you replay.
I have got filling that your replay do not refers to described problem
I did not ask about setting time period length defined in Critical Event or any other event
My question was about synchronizing Centos system time on which PCNS is running (and PCNS time) with VMware host time
Sorry I've been on annual leave,
The following commands should help:
Show current time synchronization status: sudo vmware-toolbox-cmd timesync status
Disable virtual machine time synchronization: sudo vmware-toolbox-cmd timesync disable
Enable virtual machine time synchronization: sudo vmware-toolbox-cmd timesync enable
Restart Open VM Tools: sudo systemctl restart open-vm-tools
Choose a location