XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Wrong time on XOA

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 4 Posters 3.9k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • akurzawaA Offline
      akurzawa
      last edited by

      Hi

      I've got wrong time on the XOA, the host for VM has correct time. What could be the reason of that? what's the time source for xoa? I'm assuming the host, is so, why the time in xoa is defferent than on the host?

      1 Reply Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team
        last edited by

        Hi,

        XOA uses NTP to keep its clock synchronized, you can check its status by running ntpq -p.

        Check this documentation.

        1 Reply Last reply Reply Quote 0
        • akurzawaA Offline
          akurzawa
          last edited by akurzawa

          @julien-f said in Wrong time on XOA:

          ntpq -p

          its now 12:58 PM

          xoa time: 06:57, any ideas?

          [06:57 14] xoa:xoa$ 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
          -ntp.ifj.edu.pl  10.0.2.4         3 u  254 1024  377   16.420    0.965   0.467
          +news-archive.ic 158.75.5.245     2 u  317 1024  377   13.555    1.292   2.650
          *time.taken.pl   80.50.231.226    2 u  614 1024  377   11.492    0.397   0.804
          +SunSITE.icm.edu 194.146.251.100  2 u  901 1024  377   13.711    0.106   0.576
          +ntp2.tktelekom. 212.160.106.226  2 u  564 1024  377    9.211    0.674   0.538
          +ntp2.pl         194.146.251.101  2 u  620 1024  377   16.948    0.684   0.561
          [06:57 14] xoa:xoa$
          
          

          I'm stupid, any ideas? time zone in xoa?

          [06:59 14] xoa:xoa$ ntpd -gq
          14 Jun 07:00:05 ntpd[56827]: ntpd 4.2.8p10@1.3728-o Sun Feb 25 21:22:55 UTC 2018 (1): Starting
          14 Jun 07:00:05 ntpd[56827]: Command line: ntpd -gq
          14 Jun 07:00:05 ntpd[56827]: proto: precision = 0.875 usec (-20)
          14 Jun 07:00:05 ntpd[56827]: Listen and drop on 0 v6wildcard [::]:123
          14 Jun 07:00:05 ntpd[56827]: Listen and drop on 1 v4wildcard 0.0.0.0:123
          14 Jun 07:00:05 ntpd[56827]: Listen normally on 2 lo 127.0.0.1:123
          14 Jun 07:00:05 ntpd[56827]: Listen normally on 3 eth0 10.0.0.84:123
          14 Jun 07:00:05 ntpd[56827]: Listen normally on 4 lo [::1]:123
          14 Jun 07:00:05 ntpd[56827]: Listen normally on 5 eth0 [fe80::cc4b:3eff:fe75:9fd8%2]:123
          14 Jun 07:00:05 ntpd[56827]: Listening on routing socket on fd #22 for interface updates
          14 Jun 07:00:06 ntpd[56827]: Soliciting pool server 194.29.130.252
          14 Jun 07:00:07 ntpd[56827]: Soliciting pool server 31.216.56.5
          14 Jun 07:00:07 ntpd[56827]: Soliciting pool server 193.25.222.240
          14 Jun 07:00:08 ntpd[56827]: Soliciting pool server 193.70.94.126
          14 Jun 07:00:08 ntpd[56827]: Soliciting pool server 213.199.225.40
          14 Jun 07:00:08 ntpd[56827]: Soliciting pool server 193.70.94.126
          14 Jun 07:00:09 ntpd[56827]: Soliciting pool server 46.175.224.7
          14 Jun 07:00:09 ntpd[56827]: Soliciting pool server 193.219.28.147
          14 Jun 07:00:09 ntpd[56827]: Soliciting pool server 91.212.242.21
          14 Jun 07:00:10 ntpd[56827]: Soliciting pool server 193.70.94.182
          14 Jun 07:00:10 ntpd[56827]: Soliciting pool server 193.110.137.171
          14 Jun 07:00:11 ntpd[56827]: Soliciting pool server 213.199.225.30
          14 Jun 07:00:12 ntpd[56827]: Soliciting pool server 91.212.242.20
          14 Jun 07:00:16 ntpd[56827]: ntpd: time slew -0.000184 s
          ntpd: time slew -0.000184s
          [07:00 14] xoa:xoa$
          
          

          .

          ok my TimeZone in xoa is America/New_York - why? I'm in Warsaw's TZ, how to change that?

          1 Reply Last reply Reply Quote 0
          • julien-fJ Offline
            julien-f Vates 🪐 Co-Founder XO Team
            last edited by

            NTP appears to be working and the time correct.

            The time appears incorrect to you because the XOA is not set in the same timezone as you:

            $ cat /etc/timezone
            America/New_York
            

            This should be completely transparent to you and not cause any issues, anyway, if you want to change it you can use this command:

            $ sudo dpkg-reconfigure tz-data
            
            1 Reply Last reply Reply Quote 0
            • akurzawaA Offline
              akurzawa
              last edited by

              Thanks for reply; this command is not working - IDK if I really want to go and start installing missing packages in xoa... any other way to change time zone?

              [08:44 14] xoa@xoa:~$ sudo dpkg-reconfigure tz-data
              [sudo] password for xoa:
              dpkg-query: package 'tz-data' is not installed and no information is available
              Use dpkg --info (= dpkg-deb --info) to examine archive files,
              and dpkg --contents (= dpkg-deb --contents) to list their contents.
              /usr/sbin/dpkg-reconfigure: tz-data is not installed
              
              
              bnrstnrB 1 Reply Last reply Reply Quote 0
              • bnrstnrB Offline
                bnrstnr @akurzawa
                last edited by

                @akurzawa said in Wrong time on XOA:

                Thanks for reply; this command is not working - IDK if I really want to go and start installing missing packages in xoa... any other way to change time zone?

                [08:44 14] xoa@xoa:~$ sudo dpkg-reconfigure tz-data
                [sudo] password for xoa:
                dpkg-query: package 'tz-data' is not installed and no information is available
                Use dpkg --info (= dpkg-deb --info) to examine archive files,
                and dpkg --contents (= dpkg-deb --contents) to list their contents.
                /usr/sbin/dpkg-reconfigure: tz-data is not installed
                
                

                maybe do a feature request on github?
                https://github.com/vatesfr/xen-orchestra/issues/new

                1 Reply Last reply Reply Quote 1
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  It's tzdata

                  1 Reply Last reply Reply Quote 0
                  • F felipefonsecabh referenced this topic on
                  • First post
                    Last post