Building a Windows Golden Image with HashiCorp Packer
Table of Contents
Why I Switched to Packer for Golden Images
How Packer Works with Nutanix AHV
Prerequisites
Requirement
Notes
Verify Packer Installation
Project Structure
Installing the Nutanix Packer Plugin
Preparing the Autounattend.xml
Writing the Packer HCL Template
Variables File
Provisioners – Hardening and Software Installation
01-install-virtio.ps1
02-windows-update.ps1
03-install-cloudbase-init.ps1
04-harden-os.ps1
05-install-base-tools.ps1
99-sysprep.ps1
Running the Packer Build
Expected Output
Using the Golden Image in AHV
Create a VM Directly from the Image
Use in a Blueprint
CI/CD Pipeline for Image Rebuilds
Versioning and Lifecycle Management
Naming Convention
Retention Policy
Troubleshooting
Symptom
Cause
Fix
Next Steps
PreviousWriting a Blueprint for Windows VM AutomationNextGitLab CI/CD Integration with Nutanix Blueprint
Last updated