Sha256: 5dfe707bcd5e47849ed1775ca148ca275959c40c051cc6f7923b38d67fa934d0

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

#!/bin/bash

##
# Configure the relevant VM tools for this builder.
##

case $PACKER_BUILDER_TYPE in
    'virtualbox-iso')
        echo "Installing VirtualBox Guest Additions..."
        apt-get -qy install dkms
        mount -o loop /home/vagrant/VBoxGuestAdditions.iso /mnt
        sh /mnt/VBoxLinuxAdditions.run
        umount /mnt

        rm -f /home/vagrant/VBoxGuestAdditions.iso
    ;;
    'vmware-iso')
        echo "Installing VMware Tools..."

        apt-get -qy install open-vm-tools
    ;;
    *)
        printf "Nothing to do for the %s builder type.\n" $PACKER_BUILDER_TYPE
    ;;
esac

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boxes-2.0.2 scripts/vmtools.sh