Created
January 30, 2015 23:25
-
-
Save dragon788/2234db49a5a9205f4d03 to your computer and use it in GitHub Desktop.
post-build Packer provisioning
This file contains 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
#!/bin/bash -x | |
mkdir /mnt/cdrom | |
mount -o loop linux.iso /mnt/cdrom | |
cp /mnt/cdrom/VMwareTools*.gz /tmp/ | |
cd /tmp | |
tar -zxvf VMwareTools* | |
cd vmware-tools-distrib | |
./vmware-install.pl --default EULA_AGREED=yes | |
umount /mnt/cdrom | |
cd | |
rm /tmp/VMwareTools-version.tar.gz | |
rm -rf /tmp/vmware-tools-distrib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment