Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To see the status of the clocks and the delay with the references, use the command

Code Block
chronyc sources

Logs of timemaster service are also useful to spot any errors:

Code Block
systemctl status timemaster

Virtual machine synchronization

...

This canbe done with the toolphc2sys from the linuxptp package :

Code Block
phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -O 0 -m -q

This command can be put in a systemd service to automatically synchronize the clocks at the start of the VM.

This can also be done inside the chrony configuration file with the command

Code Block
refclock PHC /dev/ptp0 poll 3 dpoll -2 offset 0

Grand master simulation

Warning: This section is for test only. It is not intended to be used in a real environment.

...