Hello everyone,
Seems to be a bug but I just can not believe that my simple use case fails for everyone, I must be doing something terribly wrong. Packer version I am using is 0.11.0 and VirtualBox version is 5.1.8r111374.
I would like to pack an image based on ubuntu 16.04.1 iso with virtualbox-iso provider and provision a few packages (jq and subversion) using shell provisioner (by calling apt). After Vagrant Box is produced, I use that box with Vagrant, sshing into the box shows that the installed packages are not there!!
I thought that this could be file system sync issue and added a few sync commands around and then wait for 30 seconds with no luck.
Please find the repo reproducing the issue below. I am also attaching the packer log file, it shows no error and tells that the packages installed OK.
Clone the repo below and issue the commands in order to reproduce the problem.
Repo:
Commands:
$ PACKER_LOG=1 packer build ubuntu1604.json
$ vagrant up virtualbox
$ vagrant ssh virtualbox
VM$ jq
The program 'jq' is currently not installed. You can install it by typing:
sudo apt install jq
VM$ svn
The program 'svn' is currently not installed. You can install it by typing:
sudo apt install subversion