📖 ~1 min read
Table of contents
Symptom & Impact
Boot process hangs on cloud-init stages, delaying service readiness and orchestration workflows.
Environment & Reproduction
Ubuntu 22.04 images cloned from cloud templates and used on-prem. Reproduce where no valid metadata endpoint exists.
Root Cause Analysis
cloud-init probes unavailable datasources and waits for timeout before completing initialization modules.
Quick Triage
Check cloud-init status –long and systemd unit timings with systemd-analyze blame | grep cloud-init.
Step-by-Step Diagnosis
Inspect logs in /var/log/cloud-init.log and journalctl -u cloud-init -b, then review datasource configuration under /etc/cloud/cloud.cfg.d.

Solution – Primary Fix
Limit datasource_list to valid sources for the environment and disable unneeded cloud-init modules on persistent non-cloud hosts.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Disable cloud-init entirely after initial provisioning if no dynamic metadata-driven config is required.
Verification & Acceptance Criteria
Boot completes without cloud-init timeout delays and required host configuration still applies correctly.
Rollback Plan
Revert datasource and module config files from backup, then rerun cloud-init clean and reboot.
Prevention & Hardening
Use environment-specific golden images and validate first-boot timing before broad rollout.
Related Errors & Cross-Refs
cloud-init timeout, datasource not found, start job running for cloud-init-local.service.
Related tutorial: View the step-by-step tutorial for Ubuntu 22.04 LTS.
View all Ubuntu 22.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
cloud-init documentation, Ubuntu cloud image customization guides, systemd service ordering references.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.