mefellows / packer-community-templates

Packer Community Templates for Windows
MIT License
32 stars 3 forks source link

Packer Community Example Templates

Packer Community Templates for Windows environments to test/showcase many of the Windows-specific Builders and Provisioners.

Running

Windows Updates

Use the /answer_files/2012_r2/updates/Autounattend.xml file as a replacement in the floppy_files configuration item.

Sysprep

An example unattended sysprep file is automatically uploaded to c:/Windows/Temp/Autounattend_sysprep.xml which can be used in a provisioner to sysprep the machine. For example, you may replace the default shutdown_command in the OVF builder with the following:

"shutdown_command": "c:/windows/system32/sysprep/sysprep.exe /generalize /oobe /quiet /shutdown /unattend:c:/Windows/Temp/Autounattend_sysprep.xml",
"shutdown_timeout": "15m"

NOTE: This currently impacts the rsync (SSH) capability due to SIDs and such.

Credits

Thanks to Joe's joefitzgerald/packer-windows templates for the inspiration and basis for much of this work.