Change metadata_urls in cloud-init

asked 2015-06-25 13:41:31 -0500

joshuamiller01 gravatar image

updated 2015-06-25 22:19:47 -0500

I host my metadata service on a specific IP, not on the default I've changed /etc/cloud/cloud.cfg in my virtual machine image to specify a datasource url:

datasource: Ec2: metadata_urls: [ '' ]

This eventually works - I can see that cloud-init will reach out to this and work with the metadata service, but there's a clear pause during the initial provisioning, and I can see from a packet capture that the system first tries to communicate with the default end-point (thus the stall).

00:26:07.470359 IP > Flags [S]

Where (else) do I need to change this to prevent the system from wasting time trying to hit the default metadata url?

edit retag flag offensive close merge delete