cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From li jerry <>
Subject How to reset password using cloud-init in cloudstack
Date Sun, 30 Aug 2020 07:42:52 GMT
Hi All
We tried to replace the cloud-set-guest-password script with cloud-init in CentOS.

l  The VM is deployed through the template, and the password takes effect

l  Reset VM password via CloudStack, failed (cannot log in with new password)

Does anyone know how to solve it?

Here is the operation procedure:

l  Cloud-init is installed in guest VM and cloudstack data source is configured;

l  Convert VM to template (enable password)

l  Deploy VM for new template;

l  Use the password ssh returned by cloudstack to log in to the VM, and it is successful

The above test proves that cloud-init works well

Next, I test the vm  resetpassword:

l  Shut down VM

l  reset password

l  Start VM

Failed to login VM with new password
Login VM successfully with old password

Description password reset function failed

VM cloud-init log output: [DEBUG]: config-set-passwords already ran (freq=once-per-instance)

Can the set passwords module be executed every time it is restarted?
(I have implemented the reset password function using cloudbase-init in Windows)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message