You can add cloudbase-init to Windows
operating system images.
To add cloudbase-init to your image, download
it from https://www.cloudbase.it/downloads/CloudbaseInitSetup_Beta.msi and
install it by following the procedure at http://www.cloudbase.it/cloud-init-for-windows-instances/.
Note: - After the cloudbase-init installation, do not
select the option to run sysprep.exe in the Finish page.
- When you create the network, set the dns-nameservers and gateway parameters.
- To speed up the IP address injection, when you create the image
template, specify the metadata_services parameter
in the cloudbase-init.conf file:
metadata_services= 'cloudbaseinit.metadata.services.configdrive.ConfigDriveService,
cloudbaseinit.metadata.services.httpservice.HttpService,
cloudbaseinit.metadata.services.ec2service.EC2Service,
cloudbaseinit.metadata.services.maasservice.MaaSHttpService'
- If you get the OS can not be restarted automatically message
after changing the host name, use the latest cloudbase-init version.
- cloudbase-init allows to set password for a user.
The user name is configured at image preparation time and cannot be
modified at virtual machine creation time. You can specify a user
name during cloudbase-init installation or in the cloudbase-init.conf file.
If the user does not exist, a new user account is created at virtual
machine initialization time. If there are multiple Windows users at
image preparation time, at virtual machine initialization time password
is changed only for the user specified in the cloudbase-init configuration.
Other user's passwords are not changed.
After cloudbase-init is installed, complete the
following procedures.