Current ElementaryOS Version Used: 0.4
The following software must be installed on your local machine before you can use Packer to build the Vagrant box file:
Make sure all the required software (listed above) is installed, then cd
to the root directory and run:
packer build elementaryos-0.4-amd64.json
After a few minutes, Packer should tell you the box was generated successfully.
There's an included Vagrantfile that allows to provision the built Vagrant box. Ansible is used for provisioning, using roles from Ansible-Galaxy. From the same directory of the Vagrantfile, run the following command for downloading the necessary roles:
ansible-galaxy install -r requirements.yml
Then, run these commands for provisioning the machine (you may want to edit the file provisioning/vars/main.yml
):
vagrant box add ./build/elementaryos-0.4-amd64.box fbertola/elementaryos-0.4-amd64 -f
vagrant up virtualbox --provider=virtualbox