New Question
0

Windows Server 2012R2 Image for Openstack - Windows Updates

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

anonymous user

Anonymous

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
0

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

avladu gravatar image

Hello,

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

[DEFAULT]
enableautomaticupdates

The functionality is the same to the one presented here:
https://support.microsoft.com/en-us/h...

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 https://github.com/cloudbase/WindowsU... to automatically install updates.

You can find an advanced usage of the WindowsUpdateCLI project here:
https://github.com/cloudbase/windows-...

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

Stats

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

Seen: 37 times

Last updated: Jan 30