Image making process online a lot of
The problem is that you can inject the password via Cloudinit, but after injection you will be prompted to change the password for the first time, and Google doesn't seem to have encountered this problem, first look at Group Policy, there is no similar option in Group Policy
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/87/C4/wKioL1fhQWejizKnAAbFbWp6AVY640.png-wh_500x0-wm_3 -wmp_4-s_1057321055.png "title=" capture. PNG "alt=" Wkiol1fhqwejizknaabfbwp6avy640.png-wh_50 "/>
View Source code
setuserpassword.py
def _change_logon_behaviour (self, username, password_injected=false):
"" "Post Set Password logic
If the option is activated, the
Password at next logon.
"""
if Conf.first_logon_behaviour = = Never_change:
Return
Clear_text = Conf.first_logon_behaviour = = Clear_text_injected_only
always = Conf.first_logon_behaviour = = Always_change
If always or (Clear_text and password_injected):
Osutils = Osutils_factory.get_os_utils ()
Osutils.change_password_next_logon (username)
Know the solution
Either add First_logon_behaviour = Never_change in the cloud.conf
or modify the code directly.
OpenStack Windows mirroring password injection issues