1019 B
1019 B
RHCSA 7.4: Time service clients
Pointing chrony at one time server, and setting the time zone.
Before you start
The lab adds a time server on your lab network: a second machine, ntp1
(10.99.0.2), running an NTP server. It's the "server on your network" of
the chapter, so the lab doesn't need the Internet. The lab notes your time
zone and chrony's configuration, and puts them back when you reset it.
Tasks
- Make this VM synchronize its time only with
ntp1(10.99.0.2), persistently. After a minute,chronyc sourceslists only that server, marked^*. - Set the time zone to
America/Phoenix.
Hints
/etc/chrony.conf: comment out thepoolline, add aserverline withiburst;systemctl restart chronyd;chronyc sources,chronyc tracking.- If your DHCP server hands out NTP servers, they show up in
chronyc sourcestoo: comment out thesourcedir /run/chrony-dhcpline as well. timedatectl list-timezones,timedatectl set-timezone,timedatectl.