phedders / packer-windows

Builds an up-to-date, fully patched Windows 10 and Server 2019 image for both Vagrant and Libvirt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows / KVM packer templates

Builds Win10 (latest) and Server 2019 (Latest)

This will sysprep on first boot after packaging. This can be changed by modifying the shutdown command back to the following:

"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\""

Prereqs

  • KVM/Libvirt
  • Packer

Building

Windows 10 (1904)

packer build packer.json

Server 2019

packer build -var="name=windows_server_2019" -var "autounattend=./answer_files/2019/Autounattend.xml" -var="iso_checksum=645477fc661703f537a112cf1a84ea655e281082" -var="iso_url=https://software-download.microsoft.com/download/sg/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso" packer.json

Building faster

  • Comment out everything in compact.bat - you'll save about 10-20 minutes on build time

About

Builds an up-to-date, fully patched Windows 10 and Server 2019 image for both Vagrant and Libvirt

License:The Unlicense


Languages

Language:PowerShell 81.8%Language:Shell 10.9%Language:Batchfile 7.3%