Giter Club home page Giter Club logo

packer-templates's Introduction

Debian Packer Templates

Boxes description

The current and only template was created for Debian 8.8.0 VM boxes, I may add more in due course. The boxes are "vanilla" with a minimal setup, 512MB RAM, 1 CPU. These settings can be easily changed in vagrant. They are based on https://github.com/tech-angels/packer-templates - thanks guys.

Prerequisites

Configure the vagrant box

Edit the debian-8.json (or the other one you prefer) and check the variables at the beginning of the file.

Note:

To change the Debian version used go to http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/ or http://cdimage.debian.org/cdimage/archive/, find which net-inst version you want and copy its checksum from the SHA1SUMS file. Then edit the .json file and update these variables at the beginning of the .json file:

  • "iso_url": update the link to the iso file
  • "iso_checksum": insert the new MD5 checksum
  • "vm_name": update the version

Build vagrant box

$ packer build debian-8.json

or optionnaly, select only one provider, for example VirtualBox:

$ packer build -only virtualbox-iso debian-8.json

Install your new box

$ vagrant box add debian-8 ./packer_vmware-iso_vmware.box

or

$ vagrant box add debian-8 ./packer_virtualbox-iso_virtualbox.box

The VM image has been imported to vagrant, it's now available on your system.

Vagrant

Getting Started

To use this image with Vagrant, create a vagrant file (vagrant init), and use the newly created box:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "debian-8"

  # Make ssh login secure
  # config.ssh.private_key_path = '~/.ssh/id_rsa'
  #
  # [...]
end

And initialize the vm:

$ vagrant up --provider=virtualbox

The --provider option is only needed if another vagrant provider is available, like vmware_fusion.

Ignore vagrant boxes in git

$ echo ".vagrant/" >> .gitignore

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.