New Question
0

Windows 2012R2 User Password gets reset back to default

asked 2017-11-26 18:51:06 +0200

rainmanh gravatar image

updated 2017-11-26 22:35:40 +0200

Hi,

I am currently using cloudbase-init on a Win 2012R2 build and I am getting a strange issue:

Initiall Everything looks working well, I get the password injected which i can use and I am being asked to change it. So, I change the password and , intially, the new password seems to work correctly, but if I reboot the VM, after a few minutes after the reboot, the cloudbase-init scripts seems to reset the password back to the injected one which is very strange. So I lose my new password and it gets back to the old one.

How can I stop that behaviour happening? so if I change the password for the user it stays after rebooting the VM?

Many thanks

edit retag flag offensive close merge delete

Comments

Configuration: https://pastebin.com/6Qb6Zrs2 Version: cloudbase-init 0_9_11_x64

rainmanh gravatar imagerainmanh ( 2017-11-26 22:34:13 +0200 )edit

I wonder if is there a way cloudbase-init just run once and not every time the VM reboots? That would stop the scripts to inject the password again resetting it back to it's default..

rainmanh gravatar imagerainmanh ( 2017-11-26 22:44:21 +0200 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2017-12-03 10:02:11 +0200

rainmanh gravatar image

Apologies as this setup does not apply for either OpenStack nor Cloudstack as this is an alternative cloud solution. I finally setup a Task scheduler in windows running a few tasks at the background being one of them to disable cloudbase-init once it has run. So far it seems running well. thanks for your help and support Adrian.

edit flag offensive delete link more
0

answered 2017-11-27 19:58:41 +0200

avladu gravatar image

Hello,

What cloud metadata type are you using? OpenStack/Cloudstack?

If properly configured, cloudbase-init should not have this behaviour, as it keeps state of the plugins run (like setting the password).

Can you post also the logs?

Thank you,
Adrian Vladu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-11-26 18:51:06 +0200

Seen: 812 times

Last updated: Dec 03 '17