KVM image RTC clock presets

Go down

KVM image RTC clock presets

Post by pavlyuts on Fri Nov 16, 2018 6:39 pm

Hi All,

KVM image, at least freesbc_kvm_3.0.107.3_172_233929.qcow2.tar.gz, has quite unusual datetime preset:

Code:
[root@sbc-backup ~]# timedatectl
Warning: Ignoring the TZ variable. Reading the system's time zone setting only.

      Local time: Fri 2018-11-16 23:34:01 +09
  Universal time: Fri 2018-11-16 14:34:01 UTC
        RTC time: Fri 2018-11-16 23:34:02
       Time zone: Pacific/Palau (+09, +0900)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: yes
      DST active: n/a

Warning: The system is configured to read the RTC time in the local time zone.
         This mode can not be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.
[root@sbc-backup ~]#

Basically, in the Linux world RTC is always UTC. Is therer some special idea behind of that?

pavlyuts

Number of Messages : 9
Registration Date : 2018-11-10

Back to top Go down

Re: KVM image RTC clock presets

Post by Admin on Fri Dec 07, 2018 1:50 am

Hi

You are right about RTC issue. So it seems we ignore that variable and get our timezone elsewhere. We modified our script with the following command;

Code:
timedatectl set-local-rtc 0

Now, this should be fixed for all new systems once we rebuild our FreeSBC images. In the existing system, we'd have to manually run the line that was added to the script file.

Admin
Admin

Number of Messages : 184
Registration Date : 2017-11-27

http://forums.freesbc.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum