New Question

Windows Server 2012R2 Image for Openstack - Windows Updates

asked 2018-01-25 10:19:25 +0200

anonymous user


I created a Windows Server 2012R2 Image for deploying instances in Openstack. I installed cloudbase-init and have run sysprep. With this created image I do not have a problem to deploy instances from it but I do have a question regarding Windows Updates on the newly created instance:

How is it possible to have the Windows system installing all new Windows Updates during first boot (i.e. when the hostname, Admin password and so on is created)?

Is cloudbase-init capable of doing this? If yes, what do I have to do to have a Windows Server instance deployed that has all the available Windows Updates included before the system asks the user to reset the Administrator password?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2018-01-30 07:58:13 +0200

avladu gravatar image


Cloudbase-Init can only enable automatic updates if you set in the config file, in the DEFAULT section, the enableautomaticupdates to True:


The functionality is the same to the one presented here:

Windows updates are usually very disruptive and can break functionality or even make the system as a whole unstable, if not proper curated and tested beforehand. Although cloudbase-init does not implement this functionality, you can use LocalScriptsPlugin (and the 1003 exit code each time you are required to perform a reboot) with this project to automatically install updates.

You can find an advanced usage of the WindowsUpdateCLI project here:

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

1 follower


Asked: 2018-01-25 10:19:25 +0200

Seen: 17 times

Last updated: Jan 30