if [[ $PACKER_BUILDER_TYPE =~ virtualbox ]]; then
yum -y install bzip2 net-tools
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
cd /tmp
mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt
rm -rf /home/vagrant/VBoxGuestAdditions_*.iso
fi

if [[ $PACKER_BUILDER_TYPE =~ vmware ]]; then
yum -y install net-tools
yum -y install epel-release
yum -y install open-vm-tools
fi

if [[ $PACKER_BUILDER_TYPE =~ virtualbox ]]; then
yum -y install bzip2 net-tools
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
cd /tmp
mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt
rm -rf /home/vagrant/VBoxGuestAdditions_*.iso
fi

if [[ $PACKER_BUILDER_TYPE =~ vmware ]]; then
yum -y install net-tools
mount -o loop /home/vagrant/linux.iso /mnt
cd /tmp
tar zxf /mnt/VMwareTools-*.tar.gz
umount /mnt
/tmp/vmware-tools-distrib/vmware-install.pl --default
rm -rf /tmp/vmware-tools-distrib
rm -rf /home/vagrant/linux.iso
fi

Revert "For Centos 7 added install of open-vm-tools (vmware recommended way)"
Revert "For Centos 7 added install of open-vm-tools (vmware recommended way)"

This reverts commit 5146a737619b30336b95ec9015a8455177f3fc16.
