Skip to content
Cloudbricks.dev logo

How to Create Images/Templates/VMs in vSphere - using Packer

A reference of the Linux, Windows, and ESXi builds covered in this Packer series, and the HCL file structure they share.

Kishore 1 min read

This series collects examples of using Packer and the Packer plugin for VMware vSphere to automate the creation of virtual machine images. The examples use the HashiCorp Configuration Language (HCL).

All the templates in this series share the same file structure, and each build differs only in the OS-specific template and kickstart/unattend files.

Linux distributions

Operating SystemVersion
VMware Photon OS5
Ubuntu Server22.04 LTS
Red Hat Enterprise Linux9
Red Hat Enterprise Linux8
Red Hat Enterprise Linux7
AlmaLinux OS9
AlmaLinux OS8
Rocky Linux9
Rocky Linux8
Oracle Linux9
Oracle Linux8
CentOS Stream9
CentOS Stream8
CentOS Linux7

Microsoft Windows

Operating SystemVersionEditionsExperience
Microsoft Windows Server2022Standard and DatacenterCore and Desktop
Microsoft Windows Server2019Standard and DatacenterCore and Desktop
Microsoft Windows11 22H2Professional and Enterprise—
Microsoft Windows10 22H2Professional and Enterprise—

VMware ESXi

Operating SystemVersion
VMware ESXi7
VMware ESXi8