New Question

Let user set password without auto-generated password on initial boot

asked 2016-07-01 17:19:09 +0300

kvasko gravatar image

updated 2016-07-01 17:19:47 +0300

I cannot figure out how to configure the image to simply ask for the user to set the password and not have a default password (like in the one provided

I saw this, and then the CLI method
nova get-password <instance> <ssh_private_key> to get the default password. But I just want the user to provide a password on their first login.

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2016-08-07 09:04:38 +0300

Abdul gravatar image

Do sysprep with OOBE and Generalize and shutdown.

edit flag offensive delete link more

answered 2016-07-01 17:40:48 +0300

avladu gravatar image


you need to set in the cloudbase-init configuration file the following:



More information here: and here:


Adrian Vladu

edit flag offensive delete link more


I followed the instructions here, at what point in that process do I need to change that setting? I just executed the MSI file. I'll have to change this on the generated image manually I guess? (e.g. regenerate and change it on the image)?

kvasko gravatar imagekvasko ( 2016-07-01 18:25:24 +0300 )edit

You just need to change the cloudbase-init configuration file which is located at: C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf

avladu gravatar imageavladu ( 2016-07-01 19:04:19 +0300 )edit

As long as you change the image before it boots it's fine, you don t need to fully regenerate the image.

avladu gravatar imageavladu ( 2016-07-01 19:46:39 +0300 )edit

how can you change it before it boots? Is it possible to extract the qcow2 image and change it?

kvasko gravatar imagekvasko ( 2016-07-01 20:00:34 +0300 )edit

On linux, with qemu-img you can convert it to raw, then with losetup, kpartx and mount you mount it, and then change the file content.

avladu gravatar imageavladu ( 2016-07-01 21:42:34 +0300 )edit

answered 2016-07-06 22:03:29 +0300

Hello @kvasko,

First of all please try with first_logon_behaviour=always instead of first_logon_behavior=always (it's missing an u).

If the problem it is still present could you send us the cloudbase-init log in order to get an overview regarding the context of this issue. Also it will be useful for us to know on what version of operating system are you trying this.

Thanks for using cloudbase-init, and sorry for this issue,

edit flag offensive delete link more


I fixed this issue but the issue still persists. It is still asking for a password when I boot the image. I'm trying this on Windows Server 2012 R2. Where can I get the cloudbase-init log? Would this be on the instance?

kvasko gravatar imagekvasko ( 2016-08-01 16:38:41 +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: 2016-07-01 17:19:09 +0300

Seen: 308 times

Last updated: Aug 07 '16