rylagek / pack_everything

Generic Packer Templates with chained builders for Vagrant, VirtualBox, VMWare, and vSphere
MIT License
6 stars 2 forks source link

Verify `windows-10` updates successfully #15

Closed andreccr closed 2 years ago

andreccr commented 2 years ago

Windows 10 build with artifacts, but we need to make sure that the Windows updates were successfully applied. It is possible that the updates do not get applied successfully if:

This can possibly be solved if we can make Packer repeat a provisioner until a condition is met.

andreccr commented 2 years ago

Looks like this can be done with the max_retries setting in the provisioner. Trying this now.

andreccr commented 2 years ago

Further investigation shows several Windows updates still needed after Packer finishes. Looking into this. It's possible the update script only installs a subset of the updates.

andreccr commented 2 years ago

Windows updates not needed for our primary use case.