Ubuntu server uses networkd by default while the Ubuntu desktop uses NetworkManager.
ubuntu-desktop installs ubuntu-settings which adds the /lib/netplan/00-network-manager-all.yaml file to force NetworkManager as the default netplan renderer on Ubuntu desktop. So on Ubuntu server, /usr/lib/NetworkManager/dispatcher.d/20-chrony-dhcp is never called. @Hector I copied /usr/lib/NetworkManager/dispatcher.d/20-chrony-dhcp into /etc/networkd-dispatcher/configured.d/20-chrony-dhcp and modified it to make it work with networkd-dispatcher. This script is just a minimally working example, I'm not sure I can make a production-ready one. networkd-dispatcher does not have the same hooks and variables as NetworkManager dispatcher (see https://gitlab.com/craftyguy/networkd- dispatcher). action=$2 is specific to NetworkManager. See also /usr/lib/networkd-dispatcher/off.d/chrony-onoffline. Note that timesyncd seems to use a dhcpcd hook ; not networkd- dispatcher. I see /usr/libexec/dhcpcd-hooks/50-timesyncd.conf from dhcpd-base which is installed as a dependency of ubuntu-mininal. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2155244 Title: NTP servers from DHCP not picked up when using networkd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chrony/+bug/2155244/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
