I installed cloudbase-init 1.1.6 on Windows in an ovirt virtual environment and packaged it into a template. When I used this templateto create a new virtual machine, I configured the administrator password. The content of the virtual machine's configdirve directory config-2\openstack\latest\user_data.json is as follows.
#cloud-config
output:
all: '>> /var/log/cloud-init-output.log'
password: Idpbg123456.
disable_root: 0
runcmd:
- 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo ''datasource_list:
["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'
timezone: Asia/Shanghai
ssh_deletekeys: 'false'
ssh_pwauth: true
chpasswd:
expire: false
user: administrator
However, after the virtual machine is started, I need to log in for the first time to set the administrator's password. It has not been changed to the password I set myself.
Below is the startup log file. Can you help analyze the reason why the administrator password injection failed?
cloudbase-init.txt