To configure time synchronization on servers:
sudo apt install chrony
If the virtual machine has internet access, go to step b.
If the virtual machine does not have internet access, edit the /etc/chrony.conf
file to replace 2.pool.ntp.org
with the name or IP address of your corporate NTP server.
sudo systemctl enable --now chronyd
sudo timedatectl | grep 'System clock synchronized'
If the system time is synchronized correctly, the output will contain "System clock synchronized: yes".
Synchronization is configured.
Page top