I paused the virtual machine on the VM and disconnected its internet connection without rebooting the system. When I started the system from sleep mode without rebooting, the system clock continued where it left off and could not show the correct time? What will I do in such a situation?
- my time data for the hour **before** I paused my virtual machine
(it is also real time for my host)
% chronyc sourcestats
---------------------
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
131.153.171.22 6 4 139 -46792.738 67288.219 -326ms 890ms
108.175.15.67 6 3 140 -44764.793 61909.766 -188ms 961ms
gopher.fart.website 6 3 140 -49022.652 84747.266 -217ms 1224ms
edge-iad.txryan.com 6 3 139 -45642.164 67798.562 -230ms 1032ms
% chronyc tracking
------------------
Reference ID : 8399AB16 (131.153.171.22)
Stratum : 3
Ref time (UTC) : Mon Dec 25 09:55:11 2023
System time : 0.000000000 seconds slow of NTP time
Last offset : -5.681410313 seconds
RMS offset : 1.796643019 seconds
Frequency : 5.307 ppm fast
Residual freq : -46792.738 ppm
Skew : 8.997 ppm
Root delay : 0.147369087 seconds
Root dispersion : 0.769112766 seconds
Update interval : 7.0 seconds
Leap status : Normal
% date
-----------------
Mon Dec 25 12:55:18 PM +03 2023
% hwclock
-----------------
2023-12-25 12:55:13.078474+03:00
- After disconnecting from the internet, I waited for a while and then when I opened the VM, the clock did not show the correct time.
Also, when I get this output; my real host date *(Monday, December 25, 2023 1:28:58 PM)*
*(in short, when I disconnected the internet connection and started the system again, it could not be started synchronously with the time of my main host.)*
% chronyc sourcestats
---------------------
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
131.153.171.22 6 4 139 -46792.738 67288.219 -5592ms 890ms
108.175.15.67 6 3 140 -44764.793 61909.766 -5226ms 961ms
gopher.fart.website 6 3 140 -49022.652 84747.266 -5734ms 1224ms
edge-iad.txryan.com 6 3 139 -45642.164 67798.562 -5367ms 1032ms
% chronyc tracking
------------------
Reference ID : 8399AB16 (131.153.171.22)
Stratum : 3
Ref time (UTC) : Mon Dec 25 09:55:11 2023
System time : 0.000000000 seconds fast of NTP time
Last offset : -5.681410313 seconds
RMS offset : 1.796643019 seconds
Frequency : 5.307 ppm fast
Residual freq : -46792.738 ppm
Skew : 8.997 ppm
Root delay : 0.147369087 seconds
Root dispersion : 6.036798477 seconds
Update interval : 7.0 seconds
Leap status : Normal
% date
-----------------
Mon Dec 25 12:57:11 PM +03 2023
% hwclock
-----------------
2023-12-25 12:57:05.629692+03:00
- After Internet Connection
---------------------------
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
131.153.171.22 6 4 343 -5616574 341926 -1958s 15.7s
108.175.15.67 6 4 343 -5631052 251508 -1960s 12.1s
gopher.fart.website 6 4 343 -5618134 301975 -1963s 14.2s
edge-iad.txryan.com 6 4 343 -5635317 275298 -1964s 13.2s
Reference ID : 8399AB16 (131.153.171.22)
Stratum : 3
Ref time (UTC) : Mon Dec 25 09:55:11 2023
System time : 0.000000001 seconds fast of NTP time
Last offset : -5.681410313 seconds
RMS offset : 1.796643019 seconds
Frequency : 5.307 ppm fast
Residual freq : -46792.738 ppm
Skew : 8.997 ppm
Root delay : 0.147369087 seconds
Root dispersion : 16.738962173 seconds
Update interval : 7.0 seconds
Leap status : Normal
Mon Dec 25 01:01:00 PM +03 2023
2023-12-25 13:01:00.293480+03:00
----------
Also, How often does my system time refresh via Chrony? When the system is turned on or as long as it is connected to the internet? How can I set this?
Asked by Ichigo Kurosaki
(11 rep)
Dec 24, 2023, 02:20 AM
Last activity: Dec 27, 2023, 07:20 PM
Last activity: Dec 27, 2023, 07:20 PM