Article ID: 125828, created on Jun 11, 2015, last review on Jul 24, 2015

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


How do I configure an NTP (Network Time Protocol) client to keep time on the servers synced?


The Network Time Protocol (NTP) is used to synchronize a computer's time with another reference time source. Under CentOS / RHEL you can use NTP or OpenNTPD server software. Both package provide client and server software programs for time synchronization. Steps below will help to perform NTP installation and configuration.

The ntp package contains utilities and daemons that will synchronize your computer's time to Coordinated Universal Time (UTC) via the NTP protocol and NTP servers. The ntp package includes ntpdate (a program for retrieving the date and time from remote machines via a network) and ntpd (a daemon which continuously adjusts system time).

  1. Install the ntp package:

    # yum install ntp
  2. To configure the client open /etc/ntp.conf file, enter:

    # vi /etc/ntp.conf

    Make sure the following line exists:


    Where is the hostname or IP address of the site NTP server. If your ntp server is located at, enter server You can also use public ntp server located at

  3. Enable service for autostart and launch it:

    # chkconfig ntpd on
    # service ntpd start

You can also run ntpd using cron:

# echo '30 * * * * root /usr/sbin/ntpd -q -u ntp:ntp' > /etc/cron.d/ntpd

The above instructs crond to run ntpd and after setting the clock just exit, and the -u option instructs it to run as the ntp user.

Search Words


synchronize time across the cluster

2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef a26b38f94253cdfbf1028d72cf3a498b e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f

Email subscription for changes to this article
Save as PDF