To ensure that you can use the user data injection function to inject initial custom information into ECSs created from a private image (such as setting the ECS login password), install Cloudbase-Init on the ECS used to create the image.
Download the Cloudbase-Init installation package of the appropriate version based on the OS architecture from the Cloudbase-Init official website (http://www.cloudbase.it/cloud-init-for-windows-instances/).
Cloudbase-Init has two versions: stable and beta.
To obtain the stable version, visit the following paths:
To obtain the beta version, visit the following paths:
The version number shown in the figure is for reference only.


The version number shown in the figure is for reference only.
NetBIOS contains no more than 15 characters due to Windows system restrictions.
retry_count=40 retry_count_interval=5
[openstack] add_metadata_private_ip_route=False
Change the value of user_password_length to customize the password length.
In the Windows command line, run the following command to release the current DHCP address:
ipconfig /release
This operation will interrupt network connection and adversely affect ECS use. The network will automatically recover after the ECSs are started again.
Windows has three types of SAN policies: OnlineAll, OfflineShared, and OfflineInternal.
Type |
Description |
|---|---|
OnlineAll |
All newly detected disks are automatically brought online. |
OfflineShared |
All disks on sharable buses, such as iSCSI and FC, are left offline by default, while disks on non-sharable buses are kept online. |
OfflineInternal |
All newly detected disks are left offline. |
diskpart
san policy=onlineall