New Question
0

Retrieving Windows instance administrator password with 'adminPass' filed

asked 2015-02-16 07:20:52 +0300

alexj.idig gravatar image

Hello,

We use a custom script to launch windows instances and use the 'adminPass' field to retrieve the administrator password. But we noticed that the password in the 'adminPass' field got changed after first boot and we get another password when we used the nova get-password command.

Is it possible for the cloudbase-init package to to set the 'administrator' password from the 'adminPass' field.

Thanks for your assistance on this. --. Alex James Aurocloud

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-02-18 02:56:47 +0300

ader1990 gravatar image

Hello,

The password is used only if you explicitly set it when booting the vm. For example:

  • nova boot --image image-id --meta admin_pass=p@ssw0rd vm-name

The password that is self-generated, the one from "adminPass" field, it is not taken into consideration by the metadata service, if it is not set when you create the server(boot the vm).

Hope it helps.

edit flag offensive delete link more

Comments

Thanks. It worked :)

alexj.idig gravatar imagealexj.idig ( 2015-02-18 17:09:33 +0300 )edit

Great! :)

ader1990 gravatar imageader1990 ( 2015-02-24 04:59:21 +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

2 followers

Stats

Asked: 2015-02-16 07:20:52 +0300

Seen: 439 times

Last updated: Feb 18 '15