Skip to content

Latest commit

History

448 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

packer-templates

Travis

Packer templates for Vagrant base boxes

Usage

Clone the repository:

$ git clone https://github.com/kaorimatz/packer-templates && cd packer-templates

Build a machine image from the template in the repository:

$ packer build -only=virtualbox-iso archlinux-x86_64.json

Add the built box to Vagrant:

$ vagrant box add archlinux-x86_64 archlinux-x86_64-virtualbox.box

Configuration

You can configure each template to match your requirements by setting the following user variables.

User VariableDefault ValueDescription
compression_level6Documentation
cpus1Number of CPUs
disk_size40000Documentation
headless0Documentation
memory512Memory size in MB
mirrorA URL of the mirror where the ISO image is available

Example

Build an uncompressed Arch Linux vagrant box with a 4GB hard disk using the VirtualBox provider:

$ packer build -only=virtualbox-iso -var compression_level=0 -var disk_size=4000 archlinux-x86_64.json

Pre-built Boxes

You can also use the pre-built boxes hosted on Atlas.

$ vagrant box add kaorimatz/archlinux-x86_64

About

Packer templates for Vagrant base boxes

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages