canonical / canonical/cloud-init
[Debian 14] Significant boot delay on Google Compute Engine
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 1.1k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
I am experiencing a boot delay of over 2 minutes with debian-14-genericcloud-amd64-daily on Google Compute Engine.
It would appear this url is attempting to resolve during the boot process:
http://metadata.google.internal/computeMetadata/v1/
However this socket fails to respond in a timely manner:
/run/systemd/resolve.hook/io.systemd.Network
Modifying the boot image to override the metadata url with this one avoids the DNS resolution delay:
http://169.254.169.254/computeMetadata/v1/
Steps to reproduce:
1. Download cloud image from https://cloud.debian.org/images/cloud/forky/daily/latest/debian-14-genericcloud-amd64-daily.tar.xz
2. Convert to tarball
3. Copy to GCE bucket
4. Import image to GCE: `gcloud compute images create --guest-os-features UEFI_COMPATIBLE `
5. Create instance from image
6. Wait a few minutes for SSH to come up
7. Observe cause of long delay in journalctl:
```
Jun 04 09:07:41 i-1 dhcpcd[771]: control command: dhcpcd --dumplease --ipv4only ens4
Jun 04 09:08:09 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:08:11 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:08:40 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:08:42 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:09:10 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:09:12 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:09:40 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:09:46 i-1 systemd-resolved[602]: Query on hook '/run/systemd/resolve.hook/io.systemd.Network' failed with error 'io.systemd.TimedOut', ignoring.
Jun 04 09:09:46 i-1 cloud-init[765]: 2026-06-04 09:09:46,351 - DataSourceGCE.py[WARNING]: address "http://metadata.google.internal/computeMetadata/v1/" is not resolvable
Jun 04 09:09:46 i-1 systemd[1]: Finished cloud-init-local.service - Cloud-init: Local Stage (pre-network).
```
Contributor guide
Assessment
This issue has not been assessed yet.