All Projects → chef → Bento

chef / Bento

Licence: apache-2.0
Packer templates for building minimal Vagrant baseboxes for multiple platforms

Programming Languages

shell
77523 projects
ruby
36898 projects - #4 most used programming language
powershell
5483 projects
HTML
75241 projects

Projects that are alternatives of or similar to Bento

Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (-91.98%)
Mutual labels:  oracle, vmware, packer, ubuntu, centos, freebsd, rhel, vagrant, virtualbox
insaneworks-packer-template
CentOS 7-8 8Stream / AlmaLinux 8 / FreeBSD 12 - 13 x64 + VirtualBox / VMWare for Packer Template + FreeBSD 13 / AlmaLinux 9 + Parallels
Stars: ✭ 38 (-98.99%)
Mutual labels:  freebsd, vagrant, packer, virtualbox, vmware, centos, parallels
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (-99.34%)
Mutual labels:  vagrant, packer, virtualbox, vmware, centos, redhat
packer-ubuntu
No description or website provided.
Stars: ✭ 29 (-99.23%)
Mutual labels:  vagrant, packer, ubuntu, virtualbox, vmware
Packer Centos 6
This build has been moved - see README.md
Stars: ✭ 78 (-97.94%)
Mutual labels:  vmware, packer, centos, vagrant, virtualbox
packer-templates
Packer templates for creating Amazon EC2 images, Proxmox templates and Vagrant boxes
Stars: ✭ 70 (-98.15%)
Mutual labels:  vagrant, packer, ubuntu, vmware, packer-templates
packer-centos
Create CentOS images for different hypervisors with Packer
Stars: ✭ 18 (-99.52%)
Mutual labels:  vagrant, packer, virtualbox, vmware, centos
Serverfarmer
Manage multiple servers with different operating systems, configurations, requirements etc. for many separate customers in an outsourcing model.
Stars: ✭ 122 (-96.77%)
Mutual labels:  redhat, ubuntu, centos, freebsd, rhel
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (-86.9%)
Mutual labels:  packer, ubuntu, centos, vagrant, virtualbox
Ansible Role Packer rhel
Ansible Role - Packer RHEL/CentOS Configuration for Vagrant VirtualBox
Stars: ✭ 45 (-98.81%)
Mutual labels:  redhat, packer, centos, rhel, virtualbox
Packer Templates
Stars: ✭ 90 (-97.62%)
Mutual labels:  redhat, packer, ubuntu, vagrant, virtualbox
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (-97.33%)
Mutual labels:  vmware, packer, ubuntu, vagrant, virtualbox
Osx Vm Templates
macOS templates for Packer and VeeWee.
Stars: ✭ 1,050 (-72.21%)
Mutual labels:  vmware, packer, vagrant, virtualbox
Packer Templates
Packer templates for Vagrant base boxes
Stars: ✭ 471 (-87.54%)
Mutual labels:  vmware, packer, vagrant, virtualbox
ansible-role-test-vms
DEPRECATED - A Vagrant configuration to test Ansible roles against a variety of Linux distributions.
Stars: ✭ 42 (-98.89%)
Mutual labels:  vagrant, virtualbox, vmware, centos
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (-90.98%)
Mutual labels:  redhat, ubuntu, centos, rhel
Postinstall
💻 Bash Script to automate post-installation steps
Stars: ✭ 104 (-97.25%)
Mutual labels:  redhat, ubuntu, centos, freebsd
Oracle Java
Ansible role to install Oracle Java 8/11 on Debian and RedHat based distributions.
Stars: ✭ 144 (-96.19%)
Mutual labels:  oracle, redhat, ubuntu, centos
Vagrant Boxes
baseboxes build with packer.io for use with vagrant
Stars: ✭ 291 (-92.3%)
Mutual labels:  vmware, packer, vagrant, virtualbox
packer-FreeBSD
Build a FreeBSD VM for Vagrant using packer
Stars: ✭ 23 (-99.39%)
Mutual labels:  freebsd, vagrant, packer, virtualbox

Bento

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. These published boxes serve as the default boxes for kitchen-vagrant.

Using Public Boxes

Adding a bento box to Vagrant

$ vagrant box add bento/ubuntu-18.04

Using a bento box in a Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-18.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 18.04 box for only the VirtualBox provider

$ cd packer_templates/ubuntu
$ packer build -only=virtualbox-iso ubuntu-18.04-amd64.json

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

$ cd packer_templates/debian
$ packer build debian-11.2-i386.json

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

$ cd packer_templates/centos
$ packer build -except=parallels-iso,vmware-iso centos-7.7-x86_64.json

To use an alternate mirror

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

To build a Windows 10 Enterprise Gen 2 box for the Hyper-V provider

$ cd packer_templates/windows
$ packer build windows-10gen2.json

If the build is successful, your 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-18.04'

KVM/qemu support for Windows

You must download the iso image with the Windows drivers for paravirtualized KVM/qemu hardware. You can do this from the command line: wget -nv -nc https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso -O virtio-win.iso.

You can use the following sample command to build a KVM/qemu Windows box:

packer build --only=qemu --var virtio_win_iso=~/virtio-win.iso windows-2019.json

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: 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.

Networking/Firewalls

Most of the providers expect unrestricted access to networking in order to build as expected. We can't enumerate all possible firewall configurations but include some snippets below that might be useful to users.

Windows

$VS = "Standardswitch"
$IF_ALIAS = (Get-NetAdapter -Name "vEthernet ($VS)").ifAlias
New-NetFirewallRule -Displayname "Allow incomming from $VS" -Direction Inbound -InterfaceAlias $IF_ALIAS -Action Allow

Hyper-V Generation 2 VM's

Hyper-V Gen 2 VMs do not support floppy drives. If you previously provided resources using a floppy drive, you must add those files to your Gen 2 iso images, in particular:

  • autounattend.xml: The Gen 2 autounattend.xml file supports EFI partitions. Update the autounattend.xml with the correct Windows version for your systems and ensure that the partitions are correct for your situation. You also need to manage the driver disk that holds the hyper-v guest services drivers and adjust the autounattend.xml file as appropriate.
  • base_setup.ps1

Bugs and Issues

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

Related projects

A huge thank you to these related projects from which we've taken inspiration and often used as a source for workarounds in complex world of base box building.

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!

Copyright 2012-2021, Chef Software, Inc. (<[email protected]>)
Copyright 2011-2012, Tim Dysinger (<[email protected]>)

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].