• Bare Metal Server

  1. Help Center
  2. Bare Metal Server
  3. User Guide
  4. Service Overview
  5. Security
  6. Cloud-Init


What Is Cloud-Init?

Cloud-Init is an open-source cloud initialization program, which initializes specified customized configurations, such as the host name, key, and user data, of a newly created BMS.

Currently, all standard images (in Standard_xxx format) support Cloud-Init.

Using Cloud-Init to initialize BMS configurations will influence your BMS and IMS services.

Impact on IMS

To ensure that BMSs created using private images support customized configurations, you must install Cloud-Init or Cloudbase-Init when creating private images.

  • For Windows OSs, download and install Cloudbase-Init.
  • For Linux OSs, download and install Cloud-Init.

After Cloud-Init or Cloudbase-Init is installed in an image, Cloud-Init or Cloudbase-Init automatically configures initial BMS attributes when the BMS is created. For details about how to install Cloud-Init and Cloudbase-Init, see Bare Metal Server Private Image Creation Guide.

Impact on BMS

  • When creating a BMS, if the selected image supports Cloud-Init, you can use user data injection to inject customized configuration, such as BMS login password, for initializing. For details, see Injecting User Data into BMSs.
  • After Cloud-Init is supported, you can view and use the metadata service to configure and manage running BMSs. For more information, see Metadata.


  • When using Cloud-Init, enable DHCP in the VPC to which the BMS belongs.
  • When using Cloud-Init, ensure that security group rules in the outbound direction meet the following requirements so that you can access the metadata service:
    • Protocol: TCP
    • Port Range: 80
    • Remote End:

    If you use the default security group rules in the outbound direction, the preceding requirements are met, and the metadata service can be accessed. The default outbound security group rule is as follows:

    • Protocol: ANY
    • Port Range: ANY
    • Remote End: