CloudStack - cloud-init 25.1.2 documentation (original) (raw)

View this page

Toggle table of contents sidebar

Apache CloudStack exposes user-data, meta-data, user password, and account SSH key through the virtual router. The datasource obtains the virtual router address via DHCP lease information given to the instance. For more details on meta-data and user-data, refer to theCloudStack Administrator Guide.

The following URLs provide to access user-data and meta-data from the Virtual Machine. data-server. is a well-known hostname provided by the CloudStackvirtual router that points to the next UserData server (which is usually also the virtual router).

http://data-server./latest/user-data http://data-server./latest/meta-data http://data-server./latest/meta-data/{meta-data type}

If data-server. cannot be resolved, cloud-init will try to obtain thevirtual router’s address from the system’s DHCP leases. If that fails, it will use the system’s default gateway.

Configuration

The following configuration can be set for the datasource in system configuration (in /etc/cloud/cloud.cfg or/etc/cloud/cloud.cfg.d/).

The settings that may be configured are:

Example

An example configuration with the default values is provided below:

datasource: CloudStack: max_wait: 120 timeout: 50