APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 06:13 AM . Last Modified: 2024-03-08 01:22 AM
Hi All,
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?
BR
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 06:14 AM . Last Modified: 2024-03-08 01:22 AM
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
-Gavan
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 06:13 AM . Last Modified: 2024-03-08 01:22 AM
Hi Wojciech,
Try the below command:
sudo systemctl enable chronyd --now
-Gavan
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 06:14 AM . Last Modified: 2024-03-08 01:22 AM
Hi Gavan,
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
BR, Wojtek
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 06:14 AM . Last Modified: 2024-03-08 01:22 AM
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 06:14 AM . Last Modified: 2024-03-08 01:22 AM
Hi Sabala,
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
BR, Wojtek
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 06:14 AM . Last Modified: 2024-03-08 01:22 AM
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
-Gavan
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.