Debian 9由于Guest Hyper-V无法同步时钟并设置正确的日期,它始终停留在大约6分钟后:
(时区被混淆)
# 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?发布于 2018-07-07 14:22:46
Hyper包括默认启用的系统时钟同步服务;换句话说,您的ntpd或systemd-timesyncd正在与Hyper同步客户VM到主机系统的时间。
在实现任何基于NTP的时间同步之前,必须关闭超V时间同步.
发布于 2018-07-07 13:58:44
我发现,随着时间被系统同步,现在。所以,我做了
chmod -x /usr/sbin/ntpd
systemctl restart systemd-timesyncd现在是时候了。然而,timedatectl说时钟不是同步的:
timedatectl | grep no$
NTP synchronized: no
RTC in local TZ: nohttps://serverfault.com/questions/919917
复制相似问题