Files
packstack-vagrant/packer/scripts/vbox.sh
Christian Berendt e342568a87 Add Packer template from b1-systems/packer-templates
This packer template is usded to create the packstack-vagrant
basebox and should be part of packstack-vagrant.

Change-Id: I8283faaeafb12b9c8be7c85b3fc9ee093cbf154e
2015-01-08 18:42:33 +01:00

13 lines
462 B
Bash

#!/bin/sh
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run --nox11
umount /mnt
rm -rf /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso
rm -f /home/vagrant/.vbox_version
if [[ $VBOX_VERSION = "4.3.10" ]]; then
ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
fi
yum -y remove gcc cpp kernel-devel kernel-headers perl