New Question
0

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

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

kvasko gravatar image

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

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 https://cloudbase.it/windows-cloud-im...).

I saw this, http://ask.cloudbase.it/question/865/... 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
0

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

Abdul gravatar image

Do sysprep with OOBE and Generalize and shutdown.

edit flag offensive delete link more
0

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

avladu gravatar image

Hello,

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

[DEFAULT]

first_logon_behaviour=always

More information here: https://github.com/openstack/cloudbas... and here: https://cloudbase-init.readthedocs.io...

Thanks,

Adrian Vladu

edit flag offensive delete link more

Comments

I followed the instructions here, http://docs.openstack.org/image-guide/windows-image.html 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 +0200 )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 +0200 )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 +0200 )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 +0200 )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 +0200 )edit
0

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

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,
Alex

edit flag offensive delete link more

Comments

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 +0200 )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

Stats

Asked: 2016-07-01 17:19:09 +0200

Seen: 4,950 times

Last updated: Aug 07 '16