Apache CloudStack exposes user data, metadata, user password, and account
SSH key through the
virtual router. The datasource obtains the
router address via DHCP lease information given to the instance.
For more details on metadata and user data, refer to the
CloudStack Administrator Guide.
The following URLs provide to access user data and metadata from the Virtual
data-server. is a well-known hostname provided by the CloudStack
virtual router that points to the next
UserData server (which is
usually also the
data-server. cannot be resolved,
cloud-init will try to obtain the
virtual router’s address from the system’s DHCP leases. If that fails,
it will use the system’s default gateway.
The following configuration can be set for the datasource in system
The settings that may be configured are:
The maximum amount of clock time in seconds that should be spent searching
metadata_urls. A value less than zero will result in only one request being made, to the first in the list.
The timeout value provided to
urlopenfor each individual http request. This is used both when selecting a
metadata_urland when crawling the metadata service.
An example configuration with the default values is provided below: