---
title: "Configuring NTP on the Private Gateway"
description: "Find out how to use the NTP server of the Private Gateway on a Hosted Private Cloud infrastructure"
url: https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/private-gateway-ntp
lang: en
lastUpdated: 2026-04-23
---
# Configuring NTP on the Private Gateway

## Objective

The private gateway allows you to use an NTP server.

**This guide explains how to configure the NTP service on the private gateway of your Hosted Private Cloud infrastructure.**

## Requirements

- A [Hosted Private Cloud](https://www.ovhcloud.com/en-gb/hosted-private-cloud/vmware/) solution.
- Access to the vSphere management interface.
- Having enabled the private gateway.
- Having [created your OVHcloud API credentials](/en/guides/manage-and-operate/api/first-steps.md) and being connected to the [OVHcloud API](https://eu.api.ovh.com/).

## Instructions

### Architecture

The private gateway is not routed by default. Only machines on the same subnet can access the NTP server directly. For access from another network, a source NAT must be configured.

![NTP private gateway - Architecture](/images/hosted-private-cloud/powered-by-vmware/private-gateway-ntp/architecture.png)
### Configuring NTP on the private gateway

#### Retrieve the private gateway IP address

Make the following API call to retrieve the private gateway information and get the value of `customerIp`:


🇪🇺EU▾

[GET/dedicatedCloud/{serviceName}/datacenter/{datacenterId}/privateGateway](https://eu.api.ovh.com/console/?section=/dedicatedCloud&branch=v1#get-/dedicatedCloud/-serviceName-/datacenter/-datacenterId-/privateGateway)

![NTP private gateway - API call](/images/hosted-private-cloud/powered-by-vmware/private-gateway-ntp/apiGet.png)
#### Install chrony

On the relevant VM, run the following command:

```shell
apt-get install chrony
```

#### Configure chrony

Edit the `/etc/chrony.conf` file by adding the private gateway server IP address and removing the default configuration.

![NTP private gateway - Configuration](/images/hosted-private-cloud/powered-by-vmware/private-gateway-ntp/configFile.png)
#### Restart chrony

Restart the chrony service:

```shell
systemctl restart chrony
```

#### Check the client

Verify that the VM is correctly connecting to the server:

```shell
chronyc sources
```

![NTP private gateway - Server Check](/images/hosted-private-cloud/powered-by-vmware/private-gateway-ntp/ntpServer.png)
Verify that the synchronization is working:

```shell
chronyc tracking
```

![NTP private gateway - Synchronization check](/images/hosted-private-cloud/powered-by-vmware/private-gateway-ntp/ntpSynchro.png)
## Go further

Join our [community of users](https://community.ovhcloud.com/community/en).
