Hyper V clock drift Linux

Hyper V clock drift issues Linux fix.

A fix if your Linux virtual machine clock is loosing time sync, using Programmable Interrupt Timer.

Modify the grub boot options.

nano -w /boot/grub/grub.conf

Look for the boot options for the kernel your using.

title CentOS (2.6.18-274.17.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-274.17.1.el5 ro root=/dev/VolGroup00/LogVol00 ide0=noprobe ide1=noprobe noacpi  hda=noprobe hdb=noprobe
initrd /initrd-2.6.18-274.17.1.el5.img

Look for the kernel boot line (will look similar but not exact to the example).

kernel /vmlinuz-2.6.18-274.17.1.el5 ro root=/dev/VolGroup00/LogVol00 ide0=noprobe ide1=noprobe noacpi hda=noprobe hdb=noprobe

add,

notsc divider=10 clock=pit

kernel /vmlinuz-2.6.18-274.17.1.el5 ro root=/dev/VolGroup00/LogVol00 ide0=noprobe ide1=noprobe noacpi hda=noprobe hdb=noprobe notsc divider=10 clock=pit

 

Press ctrl+x to exit and save.

Reboot the machine to boot the kernel with the updated instructions.

Whenever the kernel is updated you will need to modify /boot/grub/grub.conf for the new kernel.

 

Linux, Virtual & Dedicated Servers, Windows , , , , ,

Leave a Reply

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

10 − ten =