Created
May 22, 2016 11:47
-
-
Save fadur/3e3404155eef4b0d90e2f5427c15bcc0 to your computer and use it in GitHub Desktop.
vmware packer script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get clean | |
apt-get update | |
apt-get -y upgrade | |
apt-get purge open-vm-tools open-vm-tools-desktop | |
apt-get -y install build-essential linux-headers-$(uname -r) | |
cd /tmp | |
mkdir -p /mnt/cdrom | |
mount -o loop ~/linux.iso /mnt/cdrom | |
tar zxf /mnt/cdrom/VMwareTools-*.tar.gz -C /tmp/ | |
/tmp/vmware-tools-distrib/vmware-install.pl -d --force-install | |
rm /home/fadur/linux.iso | |
umount /mnt/cdrom | |
sed -i 's/answer AUTO_KMODS_ENABLED_ANSWER no/answer AUTO_KMODS_ENABLED_ANSWER yes/g' /etc/vmware-tools/locations | |
sed -i 's/answer AUTO_KMODS_ENABLED no/answer AUTO_KMODS_ENABLED yes/g' /etc/vmware-tools/locations | |
# Install NFS for Vagrant | |
apt-get install -y nfs-common |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment