Skip to content

Instantly share code, notes, and snippets.

@knu2xs
Created February 18, 2017 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save knu2xs/cb89c3b4b552acf8366a1cab6db5e337 to your computer and use it in GitHub Desktop.
Save knu2xs/cb89c3b4b552acf8366a1cab6db5e337 to your computer and use it in GitHub Desktop.
Packer + Vagrant on Ubuntu 16.04.1 LTS

Install Packer

wget https://releases.hashicorp.com/packer/0.12.0/packer_0.12.0_linux_amd64.zip
unzip packer_0.12.0_linux_amd64.zip -d packer
sudo mv packer /usr/local/
echo 'export PATH="$PATH:/usr/local/packer"' >> sudo /etc/environment
source /etc/environment

http://howtoprogram.xyz/2016/11/29/install-packer-ubuntu-16-04-1-lts-xenial-xerus/

Install Vagrant

Install VirtualBox

sudo touch /etc/apt/sources.list.d/virtualbox.sources.list
echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> sudo /etc/apt/sources.list.d/virtualbox.sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-5.1

http://tecadmin.net/install-oracle-virtualbox-on-ubuntu/#

@schnatterer
Copy link

schnatterer commented Jun 12, 2018

Hashicorp also provides digital signatures for Packer artifacts. If you want to check the integrity of your files you should verify they are properly signed like so, for example:

$ gpg --search-keys  security@hashicorp.com  
# Pick the correct one
$ wget https://releases.hashicorp.com/packer/1.2.4/packer_1.2.4_linux_amd64.zip
$ wget https://releases.hashicorp.com/packer/1.2.4/packer_1.2.4_SHA256SUMS.sig
$ wget https://releases.hashicorp.com/packer/1.2.4/packer_1.2.4_SHA256SUMS
$ gpg --verify packer_1.2.4_SHA256SUMS.sig packer_1.2.4_SHA256SUMS
# Should return 0 and indicate a `Good signature from "HashiCorp Security <security@hashicorp.com>"'
cat packer_1.2.4_SHA256SUMS | grep packer_1.2.4_linux_amd64.zip | sha256sum -c
# Should return 0 and `packer_1.2.4_linux_amd64.zip: OK`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment