joefitzgerald / packer-windows

Windows Packer Templates
MIT License
1.63k stars 1.12k forks source link

Support for wsus offline #214

Open fekir opened 8 years ago

fekir commented 8 years ago

Hello,

I've tried to used your configuration files for creating a machine with virtualbox with Windows 7 and Windows 10 as guest operating systems. I needed to repeat the entire process many times, since I always got an error at the end of the setup (https://github.com/mitchellh/packer/issues/2401), at the end I managed to create a machine, but I've removed from your configuration the part where the updates are installed and .net-assemblies compiled (since those are the most cpu-intensive, time-consuming tasks and optional for having a working machine).

Since I wanted to have an updated box, and not to spend another week for applying at least all the security updates, I've used wsus offline (http://download.wsusoffline.net/). It gives you the possibility to download all the security updates, optionally create an iso, and install them more faster than using windows update (since you do not need to download them every time).

I tried to adapt the .json file, I've added the iso file, copied it in temp, unzipped it with 7zip like the other programs, and invoked the script that installs the updates, but if the machine needs to restart, (I've used "vagrant reload", just in case), packer is then unable to create a new connection to the machine after the reboot.

Are there are already some plans to give the user the possibility to provide an iso with all the updates (or some other process for avoiding to download them every time)? I can immagine that I'm not the only one interested in this topic.

Thank you very much for your time, and for sharing your configuration files!

spuder commented 8 years ago

You can create a slipstreamed windows ISO that already contains windows updates by following the instructions here:

http://www.v-strange.de/index.php/vmware/2-uncategorised/220-slipstream-windows-updates-to-server-2012r2-install-medium

Took my packer build times from 6 hours to 2 hours.