Ubuntu
瘋狂的虛擬機時鐘漂移
這取自在 ESX5 上執行的 Ubuntu 10.10 VM:
Nov 3 21:58:50 server1 ntpd[21169]: adjusting local clock by 31.187370s Nov 3 22:02:36 server1 ntpd[21169]: adjusting local clock by 31.159808s Nov 3 22:05:18 server1 ntpd[21169]: adjusting local clock by 31.067579s Nov 3 22:07:59 server1 ntpd[21169]: adjusting local clock by 30.952187s Nov 3 22:11:38 server1 ntpd[21169]: adjusting local clock by 30.890147s
根據VMWare KB,Ubuntu 10.10 不需要核心調整來保持其標準的時間。
特別奇怪的是漂移似乎相當一致。
對此的任何幫助表示讚賞!
更新
我已經在日誌上跑了一段時間來觀看這個,然後回到它並註意到每次輪詢時距離都在減小,這很……奇怪……
Nov 3 21:58:50 server1 ntpd[21169]: adjusting local clock by 31.187370s Nov 3 22:02:36 server1 ntpd[21169]: adjusting local clock by 31.159808s Nov 3 22:05:18 server1 ntpd[21169]: adjusting local clock by 31.067579s Nov 3 22:07:59 server1 ntpd[21169]: adjusting local clock by 30.952187s Nov 3 22:11:38 server1 ntpd[21169]: adjusting local clock by 30.890147s Nov 3 22:15:56 server1 ntpd[21169]: adjusting local clock by 30.797336s Nov 3 22:19:02 server1 ntpd[21169]: adjusting local clock by 30.645081s Nov 3 22:22:30 server1 ntpd[21169]: adjusting local clock by 30.607198s Nov 3 22:23:44 server1 ntpd[21169]: adjusting local clock by 30.542707s Nov 3 22:27:56 server1 ntpd[21169]: adjusting local clock by 30.413376s Nov 3 22:29:45 server1 ntpd[21169]: adjusting local clock by 30.322777s Nov 3 22:33:14 server1 ntpd[21169]: adjusting local clock by 30.259502s Nov 3 22:36:17 server1 ntpd[21169]: adjusting local clock by 30.181322s Nov 3 22:38:30 server1 ntpd[21169]: adjusting local clock by 30.103619s Nov 3 22:40:34 server1 ntpd[21169]: adjusting local clock by 30.074569s Nov 3 22:41:43 server1 ntpd[21169]: adjusting local clock by 29.996409s Nov 3 22:45:26 server1 ntpd[21169]: adjusting local clock by 29.902263s Nov 3 22:48:04 server1 ntpd[21169]: adjusting local clock by 29.791393s Nov 3 22:51:21 server1 ntpd[21169]: adjusting local clock by 29.763237s Nov 3 22:54:22 server1 ntpd[21169]: adjusting local clock by 29.619058s Nov 3 22:57:34 server1 ntpd[21169]: adjusting local clock by 29.510606s Nov 3 23:00:43 server1 ntpd[21169]: adjusting local clock by 29.455033s Nov 3 23:03:36 server1 ntpd[21169]: adjusting local clock by 29.390589s Nov 3 23:05:05 server1 ntpd[21169]: adjusting local clock by 29.264441s Nov 3 23:09:19 server1 ntpd[21169]: adjusting local clock by 29.189259s Nov 3 23:11:48 server1 ntpd[21169]: adjusting local clock by 29.101459s Nov 3 23:15:14 server1 ntpd[21169]: adjusting local clock by 29.017875s Nov 3 23:18:14 server1 ntpd[21169]: adjusting local clock by 28.906337s
事實證明,因為我沒有在 ntp.conf 中的任何伺服器上指定 iburst 標誌,它並沒有做一個大的跳躍來糾正時間。大約 12 小時後,它自己安定下來,現在準確無誤。
確保主機的時鐘(硬體)和 NTP 正確。是嗎?否則,您的客人將努力爭取時間……
您的來賓中是否安裝了 VMWare 工具?