Code Monkey home page Code Monkey logo

windows-packer-templates's Introduction

Windows Templates for Packer Build Status

Using racker, this repo can generate dynamic packer templates for building Windows VMs.

Prerequisites:

  • packer
  • ruby with bundler (tested with 2.4.0)
  • Virtualbox or QEMU/KVM

Getting Started

  1. Install racker by running bundle install
  • Using the provided unattend-template.xml file, use sed or another method to replace the following strings and make a file called Autounattend.xml:
    • 111USERNAME - local user created to run packer scripts
    • 111PASSWORD - password for local user
    • 111ADMINPASS - password for built-in admin account
    • 111PRODUCTKEY - product key for version of Windows being installed
    • 111IMAGENAME - name of the version of Windows you want to install from the ISO .
    • 111TIMEZONE - your timezone.
  • Use racker to generate your packer template. The syntax is racker template_1.rb template_2.rb output.json
  • Build your packer images!

Required Environment Variables

  • VM_NAME - VM name
  • WINRM_USER - username for packer WinRM
  • WINRM_PASS - password for WinRM user
  • NUM_CPU - number of CPUs for VM
  • MB_RAM - MB of RAM for VM
  • UNATTEND_FILE - path to Autounattend.xml file created in previous steps.

Optional Environment variables

  • PACKER_TEMPLATE_ROOT - prefix for drivers/scripts folders
  • CLOUDBASE_CONFIG_ROOT - prefix for cloudbase_config folder
  • GUEST_FILES_ROOT - prefix for guest_os_files folder

References

windows-packer-templates's People

Contributors

scottpas avatar

Stargazers

Pho Hale avatar  avatar Tedd Schreiner avatar Ibrahim Mohamed avatar Luol avatar

Watchers

James Cloos avatar Matt Britt avatar Brock Palen avatar Bob Killen avatar  avatar  avatar

Forkers

thaihust

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.