| 1 | | I have running Debian and CentOS on my VirtualBox (MacBook, 32-bit, MacOS 10.5), both 32-bit and 64-bit versions, and noticed that ntpd works fine on 32-bit guests and fails to find time sources on 64-bit. Probably it happens on all Linux systems. Example of ntpd debug output (CentOS x86_64): |
| 2 | | |
| 3 | | [root@build-centos-x86-64 ~]# ntpd -gdq |
| 4 | | ntpd 4.2.2p1@1.1570-o Tue Jun 10 00:07:14 UTC 2008 (1) |
| 5 | | addto_syslog: precision = 18.000 usec |
| 6 | | create_sockets(123) |
| 7 | | addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 |
| 8 | | bind() fd 16, family 2, port 123, addr 0.0.0.0, flags=9 |
| 9 | | Added addr 0.0.0.0 to list of addresses |
| 10 | | addto_syslog: Listening on interface wildcard, 0.0.0.0#123 Disabled |
| 11 | | bind() fd 17, family 10, port 123, addr ::, flags=1 |
| 12 | | Added addr :: to list of addresses |
| 13 | | addto_syslog: Listening on interface wildcard, ::#123 Disabled |
| 14 | | bind() fd 18, family 10, port 123, addr ::1, flags=1 |
| 15 | | Added addr ::1 to list of addresses |
| 16 | | addto_syslog: Listening on interface lo, ::1#123 Enabled |
| 17 | | bind() fd 19, family 10, port 123, addr fe80::a00:27ff:fe15:1ad7, flags=1 |
| 18 | | Added addr fe80::a00:27ff:fe15:1ad7 to list of addresses |
| 19 | | addto_syslog: Listening on interface eth0, fe80::a00:27ff:fe15:1ad7#123 Enabled |
| 20 | | bind() fd 20, family 2, port 123, addr 127.0.0.1, flags=5 |
| 21 | | Added addr 127.0.0.1 to list of addresses |
| 22 | | addto_syslog: Listening on interface lo, 127.0.0.1#123 Enabled |
| 23 | | bind() fd 21, family 2, port 123, addr 10.0.2.15, flags=25 |
| 24 | | Added addr 10.0.2.15 to list of addresses |
| 25 | | addto_syslog: Listening on interface eth0, 10.0.2.15#123 Enabled |
| 26 | | init_io: maxactivefd 21 |
| 27 | | local_clock: time 0 base 0.000000 offset 0.000000 freq 0.000 state 0 |
| 28 | | key_expire: at 0 |
| 29 | | peer_clear: at 0 next 1 assoc ID 56085 refid INIT |
| 30 | | newpeer: 10.0.2.15->131.107.13.100 mode 3 vers 4 poll 6 10 flags 0x201 0x1 ttl 0 key 00000000 |
| 31 | | addto_syslog: frequency initialized 0.000 PPM from /var/lib/ntp/drift |
| 32 | | local_clock: time 0 base 0.000000 offset 0.000000 freq 0.000 state 1 |
| 33 | | report_event: system event 'event_restart' (0x01) status 'sync_alarm, sync_unspec, 1 event, event_unspec' (0xc010) |
| 34 | | transmit: at 1 10.0.2.15->131.107.13.100 mode 3 |
| 35 | | auth_agekeys: at 1 keys 1 expired 0 |
| 36 | | timer: refresh ts 0 |
| 37 | | receive: at 1 10.0.2.15<-131.107.13.100 mode 4 code 1 auth 0 |
| 38 | | peer 131.107.13.100 event 'event_reach' (0x84) status 'unreach, conf, 1 event, event_reach' (0x8014) |
| 39 | | clock_filter: n 1 off -12576.390214 del 0.433238 dsp 7.937511 jit 0.000015, age 0 |
| 40 | | transmit: at 3 10.0.2.15->131.107.13.100 mode 3 |
| 41 | | receive: at 3 10.0.2.15<-131.107.13.100 mode 4 code 1 auth 0 |
| 42 | | clock_filter: n 2 off -12577.337821 del 0.342102 dsp 3.937523 jit 0.947607, age 0 |
| 43 | | transmit: at 5 10.0.2.15->131.107.13.100 mode 3 |
| 44 | | receive: at 5 10.0.2.15<-131.107.13.100 mode 4 code 1 auth 0 |
| 45 | | clock_filter: n 3 off -12577.337821 del 0.342102 dsp 1.937549 jit 1.116242, age 2 |
| 46 | | transmit: at 7 10.0.2.15->131.107.13.100 mode 3 |
| 47 | | receive: at 7 10.0.2.15<-131.107.13.100 mode 4 code 1 auth 0 |
| 48 | | clock_filter: n 4 off -12577.337821 del 0.342102 dsp 0.937575 jit 1.545261, age 4 |
| 49 | | transmit: at 9 10.0.2.15->131.107.13.100 mode 3 |
| 50 | | receive: at 9 10.0.2.15<-131.107.13.100 mode 4 code 1 auth 0 |
| 51 | | clock_filter: n 5 off -12577.337821 del 0.342102 dsp 0.437600 jit 2.026474, age 6 |
| 52 | | transmit: at 11 10.0.2.15->131.107.13.100 mode 3 |
| 53 | | transmit: at 13 10.0.2.15->131.107.13.100 mode 3 |
| 54 | | transmit: at 15 10.0.2.15->131.107.13.100 mode 3 |
| 55 | | addto_syslog: no reply; clock not set |
| | 1 | I have running Debian and CentOS on my VirtualBox (MacBook, 32-bit, MacOS 10.5), both 32-bit and 64-bit versions, and noticed that ntpd works fine on 32-bit guests and fails to find time sources on 64-bit. Probably it happens on all Linux systems. |