First time here? Check out the FAQ!
![]() | 1 | initial version |
You can set a root password to the image before uploading it to glance. This will allow you to log in and see whether cloud-init has populated the ssh key properly or not and troubleshoot if it hasn't.
# guestfish --rw -a <image-name>
><fs> run
><fs>list-filesystems
><fs> mount /dev/vda1 /
><fs> vi /etc/shadow
Replace the encrypted password. This will set the password for the image permanently. An encrypted password can be created using openssl command.