How to Change NTP Source on XenServer

  • CTX121278
  • Created onMar 26, 2014
  • Updated onApr 09, 2014
Article Topic Storage


This article describes how to change the time source accessed by the Network Time Protocol (NTP) on XenServer.

XenServer 5 comes with a list of Internet NTP servers by default:

Note: The listed servers are for internal testing NTP servers, these time servers are not accessible from the Internet.
Entering an NTP server during installation has been identified as an issue in XenServer 5.0 (Hotfix 1, 2, 3).


Complete the following procedure:
  1. At the XenServer console, select Network and Management Interface. If using SSH to connect to your XenServer or using XenCenter Console (tab), type xsconsole to access the following configuration:

    User-added image
  2. Select Network Time (NTP). 

    User-added image
  3. Type the password for the root user account. 

    User-added image
  4. Select Add an NTP Server (Optionally, select Remove All NTP Servers, then proceed to add new NTP servers). 

    User-added image
  5. Enter the IP address of the NTP server. (Tip: If not currently known, you can use nslookup on the Windows command line to get the IP address of your NTP server.) 

    User-added image
  6. When the new time server has been accepted, validate that NTP is running by exiting to the XenServer command line, by selecting Quit in the xsconsole. 

    User-added image
  7. Verify the Network Time Protocol (NTP) is running on your XenServer, by using # service ntpd status

    User-added image
  8. Ensure the new time source is accessible by cycling the network time protocol daemon, using # service ntpd restart. 

    User-added image
  9. If there are errors, see if the time server is accessible using the ping command. Ping the server and ensure you have network connectivity and TCP port 123 open. If ping fails, there is a networking problem outside the XenServer that must be addressed.


To synchronize the hardware clock using the Network Time Protocol daemon, the following file, /etc/sysconfig/ntpd must be edited. Change the following line:
‑ from ‑
‑ to ‑

User-added image

Additional Resources

Automatic translation

Important: This article was translated by an automatic translation system (also referred to as Machine Translation, or MT) and has not been translated or reviewed by people. Citrix offers a machine translated version of this article to allow for greater access to the support content. However, automatic translation is not always perfect and may contain errors of vocabulary, syntax or grammar. Citrix is not responsible for inconsistencies, errors or damage incurred as a result of the use of MT articles from our customers.Thank you.
Click here to see the English version of this article.
Was this helpful?
Thank you for your feedback

Share your comments or find out more about this topic

Citrix Forums