Note: this code is compatible with Packer v1.6.x or later. For Packer v1.5.x or previous versions use this link
This repository contains HashiCorp Packer templates to deploy Windows Server 2019 in VMware vSphere (with vCenter), using the vsphere-iso builder.
These templates creates the Template (or VM) directly on the vSphere server and install the latest VMware Tools.
- autounattend.xml --> Answer file for unattended Windows setup
- credentials.json --> Credential file
- windows2019.json --> Windows Server 2019 Packer JSON file Base
Scripts:
- scripts/disable-network-discovery.cmd --> Script to Disable network discovery
- scripts/disable-server-manager.ps1 --> Script to Disable Server Manager
- scripts/disable-winrm.ps1 --> Script to Disable WinRM
- scripts/enable-rdp.cmd --> Script to Enable Remote Desktop
- scripts/enable-winrm.ps1 --> Script to Enable WinRM
- scripts/install-vm-tools.cmd --> Script to Install VMware Tools
- scripts/set-temp.ps1 --> Script to Set Temp Folders
Tested with VMware ESX 6.7 and VMware ESX 7.0 | User: Administrator | Password: S3cr3t0!
- Packer --> https://www.packer.io
execute packer build -var-file=credentials.json W10_Ent_x64.json