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:
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:
Select Network Time (NTP).
Type the password for the root user account.
Select Add an NTP Server (Optionally, select Remove All NTP Servers, then proceed to add new NTP servers).
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.)
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.
Verify the Network Time Protocol (NTP) is running on your XenServer, by using # service ntpd status.
Ensure the new time source is accessible by cycling the network time protocol daemon, using # service ntpd restart.
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 ‑