Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Packer definitions for building minimal Vagrant baseboxes
Shell Ruby

Merge pull request #431 from chef/fedora-22

Add Fedora 22 box links
latest commit 04888f0df6
@cheeseplus cheeseplus authored
Failed to load latest commit information.
bin Fixing headless check
builds Remove subdirectories under `build/` as they are no longer used.
floppy Add build metadata to boxes and build artifacts.
http Merge pull request #418 from rickard-von-essen/fedora-22
scripts Update freebsd-update for 10.2
vagrantfile_templates [freebsd-*] Improve DRYness, correctness, & speed of FreeBSD templates.
.gitattributes Force CRLF on Autounattend files for Windows
.gitignore Add build metadata to boxes and build artifacts.
.travis.yml [TravisCI] Run `bin/bento normalize` in favor of Thor task.
Gemfile Remove Vagrant Bundler dependencies.
LICENSE [OC-1013] - move definitions from basebox project
MAINTAINERS.md Opscode -> Chefs and other minor stuff
NOTICE.md Opscode -> Chefs and other minor stuff
OLD-BOXES.md Updated README with CentOS 7.1 boxes
README.md Add Fedora 22 box links
Rakefile Adding s3 upload to Rakefile and add buildkite shell script
Thorfile Update Thorfile to run Packer commands in root of project.
build.sh Adding s3 upload to Rakefile and add buildkite shell script
buildkite.rb First stab at a buildkite script.
centos-5.11-i386.json Shortening vm_name to avoid Parallels box corruption
centos-5.11-x86_64.json Shortening vm_name to avoid Parallels box corruption
centos-6.7-i386.json CentOS 6.6 -> 6.7
centos-6.7-x86_64.json CentOS 6.6 -> 6.7
centos-7.1-x86_64.json Shortening vm_name to avoid Parallels box corruption
debian-6.0.10-amd64.json [debian-*] Improve DRYness, correctness, & speed of Debian templates.
debian-6.0.10-i386.json [debian-*] Improve DRYness, correctness, & speed of Debian templates.
debian-7.8-amd64.json [debian-*] Improve DRYness, correctness, & speed of Debian templates.
debian-7.8-i386.json Updates to support Packer 0.8.x.
debian-8.1-amd64.json [debian-*] Improve DRYness, correctness, & speed of Debian templates.
debian-8.1-i386.json [debian-*] Improve DRYness, correctness, & speed of Debian templates.
fedora-20-i386.json Shortening vm_name to avoid Parallels box corruption
fedora-20-x86_64.json Shortening vm_name to avoid Parallels box corruption
fedora-21-i386.json Shortening vm_name to avoid Parallels box corruption
fedora-21-x86_64.json Shortening vm_name to avoid Parallels box corruption
fedora-22-i386.json Add Fedora 22 boxes
fedora-22-x86_64.json Add Fedora 22 boxes
freebsd-10.2-amd64.json Rename freebsd-10.1 to freebsd-10.2
freebsd-10.2-i386.json Rename freebsd-10.1 to freebsd-10.2
freebsd-9.3-amd64.json [freebsd-*] Improve DRYness, correctness, & speed of FreeBSD templates.
freebsd-9.3-i386.json [freebsd-*] Improve DRYness, correctness, & speed of FreeBSD templates.
macosx-10.10.json [macosx-*] Increase disk_size to ~40G from ~20G.
macosx-10.7.json [macosx-*] Increase disk_size to ~40G from ~20G.
macosx-10.8.json [macosx-*] Increase disk_size to ~40G from ~20G.
macosx-10.9.json [macosx-*] Increase disk_size to ~40G from ~20G.
omnios-r151010j.json Shortening vm_name to avoid Parallels box corruption
opensuse-13.2-i386.json Shortening vm_name to avoid Parallels box corruption
opensuse-13.2-x86_64.json Shortening vm_name to avoid Parallels box corruption
oracle-5.11-i386.json Shortening vm_name to avoid Parallels box corruption
oracle-5.11-x86_64.json Shortening vm_name to avoid Parallels box corruption
oracle-6.6-i386.json Shortening vm_name to avoid Parallels box corruption
oracle-6.6-x86_64.json Shortening vm_name to avoid Parallels box corruption
rhel-5.11-i386.json Shortening vm_name to avoid Parallels box corruption
rhel-5.11-x86_64.json Shortening vm_name to avoid Parallels box corruption
rhel-6.6-i386.json Shortening vm_name to avoid Parallels box corruption
rhel-6.6-x86_64.json Shortening vm_name to avoid Parallels box corruption
rhel-7.1-x86_64.json Shortening vm_name to avoid Parallels box corruption
sles-11-sp2-i386.json Shortening vm_name to avoid Parallels box corruption
sles-11-sp2-x86_64.json Shortening vm_name to avoid Parallels box corruption
sles-11-sp3-i386.json Shortening vm_name to avoid Parallels box corruption
sles-11-sp3-x86_64.json Shortening vm_name to avoid Parallels box corruption
sles-12-x86_64.json Shortening vm_name to avoid Parallels box corruption
solaris-10.11-x86.json Shortening vm_name to avoid Parallels box corruption
solaris-11-x86.json Shortening vm_name to avoid Parallels box corruption
ubuntu-10.04-amd64.json Shortening vm_name to avoid Parallels box corruption
ubuntu-10.04-i386.json Shortening vm_name to avoid Parallels box corruption
ubuntu-12.04-amd64.json Shortening vm_name to avoid Parallels box corruption
ubuntu-12.04-i386.json Shortening vm_name to avoid Parallels box corruption
ubuntu-14.04-amd64.json Update to Ubuntu 14.04.3.
ubuntu-14.04-i386.json Update to Ubuntu 14.04.3.
ubuntu-14.10-amd64.json Shortening vm_name to avoid Parallels box corruption
ubuntu-14.10-i386.json Shortening vm_name to avoid Parallels box corruption
ubuntu-15.04-amd64.json Shortening vm_name to avoid Parallels box corruption
ubuntu-15.04-i386.json Shortening vm_name to avoid Parallels box corruption

README.md

Bento

Build Status

Bento is a project that encapsulates Packer templates for building Vagrant baseboxes. We use these boxes internally at Chef Software, Inc. for testing Hosted Chef, Chef Server and our open source cookbooks via test-kitchen.

This project is managed by the CHEF Release Engineering team. For more information on the Release Engineering team's contribution, triage, and release process, please consult the CHEF Release Engineering OSS Management Guide.

Current Baseboxes

The following baseboxes are publicly available and were built using this project. Note that our baseboxes do not include Chef Client. Vagrant can be instructed to install Chef at runtime using the vagrant-omnibus plugin.

These baseboxes are currently hosted via the Atlas bento organization

VirtualBox (5.0.2) VMware (7.1.2) Parallels (11.0.0)
centos-5.11 i386, x86_64 i386, x86_64 i386, x86_64
centos-6.7 i386, x86_64 i386, x86_64 i386, x86_64
centos-7.1 x86_64 x86_64 x86_64
debian-6.0.10 i386, amd64 i386, amd64 i386, amd64
debian-7.8 i386, amd64 i386, amd64 i386, amd64
debian-8.1 i386, amd64 i386, amd64 i386, amd64
fedora-21 i386, x86_64 i386, x86_64 i386, x86_64
fedora-22 x86_64 x86_64 x86_64
freebsd-9.3 amd64 amd64 amd64
freebsd-10.2 amd64 amd64 amd64
opensuse-13.2 i386, x86_64 i386, x86_64 i386, x86_64
ubuntu-10.04 i386, amd64 i386, amd64 i386, amd64
ubuntu-12.04 i386, amd64 i386, amd64 i386, amd64
ubuntu-14.04 i386, amd64 i386, amd64 i386, amd64
ubuntu-15.04 i386, amd64 i386, amd64 i386, amd64

Build Notes

  • Boxes built on OSX 10.10.5 hosts
  • If you're using the Vagrant VMWare Fusion provider, using vagrant box add --provider vmware_desktop ... will work for these boxes. Using --provider vmware_fusion, will not.

Older Baseboxes

Older baseboxes include Chef and therefore are not compatible with some new plugins. The full list of old boxes are available in the old boxes file.

Build Your Own Boxes

First, install Packer and then clone this project.

Inside the packer directory, a JSON file describes each box that can be built. You can use packer build to build the boxes.

$ packer build debian-7.8.0-i386.json

If you want to use a another mirror site, use mirror variable.

$ packer build -var 'mirror=http://ftp.jaist.ac.jp/pub/Linux/debian-cdimage/release' debian-7.8.0-i386.json

If you only have VMware or VirtualBox available, you may also tell Packer to build only that box.

$ packer build -only=virtualbox-iso debian-7.8.0-i386.json

Congratulations! You now have box(es) in the ../builds directory that you can then add to Vagrant and start testing cookbooks.

Proprietary Boxes

Mac OS X (10.7, 10.8, 10.9, 10.10), Red Hat Enterprise Linux, and SUSE Linux Enterprise Server templates are provided. However, their ISOs are not publicly retrievable and as such, the URLs in those templates are bogus. For RHEL and SLES, you should substitute your server where you host the ISOs, using the mirror variable as above.

Mac OS X Boxes

To build a Mac OS X box, you will need to start with an installer for your desired version of OS X. You will then need to use Tim Sutton's osx-vm-templates/) to modify that installer for use by packer. The output of that build will include the location of the ISO and its checksum, which you can substitute into your packer build command, e.g.:

$ packer build -var 'iso_checksum=<checksum>' -var 'iso_url=<iso_url>' macosx-10.9.json

There is a known issue where test-kitchen starts a Mac OS X box correctly, but vagrant up fails due to the absence of the HGFS kernel module. This is due to a silent failure during the VMware tools installation and can be corrected by installing the VMware tools on the Mac OS X box manually.

Note that, while it is possible to build OS X boxes for VirtualBox, it may not be ideal. VirtualBox provides no "guest additions" for OS X. Boxes consequently have limited networking configurability and must rely on rsync for folder syncing. VMWare, when available, is generally preferred.

Windows Boxes

Packer does not yet support Windows, so veewee definitions are still used for building those boxes. You must build these boxes yourself due to licensing constraints. You can build these as follows:

$ bundle install
$ bundle exec veewee vbox build [definition-name]

These veewee definitions are lightly maintained. For other approaches to building Windows boxes, please see the following community projects:

Special Note About Building from Windows Hosts

When building boxes from a Windows host system, you must ensure that kickstart configuration files (ks.cfg for RHEL based systems) and preseed files (preseed.cfg for Debian based systems) have Unix line endings (i.e. lines end with LF character only). Moreover, it's also a good idea to have *.sh scripts with Unix line endings too.

When these files have Windows line endings, the group creation can fail in the pre-seed phase and in turn, prevents the user vagrant to be created correctly. This ultimately results in Packer not being able to connect to the newly booted up machine with an error message that looks like this:

==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Error waiting for SSH: handshake failed: ssh: unable to authenticate, attempted methods [none password], no support

Since Packer tries to log in with user vagrant but it was not created successfully in the pre-seed phase, it is unable to connect to the machine and the packaging process stops.

By default, when cloning this repository, git should normalize ks.cfg, preseed.cfg and *.sh to Unix line endings and *.bat to Windows line endings, thanks to the .gitattributes file in the repository. However, if it's not the case because you have overridden line-ending conversion in your own git configuration, convert the offending files so they have the correct line endings.

Bugs and Issues

Please use GitHub issues to report bugs, features, or other problems. Please note: the JIRA issue tracker is no longer being used.

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-2015, 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.
Something went wrong with that request. Please try again.