Set Ubuntu login credential from Openstack Horizon dashboard

asked 2020-07-21 09:25:58 -0500

dash27darshan gravatar image

I am trying to create password for Ubuntu Instance

I want to use Horizon dashboard to initiate Ubuntu credential.

Using focal-server-cloudimg-amd64

Tried using the below in Horizon Customization Script. But it didn't work.

#cloud-config
password: root
chpasswd: { expire: False }
ssh_pwauth: True
edit retag flag offensive close merge delete

Comments

What didn't work?

If I understand https://cloudinit.readthedocs.io/en/l... right, your configuration sets the password of the default user. On a Ubuntu image, the default user is ubuntu. Did you try to log on as ubuntu?

Bernd Bausch gravatar imageBernd Bausch ( 2020-07-21 19:39:33 -0500 )edit

By the way, why do you need password authentication? In a cloud, you normally use SSH keys.

Bernd Bausch gravatar imageBernd Bausch ( 2020-07-21 19:40:07 -0500 )edit

Crazy!! It kept saying incorrect login, but after say 2 minutes VM accepted the same password.

dash27darshan gravatar imagedash27darshan ( 2020-07-21 20:08:57 -0500 )edit

It takes a while until cloud-init completes its work.

Bernd Bausch gravatar imageBernd Bausch ( 2020-07-21 22:21:13 -0500 )edit