System time is wrong in Proxmox VE host, how can I fix it?

60

What does

/usr/sbin/ntpq -p

show?

Try doing

sntp -P no -r pool.ntp.org

to set the time right and do afterwards a

hwclock --systohc

to write the time to the hardware clock.

Share:
60

Related videos on Youtube

abenci
Author by

abenci

Updated on September 17, 2022

Comments

  • abenci
    abenci over 1 year

    I have a method inside a DLL library. How do I detect if it's called from a Winforms or Console application?

    Thanks.

  • Emre Sevinç
    Emre Sevinç about 13 years
    $ ntpq -p remote refid st t when poll reach delay offset jitter ============================================================‌​================== ns.ttosi.net .INIT. 16 u - 1024 0 0.000 0.000 0.000 79.99.122.30 .INIT. 16 u - 1024 0 0.000 0.000 0.000 xen02.cblue.be .INIT. 16 u - 1024 0 0.000 0.000 0.000 ns2.ttosi.net .INIT. 16 u - 1024 0 0.000 0.000 0.000
  • Emre Sevinç
    Emre Sevinç about 13 years
    I had to install msntp package because I could not find anything starting with sntp. Anyway running msntp -P no -r pool.ntp.org just led to a long long wait so I had to Ctrl-c it. On the other hand when I did dpkg-reconfigure tzdata and then selected None of the above and then UTC it started to show the correct time. However I don't know if this is the right thing to do, e.g. changing the timezone from Europe/Brussels to Etc/UTC. On other Linux systems I used (mostly Ubuntu) I set the timezone according to the geographical location and did not encounter any problems. That's why I'm confused.
  • Emre Sevinç
    Emre Sevinç about 13 years
    Apparently the NTP port 123 was blocked on the firewall, the problem is solved after port 123 is opened. Thanks for the detailed answer.