packer: use latest VirtualBox Guest Additions ISO
authorMichael Prokop <mika@grml.org>
Tue, 21 Nov 2017 15:10:23 +0000 (16:10 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 21 Nov 2017 15:10:23 +0000 (16:10 +0100)
commit3314417c2d2dc914523186434b3352637ef7ea12
treeceb6aeddc1b6a1a67c1903eb6cef7f1137caf734
parentecff5b9df5abd9a896247d71d4a05291c661705b
packer: use latest VirtualBox Guest Additions ISO

Using the default local Virtualbox Guest Additions ISO will result
in different builds depending on the system being used.
My Debian jessie system with Virtualbox 5.1.8-dfsg-6~bpo8+2
from jessie-backports/contrib is actually too old to build
stretch and newer as the kernel module can't be compiled.
So instead use a specific VBoxGuestAdditions ISO, currently
being the one recommended by upstream on https://www.virtualbox.org/

While at it:

* increase VM memory size from 512MB to 1GB during build, otherwise
  we can't even use a temporary apt cache directory and will fail with OOM

* check for build errors in virtualbox logs

* /var/log/VBoxGuestAdditions.log doesn't necessarily exist,
  so instead display the last 10 lines of the according log files
  that actually exist
packer/debian64.json
packer/debian64_provision.sh