1.7 KiB
Executable File
Build Vagrant box Debian 13 with virtualbox
Debian 13 Vagrant box builder (Packer) from the project Packer boxes Jeff Geerling, author of Ansible for DevOps
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_TOKENenvironment variable to be set); remove thevagrant-cloudpost-processor from the Packer template to build the box locally and not push it to Vagrant Cloud. You don't need to specify aversionvariable either, if not using thevagrant-cloudpost-processor.
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
Config
- Modifier
Usage
packer build -var 'version=1.0.0' box-config.json