RepositoryShellUSUnited States
GE

geerlingguy/packer-boxes

Jeff Geerling's Packer build configurations for Vagrant boxes.

670stars
301forks
4issues
2views

Jeff Geerling's Vagrant Box Packer Builds

Validate Packer JSON files

This project contains the Packer build configurations for all of Jeff Geerling's (geerlingguy's) Vagrant Boxes. Each box builds a minimal base box for use with VirtualBox. Available boxes include:

All of these boxes are available as public, free Vagrant boxes and can be used with the command:

vagrant init geerlingguy/[box name here]

You can also fork this repository and customize a build configuration with your own Ansible roles and playbooks to build a fully custom Vagrant box using Packer. For one such example, see the Drupal VM Packer Build.

Requirements

The following software must be installed/present on your local machine before you can use Packer to build any of these Vagrant boxes:

Usage

Make sure all the required software (listed above) is installed, then cd into one of the box directories and run:

$ packer build -var 'version=1.2.0' box-config.json

After a few minutes, Packer should tell you the box was generated successfully, and the box was uploaded to Vagrant Cloud.

Note: This configuration includes a post-processor that pushes the built box to Vagrant Cloud (which requires a VAGRANT_CLOUD_TOKEN environment variable to be set); remove the vagrant-cloud post-processor from the Packer template to build the box locally and not push it to Vagrant Cloud. You don't need to specify a version variable either, if not using the vagrant-cloud post-processor.

Building all the boxes

Whenever VirtualBox is updated, it's best to re-build all the base boxes so they have the latest guest additions.

Assuming you have Ansible and Packer installed already, and you have a VAGRANT_CLOUD_TOKEN available in your environment, you can run the playbook to build and push updated versions for all the boxes:

ansible-playbook build-boxes.yml

You can also build and push just one box:

ansible-playbook build-boxes.yml -e "{'boxes':['debian10']}"

Testing built boxes

There's an included Vagrantfile that allows quick testing of the built Vagrant boxes. From the same box directory, run the following command after building the box:

$ vagrant up

Test that the box works correctly, then tear it down with:

$ vagrant destroy -f

License

MIT

Author

These configurations are maintained by Jeff Geerling, author of Ansible for DevOps.

Similar Projects

Discover other similar projects and AI models.

RepositoryShell
Nyr/openvpn-install

OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora

20.7k
Sep 22, 2026
RepositoryShell
angristan/openvpn-install

Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS, Arch Linux and more

16.2k
Oct 1, 2026
RepositoryShell
SuperManito/LinuxMirrors

GNU/Linux 更换系统软件源脚本及 Docker 安装与换源脚本

7.9k
Nov 19, 2026
RepositoryShell
spiritLHLS/ecs

VPS 融合怪服务器测评脚本 —— 更推荐使用无环境依赖的 Go 版本:https://github.com/oneclickvirt/ecs VPS Fusion Monster Server Test Script — we now recommend the Go version (zero external dependencies): https://github.com/oneclickvirt/ecs

7.4k
Nov 29, 2026
RepositoryShell
Nyr/wireguard-install

WireGuard road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora

4.9k
Sep 16, 2026
RepositoryShell
hwdsl2/wireguard-install

WireGuard VPN server installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE and Raspberry Pi OS. Includes interactive setup and client management.

3.8k
Nov 29, 2026
RepositoryShell
teddysun/lamp

Install LAMP (Linux + Apache + MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu

2.9k
Nov 29, 2026
RepositoryShell
spiritLHLS/Oracle-server-keep-alive-script

服务器资源占用脚本(甲骨文服务器保活脚本)(Oracle Server Keep Alive Script)

2.5k
Nov 13, 2026
RepositoryShell
iredmail/iRedMail

Full-featured, open source mail server solution for mainstream Linux/BSD distributions.

1.9k
Nov 27, 2026