Interview Prep/Linux/Boot, time, cron and kernel

A VM boots very slowly, and `systemd-analyze blame` shows `NetworkManager-wait-online.service` taking 1m30s.

IntermediateTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → An interface configured for DHCP never gets a lease (an unused NIC), so wait-online waits for its timeout.

Diagnose →

systemd-analyze critical-chain
nmcli dev status
journalctl -b -u NetworkManager | grep -i dhcp

Fix → Disable autoconnect on unused interfaces (nmcli con mod <name> connection.autoconnect no), or mark them not required. Disable wait-online only if no service needs network-online.target.

Prevent → Keep network profiles in images minimal and accurate.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel