Giter Site home page Giter Site logo

joshtbernstein / packer-templates Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7 KB

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

License: MIT License

Batchfile 24.66% PowerShell 59.75% HCL 15.60%
packer packer-template

packer-templates's Introduction

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!

packer-templates's People

Contributors

joshtbernstein avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.