Our Linux virtual machines lose their time syncing often. How do you keep VM time in sync?
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Keeping VM time synchronized is critical to making sure such things as snapshots are created and restored at the proper time and to ensure VMs are getting the services they need when they need them.
For Linux virtual machines, VMware recommends using Network Time Protocol (NTP) synchronization to adjust the VMs to the correct time.
When you have configured NTP, disable the VMware Tools time synchronization feature if it is running. Otherwise you will have two synchronization mechanisms in contention.
In the time between NTP time synchronization intervals, the time is dependent on the "local clock" of your virtual machine. Since there is no real local clock, it's possible this is the cause of the drift.
It is a good idea to use the correct kernel parameters for your Linux distribution. The most recent distributions such as Red Hat Enterprise Linux (RHEL) 6 and SUSE Linux Enterprise Server (SLES) 11 do not need additional parameters. Since many VMware appliances are based on SLES 11, no additional configuration is necessary.
The list of Linux distributions and the proper kernel parameters can be found at the VMware knowledge base site in article 1006427 found here.
Dig Deeper on VMware basics
Related Q&A from Rob Bastiaansen
Data center admins often run into problems when it comes to snapshot removal. The best way to avoid these issues is to prevent them in the first ...continue reading
A message bus guarantees the delivery of messages to a host, even if that host is unavailable or you're unable to establish a connection. So, how do ...continue reading
There are a few ways to collect vSphere log files. If you have access to vCenter, you can use the vSphere Web Client.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.