Giter VIP home page Giter VIP logo

packer-templates's Introduction

Templates for Packer (Virtualbox, Parallels and Hyper-V support)

Introduction

This repository contains Windows templates that can be used to create boxes for Vagrant using Packer. It is inspired by https://github.com/mwrock/packer-templates and by https://github.com/MattHodge/PackerTemplates. I was a bit stuck until I read https://hodgkins.io/best-practices-with-packer-and-windows. My previous approach of stuffing all box creating effort in 1 file was very cumbersome. Turns out you can use a modular approach with Packer by creating multiple artifacts and chain them together.

How to

Prerequisites

The Windows boxes are created with Packer version 0.12.2 and are using WinRM (no SSH). Vagrant, Packer and Virtualbox or Parallels.

Linux: Install them with your package provider.

MacOS:

  • You will need Parallels Desktop 12. Unfortunately you need the Pro Edition for Vagrant support!
  • Install with Brew:
brew cask install vagrant
vagrant plugin install vagrant-parallels

Windows: You can install the prerequisites with packagemanagement:

Install-Package -ProviderName Chocolatey -ForceBootstrap -Force vagrant,virtualbox,packer

Clone and run

Clone the repository:

git clone https://github.com/jacqinthebox/packer-templates.git; cd packer-templates

Save the Packer executable in this folder.

How to create a Parallels Windows 2016 box:

./example_build_parallels_windows_2016.sh

How to create a Windows 2016 box for VirtualBox. This also exports a Hyper-V box. For Hyper-V you need to add this plugin to the packer-templates folder.

./example_build_vbox_windows_2016.sh

Adding the box to Vagrant

vagrant box add --name windows_server_2016 windows2016_parallels.box

packer-templates's People

Contributors

azurearchitects avatar hirsaeki-mki avatar jacqinthebox 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.