Packer templates for building minimal Vagrant baseboxes
Shell Ruby PowerShell Batchfile
Latest commit a1f7e38 Oct 17, 2017 @cheeseplus cheeseplus Merge pull request #916 from chef/fix-912
Fix #912 - remove unneeded script
Permalink
Failed to load latest commit information.
_common Set default HOME_DIR in virtualbox.sh Oct 7, 2017
builds Remove subdirectories under `build/` as they are no longer used. Jun 27, 2015
centos Fix #912 - remove unneeded script Oct 17, 2017
debian Support Debian 9.2 point release Oct 12, 2017
fedora Updating all templates for Packer 1.1.0 Sep 16, 2017
freebsd Merge pull request #905 from chef/expect-disconnect Sep 22, 2017
macos Updating all templates for Packer 1.1.0 Sep 16, 2017
opensuse Updating all templates for Packer 1.1.0 Sep 16, 2017
oraclelinux Updating all templates for Packer 1.1.0 Sep 16, 2017
rhel Updating all templates for Packer 1.1.0 Sep 16, 2017
sles Merge pull request #911 from chef/fix-909 Oct 4, 2017
solaris Updating all templates for Packer 1.1.0 Sep 16, 2017
ubuntu Merge pull request #905 from chef/expect-disconnect Sep 22, 2017
windows Update templates to reflect re-organization Aug 31, 2017
.gitattributes Force CRLF on Autounattend files for Windows Feb 23, 2014
.gitignore Moving boostrap.sh to bento-ya Aug 30, 2017
.travis.yml Update packer version for TravisCI, remove old build scripts Aug 28, 2017
CHANGELOG.md Release 201708.22.0 Aug 24, 2017
Gemfile Chefstyle and fail if build_box not used correctly (#770) Mar 13, 2017
LICENSE [OC-1013] - move definitions from basebox project Jul 16, 2012
MAINTAINERS.md Update templates to reflect re-organization Aug 31, 2017
NOTICE.md Opscode -> Chefs and other minor stuff Aug 7, 2015
README.md Adding missing cd command to readme Sep 12, 2017
Rakefile Updating rake tasks and build order Aug 24, 2017
builds.yml Bump for 7.4 Sep 15, 2017

README.md

Bento

Build Status

Bento is a project that encapsulates Packer templates for building Vagrant base boxes. A subset of templates are built and published to the bento org on Vagrant Cloud. The boxes also serve as default boxes for kitchen-vagrant.

Using Public Boxes

Adding a bento box to Vagrant

$ vagrant box add bento/ubuntu-16.04

Using a bento box in a Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-16.04"
end

Building Boxes

Requirements

*NOTE: support for these providers is considered experimental and corresponding Vagrant Cloud images may or may not exist.

Using packer

To build an Ubuntu 16.04 box for only the VirtualBox provider

$ cd ubuntu
$ packer build -only=virtualbox-iso ubuntu-16.04-amd64.json

To build Debian 9.1 32bit boxes for all possible providers (simultaneously)

$ cd debian
$ packer build debian-9.1-i386.json

To build CentOS 7.3 boxes for all providers except VMware and Parallels

$ cd centos
$ packer build -except=parallels-iso,vmware-iso centos-7.3-x86_64.json

To use an alternate mirror

$ cd fedora
$ packer build -var 'mirror=http://mirror.utexas.edu/fedora/linux' fedora-26-x86_64.json

If the build is successful, ready to import box files will be in the builds directory at the root of the repository.

*NOTE: box_basename can be overridden like other Packer vars with -var 'box_basename=ubuntu-16.04'

Proprietary Templates

Templates for operating systems only available via license or subscription are also available in the repository, these include but are not limited to: Mac OS X, Red Hat Enterprise Linux, and SUSE Linux Enterprise. As the ISOs are not publicly available the URL values will need to be overridden as appropriate. We rely on the efforts of those with access to licensed versions of the operating systems to keep these up-to-date.

macOS / OSX

See our wiki page

Windows

The project does not include many definitions for building Windows boxes. For other approaches to building Windows boxes, please see the following community projects:

Bugs and Issues

Please use GitHub issues to report bugs, features, or other problems.

License & Authors

These basebox templates were converted from veewee definitions originally based on work done by Tim Dysinger to make "Don't Repeat Yourself" (DRY) modular baseboxes. Thanks Tim!

Mac OS X templates were adopted wholesale from Fletcher Nichol's packer templates.

Copyright 2012-2017, Chef Software, Inc. (<legal@chef.io>)
Copyright 2011-2012, Tim Dysinger (<tim@dysinger.net>)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.