weizhouapache commented on PR #10061:
URL: https://github.com/apache/cloudstack/pull/10061#issuecomment-2660000653

   > I specifically left the old functionality, so the users can choose whether 
to use the script you mentioned, or the cloud-init's native functionality. So 
this code will not break the script functionality.
   > 
   > Regarding the "the username can be changed in the script (by default it 
uses root)": cloud-init supports custom usernames too, it is a separate 
parameter in the cloud.cfg that is set to "ubuntu" in Ubuntu cloud image.
   > 
   
   thanks @phsm 
   it looks good
   
   > I think the main issue with the cloud-init `set_password` module is that 
it was meant to set the _initial_ password for the VM, hence the default "force 
changing the password on the first login" behavior. If the need arises, the PR 
to cloud-init can be made for it to compare the cached password with the 
password in the config drive ISO, and change user's password if needed.
   
   yes.
   if the vm password is reset in cloudstack ,how to reset the user password in 
the VM via cloud-init ?
   please consider that the vm is not accessible by user (for example user has 
forgot the password), so no changes can be made before resetting the password


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to