Confusion about how the date and time is working in Qubes

I’ve read Understanding and fixing issues with time/clock but i have multiples question if @unman could reply to this post it will be great i think he have the most information about this subject

  1. What happen if a user disable systemd-timesyncd in net-vm-template ? Let’s say a user want to replace systemd-timesyncd by chrony or ntpd or whatever do Qubes still can sync the date and time without any trouble from sys-net ?
  2. It’s unclear if Qubes depend on “systemd-timesyncd” to sync the date and time it’s unclear if the user can replace this by something else
  3. If a user want to replace systemd-timesyncd by chrony for example what he have to do ? Should the user modify the service like qubes-sync-time ?

Hi,

If you want to use Chrony - you obviously need to install it, enable it as a service, properly edit /etc/chrony.conf, restart the service, and verify synchronization. Finally, you need to set Qubes to use the new VM for time synchronization - for example, a new qube like Time2VM

in dom0:
qvm-prefs --set dom0 clockvm Time2VM

qvm-sync-clock

I think this will work.

Hum… thanks for the help but this is not what i asked ? I mean This doesn’t help me at all but thanks anyway