大网数据广告活动
服务器运维问答

Unable to synchronize date by NTP on Debian 9

· 52CE 我爱测

Debian 9 as Guest Hyper-V is unable to synchronize the clock and set the right date, always it stays around 6 minutes behind: (Timezone is obfuscated) #  systemctl start ntp #  date sáb jul 7 09:42:59 -03 2018 #  timedatectl L…

问题原文

原帖链接 · sebelk · CC BY-SA 4.0

Debian 9 as Guest Hyper-V is unable to synchronize the clock and set the right date, always it stays around 6 minutes behind:

(Timezone is obfuscated)

#  systemctl start ntp
#  date
    sáb jul  7 09:42:59 -03 2018
#  timedatectl 
    Local time: sáb 2018-07-07 09:43:09 -03
    Universal time: sáb 2018-07-07 12:43:09 UTC
    RTC time: sáb 2018-07-07 12:45:22
    Time zone: XXXXXXXXXXXXXX (-03, -0300)
    Network time on: yes
    NTP synchronized: no
    RTC in local TZ: no
 #  ntpstat 
     unsynchronised
     polling server every 64 s
 #  ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 0.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001
 1.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001
 2.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001
 3.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001
 66.60.22.202 (a 64.113.44.54     2 u   20   64    1   10.385  321656.   7.049
 time.unnoba.edu 200.89.75.197    3 u   19   64    1   14.119  321640. 185704.
 131.0.232.2 (st 216.218.254.202  2 u   16   64    1    9.568  321660. 185705.


What could be wrong?

已采纳解答

原帖链接 · telcoM · CC BY-SA 4.0

Hyper-V includes system clock synchronization service that is enabled by default; in other words, your ntpd or systemd-timesyncd is fighting with Hyper-V syncing the time of the guest VM to the time of the host system.

Before implementing any NTP-based time synchronization, you must switch the Hyper-V time synchronization off.

See this question on Superuser.SE for instructions on disabling Hyper-V time synchronization.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-07-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。