ECS instances use initialization tools to auto-configure networking, hostnames, and scripts on creation or startup. Linux uses cloud-init; Windows uses Vminit.
Cloud-init
Linux instances use the open source cloud-init tool for automatic initialization. See Cloud-init documentation.
-
Cloud-init defines modules, each with a name, running frequency, and configuration parameters. The two main frequencies are
once-per-instance(runs only on first startup) andalways(runs on every startup). See Module reference. -
Cloud-init uses
/etc/cloud/cloud.cfgto control initialization behavior, such as which modules to run. Modules retrieve metadata (instance ID, hostname, etc.) from the metadata service. For example, the Set Hostname module obtains and applies the hostname from the metadata service on startup.
Cloud-init is preinstalled in all Alibaba Cloud public images and custom images derived from them. For custom images based on on-premises devices, you must manually install cloud-init. See Install cloud-init.
Vminit
Windows instances use Vminit for automatic initialization. Vminit runs a series of plug-ins sequentially: some run only on first startup, others run on every startup. All plug-ins run automatically when an instance is created from a Windows image.
Vminit is preinstalled in Windows public images released since September 2023 and custom images derived from them. For custom images based on on-premises devices, you must manually install Vminit. See Install Vminit.
The following table describes the 10 Vminit plug-ins.
This plug-in list applies to Windows public images released since September 2023 and custom images derived from them. Other images may include different plug-ins.
Release notes
The following table lists Vminit version history.
|
Vminit version |
Release content |
Release date |
|
2.0.1.8 |
|
July 2025 |
|
2.0.1.6 |
|
September 2024 |
|
2.0.1.2 |
|
January 2024 |
|
2.0.1.0 |
First release. Introduced configurable plug-ins. |
September 2023 |
References
Initialize with instance user data to configure an instance at creation time.
To install and configure initialization tools for custom images, see Install cloud-init and Install Vminit.