π ~1 min read
Table of contents
Symptom & Impact
Boot time increases significantly while cloud-init retries unavailable metadata services.
Environment & Reproduction
Frequent after cloning images between different virtualization platforms.
systemd-analyze blame | grep cloud-init
Root Cause Analysis
Datasource probing includes endpoints that do not exist in the current environment.
Quick Triage
Review cloud-init status and recent logs.
sudo cloud-init status --long
Step-by-Step Diagnosis
Check configured datasource list and timeout settings.
sudo grep -R datasource_list /etc/cloud /etc/cloud/cloud.cfg.d

Solution – Primary Fix
Restrict datasource list and clear stale instance state.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
echo 'datasource_list: [ NoCloud ]' | sudo tee /etc/cloud/cloud.cfg.d/99_datasource.cfg && sudo cloud-init clean

Solution – Alternative Approaches
Disable cloud-init stages not needed for static infrastructure hosts.
Verification & Acceptance Criteria
Boot sequence no longer stalls and cloud-init reaches done quickly.
Rollback Plan
Remove custom datasource config and restore baseline cloud-init files.
Prevention & Hardening
Use platform-specific images with validated cloud-init datasource configuration.
Related Errors & Cross-Refs
Related to stale instance-id issues and unexpected netplan regeneration.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu cloud-init datasource and boot optimization docs.
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.