Ubuntu – At boot, networking.service is incredibly slow (5 minutes) on Ubuntu 16.10
boot-timenetworking
According to systemd-analyze blame, networking-service is taking over 5 minutes to start at boot:
Why is this happening and how can I fix it?
Best Answer
I came up with a solution, though it may be more appropriate to call it a workaround.
The problem is that the networking.service has a default timeout of 5 minutes, and for whatever reason, the full timeout period must expire before the boot continues. So, boot takes a little more than 5 minutes.
The solution I came up with is to do the following:
sudo systemctl edit networking.service
Add the following line:
TimeoutStartSec=10sec
I still have no idea on root cause, and what exactly it is that's timing out, but reducing the timeout from 5 minues to 10 seconds makes the boot up run quite fast, for obvious reasons.
Evaluate if you can remove sda drive, if not, evaluate what is loaded from sda6 and migrate it on a faster storage.
Evaluate if you can uninstall/remove your snaps packages.
Evaluate if you really need virtualbox to start at boot
Check your nmdb settings, if the machine is not hosting smb shares, connecting to smb shares, not part of a Microsoft Active Directory, consider uninstalling nmdb and purging its configuration in case you reinstall it in the future.
Check your WiFi drivers and WiFi configuration
Check your network connection while booting, as your machine is waiting for it.
Best Answer
I came up with a solution, though it may be more appropriate to call it a workaround.
The problem is that the networking.service has a default timeout of 5 minutes, and for whatever reason, the full timeout period must expire before the boot continues. So, boot takes a little more than 5 minutes.
The solution I came up with is to do the following:
Add the following line:
I still have no idea on root cause, and what exactly it is that's timing out, but reducing the timeout from 5 minues to 10 seconds makes the boot up run quite fast, for obvious reasons.
Here's a link to my solution on Ubuntu Forums: https://ubuntuforums.org/showthread.php?t=2342450&p=13569192#post13569192
Hope that helps.