Affected versions: 24.04

๐Ÿ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Boot pauses for cloud-init and SSH access is delayed.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Environment & Reproduction

Occurs on VMs with unreachable metadata source or malformed user-data.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Root Cause Analysis

Datasource probing timeouts block completion of cloud-init stages.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Quick Triage

Check cloud-init status with sudo cloud-init status –long.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Step-by-Step Diagnosis

Review /var/log/cloud-init.log and /var/log/cloud-init-output.log for datasource errors.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-1
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Solution – Primary Fix

Set correct datasource in /etc/cloud/cloud.cfg.d and run sudo cloud-init clean –logs then reboot.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Solution – Alternative Approaches

Disable cloud-init on non-cloud templates with sudo touch /etc/cloud/cloud-init.disabled.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Verification & Acceptance Criteria

cloud-init finishes quickly and boot target reaches multi-user without delay.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Rollback Plan

Restore original cloud-init configs from backup if instance provisioning regresses.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Prevention & Hardening

Validate user-data syntax before deployment and keep datasource config explicit.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

Related: datasource not found and timeout waiting for metadata.

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.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

References & Further Reading

cloud-init upstream docs and Ubuntu cloud image guides.

Illustrative mockup for ubuntu-24-04-lts โ€” post-187-2
Illustrative mockup – Progressive Robot โ€” Illustrative mockup โ€” Progressive Robot

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.