New Question

How to change admin password for windows openstack instance

asked 2015-09-11 16:07:15 +0300

Sapos gravatar image

Hello! When I create a windows instance I can set admin password via nova boot --meta. If I didn't use --meta admin_pass administrator password generates randomly and in that case I can't find out what is the password. Is it possible to change Administrator's password for windows openstack instance if, I can't login and change registry key? Are there any other ways to force execute set password plugin than making changes in windows registry?


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-09-11 17:04:57 +0300

ader1990 gravatar image


First of all, if you use a nova key-pair to boot the machine, you can retrieve the user password by using "nova get-password <instance-id> <private-key-path>". If you use the Windows Server 2012 R2 trial image from our site, the default user is "Admin". The default user can be changed in the cloudbase-init.conf. If you use OpenStack, it is possible to post the password to the Openstack metadata service just once, thus if you run the plugin the second time, even if it will change the password, the first password will be available to nova.

Secondly, you can use the userdata-scripts(powershell, batch or other types) to execute your preferred password logic. If the exit code of the userdata script is 1002, the script will be executed at the next boot(re-executing the userdata plugin).

More information can be found here:


edit flag offensive delete link more


Thank you, your answer was very helpfull. But there is a kind of issue that I can't use userdata-scripts for openstack instances booted with no nova option `--user-data`. I've tried local scripts with LocalScriptsPlugin but id does not understand exit codes.

Sapos gravatar imageSapos ( 2015-10-01 14:35:01 +0300 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2015-09-11 16:07:15 +0300

Seen: 4,770 times

Last updated: Sep 11 '15