Skip to content

A collection of Packer templates used to create VM templates in VMware vSphere.

License

Notifications You must be signed in to change notification settings

joshtbernstein/packer-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A collection of Packer templates used to create VM templates in VMware vSphere.

The goal is to create master/gold image VM templates containing the latest OS updates, while making minimal changes to the installed OS.

Setup

Packer

Run packer init templates to install the third party Packer Windows Update Provisioner(https://github.com/rgl/packer-plugin-windows-update) plugin. This only needs to be done once.

Change Administrator Password (Optional)

The Administrator password is reset by Sysprep, but if you'd like to change the password that's used while building the VM templates, update the autounattend.xml files in the answer_files directory. There are two lines that needed to be changed; one sets the password and the other sets the password for use with automatic login.

You'll also need to update the os-admin-password variable in templates/windows-vsphere.json

It's probably more appropriate to update the unattend.xml answer files as those will set the password for cloned VMs.

Environment Settings

Copy templates/vsphere.example.json to templates/vsphere.json and update the variables to match your environment.

Usage

To build a Window Server 2019 template VM, run packer build -var-file=templates/vsphere.json -var-file=templates/windows-server-2019.json templates/windows-vsphere.json.

To build Window Server 2019 Core template VM, run packer build -var-file=templates/vsphere.json -var-file=templates/windows-server-2019core.json templates/windows-vsphere.json.

Contributing

Issues (or suggestions and questions) and PRs are welcome!

About

A collection of Packer templates used to create VM templates in VMware vSphere.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages