Hyper-V Centos VM date time clock gains hours even with ntp

I have a system at home that is used for test and dev work. It’s a windows 2008 server with Hyper-V with various VM’s running including SME Server which is based on CentOS.

The clock has been playing up with time gains in hours and this messes me up when looking at logs etc.

I think it may be resolved thanks to Michaels blog post.

For future ref the change is in the /boot/grub/grub.conf file and we need to add

divider=10 clocksource=acpi_pm

to the kernel line, i.e. on the line that starts with ‘kernel’ as part of the command.
 

Leave a Reply

Your email address will not be published. Required fields are marked *