Ubuntu Cloud Image 20.04 change password failed

anything in the logs of the vm?
 
Hey, I can't even get this image to boot (goes into (initramfs)) but I have no issues with 18.04... anyone else?
 
Same with the "minimal" img btw (goes straight to kernel panic, can't find root device). Very strange!
 
Last edited:
Anyone figure this out?

Currently trying to create a template with ubuntu cloud image and cloud-init but getting the password error. Also, setting SSH keys doesn't work/ Networking settings do though.
 

Attachments

  • Screenshot_20220511_223336.png
    Screenshot_20220511_223336.png
    82.6 KB · Views: 8
I faced the same problem on Ubuntu Cloud Image 22.04, and after trial and error, I figured this out. Just don't use the word "admin" as a username, use something else.

Code:
cloud-init[467]: 2023-01-17 16:12:09,094 - ug_util.py[WARNING]: DEPRECATED: 'user' of type string is deprecated and will be removed in a future release. Use 'users' list instead.
cloud-init[467]: 2023-01-17 16:12:09,103 - util.py[WARNING]: Failed to set hashed passwords with chpasswd for ['admin']
cloud-init[467]: 2023-01-17 16:12:09,117 - util.py[WARNING]: Running module set-passwords (<module 'cloudinit.config.cc_set_passwords' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py'>) failed
 
I faced the same issue. And as @slowpork said, Admin shouldn't be used. The boot logs are below, and the related line is:
Code:
[   15.748817] cloud-init[547]: 2023-05-21 16:23:05,299 - util.py[WARNING]: Failed to create user admin

It seems proxmox is conflicting with some default user/value in the distro.
 

Attachments

I can see admin:x:118: in /etc/group, but I'm not sure if this is the root cause of the issue.