Имеется виртуальная машина Ubuntu Server 12.04 LTS x64 в среде Hyper-V Server 2012. На ней поднят сервер NTP. Сам NTP демон настроен и работает, но он не синхронизирует время с внешними NTP серверами. Нужные порты открыты. Траффик NTP по портам UDP 123 проходит.
Команды ntpq -p и ntptrace постоянно показывают стратум 16, т.е. сервер не синхронизируется с вышестоящими NTP серверами.
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ns2.odessa.coms .INIT. 16 u - 1024 0 0.000 0.000 0.000
nsa.lds.net.ua .INIT. 16 u - 1024 0 0.000 0.000 0.000
magnat.ip-conne .INIT. 16 u - 1024 0 0.000 0.000 0.000
ns4.pay-port.ki .INIT. 16 u - 1024 0 0.000 0.000 0.000
# ntptrace
localhost: stratum 16, offset 0.000000, synch distance 0.000000Вот конфиг NTPD:
# /etc/ntp.conf, configuration for ntpd
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
# Sync witn these servers
server 0.ua.pool.ntp.org iburst prefer
server 1.ua.pool.ntp.org iburst
server 2.ua.pool.ntp.org iburst
server 3.ua.pool.ntp.org iburst
# Allow to sync only our net and localhost
restrict default ignore
restrict 10.X.0.0 mask 255.255.0.0 notrap nomodify
restrict 127.0.0.1
restrict ::1
# Allow to sync with NTP servers
restrict 0.ua.pool.ntp.org
restrict 1.ua.pool.ntp.org
restrict 2.ua.pool.ntp.org
restrict 3.ua.pool.ntp.orgНашел вот такую статью
https://www.vpsblocks.com.au/support/Knowledgebase/Article/View/64/9/ubuntu-time-drifting---solvedСделал всё по этой статье, но не помогло. В настройках ВМ в службах интеграции отключил пункт "Синхронизация времени".
P.S. До этого была ВМ с FreeBSD 9.2 x64, для которой официально не существует еще служб интеграции Hyper-V, так вот на FreeBSD с NTP было все отлично, ВМ синхронизировалась успешно с внешними NTP.