Virtual Server/PC Tip: clock=pit Deprecated

If you use Microsoft Virtual PC or Virtual Server and have Red Hat, Fedora, or CentOS Linux guest OSes, you probably have clock problems. Clocks basically lose an alarming amount of time may be hours off within a day or two. You may also have repeating keys problems when typing. Microsoft’s Ben Armstrong (Virtual PC Guy) posted a tip a while back…

Repeating keys under Fedora and Red Hat Enterprise Linux

…that pointed to a Microsoft Knowledge Base (KB) article that recommends adding the clock=pit (programmable interruptible timer) option on the grub kernel line in /boot/grub/menu.lst. However, if you started using RHEL 5 (CentOS 5 in my case), take a look at your /var/log/messages file. You will probably find a warning that the clock= option has been deprecated. From what I can see, replacing it with…

clocksource=pit

…takes care of that warning. However, the RHEL 5 based Linux clock still runs a bit slowly. I ended up having the clock sync with a time source every hour to deal with it.

2 Responses to “Virtual Server/PC Tip: clock=pit Deprecated”

  1. Matt McGinty Says:

    I used this and it worked great!
    Thanks!!

    I used clocksource=pit for CentOS 5 and clock=pit for CentOS 4.5.
    Strangely, the problem was not occuring on CentOS 4.5 right away, but after several time of booting into CentOS 4.5 it began occurring there.
    clock=pit seems to have fixed it just fine.

    I still have to make about 4-6 attempts at booting CentOS 4.5 into MS Virtual PC 2007 before it will boot. It keeps giving a popup window during boot about a kernel error that has occurred. But after about 4-6 attempts it finally boots.
    I doubt that is related to the clock issue.

  2. Mike Says:

    Thanks. I was having this issue on RHEL 4 and this fixed it.!

Leave a Reply