How to make guest time host time? #2396
-
When I leave a guest running overnight and ssh into the instance the next day the time is off. How do I make the guest use the host time without sync? Is there a file that can be mounted from macOS onto a linux guest? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, there is not. Lima does check time against RTC and adjust the time inside the guest when it is more than 10s off. This is off course not good enough for certain use-cases (e.g. Makefiles), and it may also not always work. We have several open issues about this. The "proper" solution would be running an NTP server on the host and then syncing to that from inside the guest. Just needs somebody to spend the time to implement it. |
Beta Was this translation helpful? Give feedback.
No, there is not. Lima does check time against RTC and adjust the time inside the guest when it is more than 10s off.
This is off course not good enough for certain use-cases (e.g. Makefiles), and it may also not always work. We have several open issues about this.
The "proper" solution would be running an NTP server on the host and then syncing to that from inside the guest. Just needs somebody to spend the time to implement it.