~/talk

Lightweight Windows Vagrant Boxes with Packer

Talkat HashiConf 2016 · 2016-09-06..09-08· [developer-experience]
speakerdeck:mwrock
slides:none on file

Step-by-step recipe for creating a compact, fully patched Windows Vagrant box with Packer: boot an evaluation ISO with an autoattend.xml that drops a PowerShell preprovisioner to enable WinRM, use a scheduled task elevation trick to run Windows Update reliably over WinRM, run DISM to clean the SxS component store (biggest single win), remove unused Features on Demand, zero unused disk space and run Optimize-Volume, and undo insecure WinRM before packaging; note builds with ~235 updates can take ~10 hours on modest hardware.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 1:51Packer basics for Windows
  3. 3:37Windows ISO and auto unattend.xml
  4. 10:43WinRM setup and provisioning
  5. 17:16Patching Windows images
  6. 24:42Optimizing box size
  7. 34:53Cleanup and disk optimization
  8. 37:22Common pitfalls and fixes
  9. 40:51Final tips and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.