Configuring Cloud-Init 0.7.6
- Add the key-value pair no_ssh_fingerprints: true and ensure that it has a blank row before and after it.
no_ssh_fingerprints: true
- Change the value of users to default.
users: - default - Modify the following content:
disable_root: True preserve_hostname: false syslog_fix_perms: root:root
- Add parameter ssh_pwauth. This parameter specifies whether SSH password login is enabled. If it is set to false, SSH password login is disabled.
ssh_pwauth: false
- Use the number sign (#) to comment out the following rows:
mount_default_fields: [~, ~, 'auto', 'defaults', '0', '2'] manual_cache_clean: true
- Add the following content:
network: config: disabled datasource_list: [ OpenStack ]
For SUSE 11 SP4, add the following information:
growpart: mode: false
For Debian 8.6, do not add the following information:
datasource_list: [ OpenStack ]
- Add the following content after - final-message in cloud_final_modules:
- power-state-change
- Modify the content under system info as follows:
system_info: distro: sles default_user: name: linux //Username for logging in to the OS lock_passwd: True //True indicates that password login is disabled. In some OSs, 1 indicates that password login is disabled. gecos: redhat groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video] //(Optional) This parameter specifies the groups to which the user is added. The values must be groups that exist in the etc/group of the OS. sudo: ["ALL=(ALL) NOPASSWD:ALL"] //The user has all permissions of user root. shell: /bin/bash //The bash command is used to execute the shell script. paths: cloud_dir: /var/lib/cloud/ templates_dir: /etc/cloud/templates/ ssh_svcname: sshdThe value of distro varies depending on the OS and can be sles, rhel, ubuntu, debian, or fedora.
- Use the number sign (#) to comment out the following row:
ssh_genkeytypes: ['rsa', 'dsa']
- (Optional) For Debian 8.6, perform the following operations:
- Run the following command to configure the OpenStack source:

Run the vim /etc/cloud/cloud.cfg.d/90_dpkg.cfg command to open the configuration file and check the configuration items.
# to update this file, run dpkg-reconf igure cloud-init datasource_list: [ OpenStack ] ~ ~ ~
If the preceding information is displayed, the configuration is successful.
- Run the following command to configure the OpenStack source:
- (Optional) For EulerOS 2.2 and Euler 2.3, perform the following operation:
In the /etc/pam.d/su configuration file, check whether the line shown in the red box in the following figure has been commented out using the number sign (#). If yes, skip this step.

Last Article: Configuring Cloud-Init 0.7.5
Next Article: Configuring Cloud-Init 0.7.9
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.