VM takes too long to start without internet

I’m using HA in a VM and recently I had to start it back up after a power cut (don’t worry, the shutdown was graceful - I do have a UPS), where the internet hadn’t yet reconnected. It took so long to start that I investigated on why. I opened the remote terminal to the VM to see the bootup process. There, I noticed this while booting:

Why does it insist on waiting 2 whole minutes just for something seemingly benign like time synchronisation? Chances are it doesn’t need syncing, or at least not absolutely right away. Chances are the VM hasn’t gone out of sync for more than a second. And why must it block everything in the boot process that comes after it? Why can’t it do its thing in the background like it does after booting?

To put it more clearly:

  • Time syncing shouldn’t block the boot process
  • Time syncing doesn’t need to wait for 2 whole minutes (if the internet works, it doesn’t likely have to wait for more than 2 seconds)
  • Time syncing may not have to be a neccesary part of the main boot process, but can be an asynchronous/background process

Please note, I’m not looking for a configuration option to turn off time syncing. That would be a (quite horrible) workaround for a problem that would remain unfixed for everybody else. I’m looking to the devs to fix this problem permanently for everyone, by taking the aforementioned bullet points to heart, with all due respect.

1 Like

Hi Martijn Saly,

Is this with 2024.11.x installed?
I think they added a clock or changed something related.
Don’t know details.

This was just before I had the oppertunity to install the latest update. I think I had 2024.9 installed then.