Configuring the Oracle Cloud Infrastructure NTP Service for an Instance

Oracle Cloud Infrastructure offers a fully managed, secure, and highly available NTP service that you can use to set the date and time of your Compute and Database instances from within your virtual cloud network (VCN). The Oracle Cloud Infrastructure NTP service uses redundant Stratum 1 devices in every availability domain. The Stratum 1 devices are synchronized to dedicated Stratum 2 devices that every host synchronizes against. The service is available in every region.

This topic describes how to configure your Compute instances to use this NTP service.

You can also choose to configure your instances to use a public NTP service or use FastConnect to leverage an on-premises NTP service.

Oracle-provided Oracle 7.x and CentOS 7.x images released after February 2018 include the Chrony service by default, so you do not need to configure the Oracle Cloud Infrastructure NTP service for these instances.

Use the following steps to configure your Oracle Linux 7.x instances to use the Oracle Cloud Infrastructure NTP service.

Run commands in this section as root with the following command:

sudo su -

Install the NTP service with the following command:

yum -y install ntp

Change the firewall rules to allow inbound and outbound traffic with the Oracle Cloud Infrastructure NTP server, at 169.254.169.254, on UDP port 123 with the following command:

Steps 1 - 7 below walk you though these registry changes, you can use these steps to manually edit the registry instead of using PowerShell. If you use the PowerShell commands, you can skip steps 1 - 7, and proceed with steps 8 and 9 to complete the process of configuring your Windows instance to use the Oracle Cloud Infrastructure NTP service.