Verifying time on VMware ESX
- To verify the time on an ESX host, enter this command from the ESX host command line. Ensure that the correct time zone and date are displayed:
# date
Note: For adjusting the time zone, see Adjusting ESX Server Time Zone (1436).
- Verify the time set in the hardware BIOS of the ESX/ESXi host if this host is experiencing difficulty keeping time, despite it having its time correctly set and successfully connected to running and correctly configured NTP server.
Synchronizing time on VMware ESX
To set the time from the ESX command line manually, use the date -s command. For example, to set the date to 31 Jan 2012 18:00:00, type this command as the root user:
# date -s "31 Jan 2012 18:00:00"
To set the time from vSphere Client:
- Launch vSphere Client.
- Go to Configuration > Time Configuration > Properties.
- Input the correct Time and Date.
- Click Options.
- Click Restart on the Service Commands box.
Synchronizing time on VMware ESXi
As of vSphere 4.1, hosts are set to UTC. When running the below esxcli command, set it to UTC, not local time zone. For more information, see
Adjusting ESX host Time Zone (1436). The vSphere Client and vSphere Web Client automatically display time in your local Time Zone and will take into account UTC setting on host(s).
To set the time from the ESXi command line manually, use the esxcli system time set command. For example, to set the date to 31 Jan 2012 18:00:00 UTC, type this command as the root user:
# esxcli system time set -d 31 -M 1 -y 2012 -H 18 -m 0 -s 0
If this is not just a temporary measure to connect to an existing server, but needs to hold through reboots, then set the hardware clock to the same time as well:
# esxcli hardware clock set -d <day> -H <hour> -m <minutes> -s <seconds> -M <month> -y <year>
# esxcli hardware clock set -d 11 -H 15 -m 28 -s 30 -M 01 -y 2019
The above example would set the hardware time and date to 2019-01-11T15:28:30
To set the time from vSphere Client:
- Launch vSphere Client.
- Go to Configuration > Time Configuration > Properties.
- Input the correct Time and Date.
- Click Options.
- Click Restart on the Service Commands box.
To set the time from the vSphere Web Client:
- Log into the vSphere Web Client. The default URL is https://vCenter_Server_FQDN:9443/vsphere-client
- Go to Hosts and Clusters, from the Home screen >
- Select the ESXi host > click the Manage tab > click the Settings button > under System, click Time Configuration
- Click Edit > select Manually configure the date and time on this host radio button> Input the correct Time and Date
- Click OK
Time Synchronization on the VMware Virtual Center Server and Windows 2003 Domain
To configure Microsoft Windows 2003 to use NTP time server, see the Microsoft Knowledge Base article 816042.
Note:The preceding link was correct as of January 30, 2014. If you find the link is broken, provide feedback and a VMware employee will update the link.