From f265f1fca695f41769836ad78121635a0aa620cf Mon Sep 17 00:00:00 2001 From: Thomas Moraine Date: Wed, 18 Dec 2024 08:57:32 +0100 Subject: [PATCH 1/5] xoa.md: Replace ntpd with systemd-timestncd On recent versions of Xen Orchestra, we switched to systemd-timesyncd for NTP management. XOA documentation is updated to reflect this change. Signed-off-by: Thomas Moraine --- docs/docs/xoa.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/xoa.md b/docs/docs/xoa.md index 15535ef06ed..a214174c5de 100644 --- a/docs/docs/xoa.md +++ b/docs/docs/xoa.md @@ -230,7 +230,7 @@ You can verify that your time is correctly set with the `date` command. To set X ## Setting a custom NTP server -By default, XOA is configured to use the standard Debian NTP servers: +By default, XOA is configured to use the `systemd-timesyncd` daemon, along with the standard Debian NTP servers: ``` pool 0.debian.pool.ntp.org iburst @@ -239,11 +239,11 @@ pool 2.debian.pool.ntp.org iburst pool 3.debian.pool.ntp.org iburst ``` -If you'd like to use your own NTP server or another pool, you can make the changes directly in `/etc/ntp.conf`. +If you'd like to use your own NTP server or another pool, you can make the changes directly in `/etc/systemd/timesyncd.conf`. You will need to be root to edit this file (or use `sudo`). We recommend adding your custom server to the top of the list, leaving the debian server entries if possible. -For changes to take effect, you will need to restart NTP: `sudo systemctl restart ntp.service`. +For changes to take effect, you will need to restart NTP: `systemctl restart systemd-timesyncd.service `. ## Restart the service From 05f61ccd57ed80e9a5a3786e3830c0c96d0574e6 Mon Sep 17 00:00:00 2001 From: Thomas Moraine Date: Wed, 18 Dec 2024 08:57:32 +0100 Subject: [PATCH 2/5] xoa.md: Replace ntpd with systemd-timestncd On recent versions of Xen Orchestra, we switched to systemd-timesyncd for NTP management. XOA documentation is updated to reflect this change. Signed-off-by: Thomas Moraine --- docs/docs/xoa.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/xoa.md b/docs/docs/xoa.md index 15535ef06ed..a214174c5de 100644 --- a/docs/docs/xoa.md +++ b/docs/docs/xoa.md @@ -230,7 +230,7 @@ You can verify that your time is correctly set with the `date` command. To set X ## Setting a custom NTP server -By default, XOA is configured to use the standard Debian NTP servers: +By default, XOA is configured to use the `systemd-timesyncd` daemon, along with the standard Debian NTP servers: ``` pool 0.debian.pool.ntp.org iburst @@ -239,11 +239,11 @@ pool 2.debian.pool.ntp.org iburst pool 3.debian.pool.ntp.org iburst ``` -If you'd like to use your own NTP server or another pool, you can make the changes directly in `/etc/ntp.conf`. +If you'd like to use your own NTP server or another pool, you can make the changes directly in `/etc/systemd/timesyncd.conf`. You will need to be root to edit this file (or use `sudo`). We recommend adding your custom server to the top of the list, leaving the debian server entries if possible. -For changes to take effect, you will need to restart NTP: `sudo systemctl restart ntp.service`. +For changes to take effect, you will need to restart NTP: `systemctl restart systemd-timesyncd.service `. ## Restart the service From 46d7e9fa9c142e817a78ed0c293893a6477ed998 Mon Sep 17 00:00:00 2001 From: Thomas Moraine Date: Thu, 2 Jan 2025 10:37:18 +0100 Subject: [PATCH 3/5] xoa.md Update procedure to change NTP servers Signed-off-by: Thomas Moraine --- docs/docs/xoa.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/docs/xoa.md b/docs/docs/xoa.md index a214174c5de..ee4697a5dcb 100644 --- a/docs/docs/xoa.md +++ b/docs/docs/xoa.md @@ -239,9 +239,16 @@ pool 2.debian.pool.ntp.org iburst pool 3.debian.pool.ntp.org iburst ``` -If you'd like to use your own NTP server or another pool, you can make the changes directly in `/etc/systemd/timesyncd.conf`. +If you'd like to use another pool, you can make the changes directly in `/etc/systemd/timesyncd.conf`. -You will need to be root to edit this file (or use `sudo`). We recommend adding your custom server to the top of the list, leaving the debian server entries if possible. +You will need to be root to edit this file (or use `sudo`). We recommend adding your custom server to the top of the list, leaving the Debian server entries if possible. + +If you'd like to simply change NTP servers, use the `xoa network ntp` command: + +``` +$ xoa network ntp +? NTP servers (space separated) +``` For changes to take effect, you will need to restart NTP: `systemctl restart systemd-timesyncd.service `. From 135e0df97837f67d6750eabb793f69acdc94cc20 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 8 Jan 2025 09:04:27 +0100 Subject: [PATCH 4/5] Update docs/docs/xoa.md --- docs/docs/xoa.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/xoa.md b/docs/docs/xoa.md index ee4697a5dcb..44c0365d279 100644 --- a/docs/docs/xoa.md +++ b/docs/docs/xoa.md @@ -245,7 +245,7 @@ You will need to be root to edit this file (or use `sudo`). We recommend adding If you'd like to simply change NTP servers, use the `xoa network ntp` command: -``` +```console $ xoa network ntp ? NTP servers (space separated) ``` From 9e87e55a2cf9c87544228c40e0228adf2868aba0 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 8 Jan 2025 09:07:07 +0100 Subject: [PATCH 5/5] Update docs/docs/xoa.md --- docs/docs/xoa.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/xoa.md b/docs/docs/xoa.md index 44c0365d279..a2d82946c5d 100644 --- a/docs/docs/xoa.md +++ b/docs/docs/xoa.md @@ -250,7 +250,7 @@ $ xoa network ntp ? NTP servers (space separated) ``` -For changes to take effect, you will need to restart NTP: `systemctl restart systemd-timesyncd.service `. +For changes to take effect, you will need to restart NTP: `systemctl restart systemd-timesyncd.service`. ## Restart the service