openstack-cloud-software-horizontal-small After chasing this information too often, I’ve decided to give a break to my brain and compile a list of the most common OpenStack Images (at least for my day-to-day activities). Without further ado, here’s the list:

Distribution

Default User

Ubuntu 14.04 Trusty

ubuntu

CentOS 67

centos

Red Hat Enterprise Linux 67

cloud-user

CirrOS

cirros

Debian

admin

A complete and up to date list can be found at the OpenStack site. You can then login into an instance with the provided SSH keys or optionally, you could also change the default user password with the following cloud-config, which will allow you to ssh into an instance but force the password to be changed on the first login: [code language=“text” title=“cloud-config”] #cloud-config password: ChangeMe chpasswd: { expire: True } ssh_pwauth: True [/code] Let’s understand the options from the above configuration. [code language=“text” title=“password”] # you can set passwords for a user or multiple users # this is off by default. # to set the default user’s password, use the ‘password’ option. # if set, to ‘R’ or ‘RANDOM’, then a random password will be # generated and written to stdout (the console) # password: passw0rd # # also note, that this will expire the password, forcing a change # on first login. If you do not want to expire, see ‘chpasswd’ below. [/code] [code language=“text” title=“chpasswd”] # So, a simple working example to allow login via ssh, and not expire # for the default user would look like: password: passw0rd chpasswd: { expire: False } ssh_pwauth: True [/code] and finally, [code language=“text” title=“ssh_pwauth”] # in order to enable password login via ssh you must set # ‘ssh_pwauth’. # If it is set, to ‘True’ or ‘False’, then sshd_config will be updated # to ensure the desired function. If not set, or set to “ or ‘unchanged’ # then sshd_config will not be updated. # ssh_pwauth: True [/code] More examples can be found here.