I have a Ubuntu 12.04 LTS VM running inside VirtualBox. It is fine except the clock winds up being exactly 25 minutes behind every other machine on the network. My normal procedure is to setup NTP, run ntpdate manually, and then I never have any problems. I have tweaked the NTP setting and even added another local NTP server as a precaution. But I noticed all the other machines (VM or physical) write a drift file to /var/lib/ntp. This machine never does that. It has the following line in
But the file is never created
ericu@ubuntu-lts-base:/etc/apparmor/init$ service ntp status && ls -l /var/lib/ntp/ * NTP server is running total 0 ericu@ubuntu-lts-base:/etc/apparmor/init$
I checked the permissions on the directory
ericu@ubuntu-lts-base:/etc/apparmor/init$ ls -l /var/lib | grep ntp drwxr-xr-x 2 ntp ntp 4096 Jun 5 2012 ntp
Looks good to me. What is going on here? This has to be the problem. Every other machine creates a drift file just fine and never loses sync with the NTP server.