Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Out-of-sync time in the virtual machine (VM) of Smart Protection Server (SPS) 3.0

    • Updated:
    • 2 Nov 2015
    • Product/Version:
    • Smart Protection Server 3.0
    • Platform:
    • Windows 2012 Datacenter R2
    • Windows 2012 Enterprise R2
    • Windows 2012 Standard R2
Summary

The VM time is incorrect and will not update to the correct time using the the normal process nor will remain correct. 

The Hyper-V Time Synchronization Service is unable to correct the system clock in the the VM if it is over 5 seconds off from the host. 

This behavior is by design (Microsoft kb#2618634) and was due to reports of application issues when the Time Synchronization Service adjusted the clock on the VM.

By default, the VM will get its time from the host and the host will receive its time from BIOS. The rate at which the time drifts will be affected by the total load of the host server. The higher the total load, the more the time will drift.

Details
Public

Temporary fix:

  1. Pause and resume the VM.
  2. Stop and start the VM.
  3. Go to Hyper-V Manager console and disable and then enable the Time Synchronization option for the VM.

Long-term fix:

  1. Configure the VM to pull time from an external source (e.g. domain controller or NTP server). This requires the Time Synchronization option to be disabled on the host.
  2. Configure the host to pull time from an external source like domain controller or NTP server; and then verify if the VM is pulling time from the host OS through NTP.
    1. Create a script for cron to schedule time update on the server:
    2. You need to create the script using vi editor:

      cd /etc/cron.hourlyvi ntpdate.sh

    3. Change the pool.ntp.org to be whatever your time server is:

      Example:

      Original File:

      #!/bin/bash
      ntpdate -s pool.ntp.org
      service crond reload

      New File:

      #!/bin/bash
      ntpdate -s time-a.nist.gov service crond reload

    4. Save and close the file.
    5. Add the following in order to run hourly in crontab:

      crontab –e

      This allows you to edit the root crontab.

      The original file looks something like this:

      */10 * * * * /usr/sbin/logrotate /etc/logrotate.d/lighttpd
      0 * * * * /usr/tmcss/bin/tlogger
      15 0 * * * /usr/tmcss/bin/CDTPurge.sh

    6. Add a line to the script above:

      19 * * * * /etc/cron.hourly/ntpdate.sh

      The 19 means it will run every hour at the 19th minute. You can change this to any number you want.

    7. Save the file and make sure that the Time Synchronization option has been disabled on the host.
Premium
Internal
Rating:
Category:
Configure; Troubleshoot
Solution Id:
1112362
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.