lskramarov / packer-debian_7

Packer configuration for building a Debian 7.6.0 VirtualBox image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debian 7.6.0 Packer template

This template builds a VirtualBox image based on Debian Wheezy 7.6.0. The VM is configured to use 512 MB of RAM and 1 CPU. Those settings, as many others, can be changed in the debian-7.6.0-wheezy.json file.

iso_url may be: "iso_url": "D:\debian-7.8.0-amd64-netinst.iso", "iso_url": "http://cdimage.debian.org/debian-cd/7.8.0/amd64/iso-cd/debian-7.8.0-amd64-netinst.iso",

Usage

  1. Be sure you have Packer and VirtualBox installed in your system.
  2. Clone this repository and go into it.
    • git clone git@github.com:jose-lpa/packer-debian_7.6.0.git
    • cd packer-debian_7.6.0.git
  3. Run Packer to build the VM.
    • packer build debian-7.6.0-wheezy.json

A VM box file should be created in the working directory under the name packer_virtualbox-iso_virtualbox.box.

Running the built VM

You can now use Vagrant to run it by creating a Vagrantfile with this content:

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

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "debian-7.6.0"
  config.vm.box_url = "file://packer_virtualbox-iso_virtualbox.box"
end

And leverage and access the VM as usual with Vagrant: vagrant up vagrant ssh

Credits

Based on the nice template written by Tech-Angels.

About

Packer configuration for building a Debian 7.6.0 VirtualBox image.

License:MIT License


Languages

Language:Shell 76.1%Language:Ruby 23.9%