Skip to content

Commit

Permalink
* script to install vmware tool
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyxu committed Nov 7, 2013
1 parent c737fe1 commit 12a025e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/scripts/vmware.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh

# Mount setup file
mkdir -p /mnt/vmware
mount -o loop /home/vagrant/linux.iso /mnt/vmware

# Extract setup setup
cd /tmp
tar xzf /mnt/vmware/VMwareTools-*.tar.gz

# Unmount setup file
umount /mnt/vmware
rm -f /home/vagrant/linux.iso

# Apply patch
#cd /tmp/vmware-tools-distrib/
#wget --no-check-certificate https://raw.github.com/ebdevrepo/bin/master/vmware9.compat_mm.patch
#wget --no-check-certificate https://raw.github.com/ebdevrepo/bin/master/vmware_hgfs_fix.sh
#chmod +x vmware_hgfs_fix.sh
#./vmware_hgfs_fix.sh

# Execute setup
/tmp/vmware-tools-distrib/vmware-install.pl --default

# Clean
rm -fr /tmp/vmware-tools-distrib
2 changes: 2 additions & 0 deletions templates/ubuntu.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"builders": [
{
"type": "vmware",
"guest_os_type": "ubuntu-64",
"tools_upload_flavor": "linux",
"iso_url": "http://releases.ubuntu.com/saucy/ubuntu-13.10-server-amd64.iso",
"iso_checksum": "2bead0f1f451734461ff88f913f4b02ba9e873b15f097a5c231bdb3763ea42e3",
"iso_checksum_type": "sha256",
Expand Down

0 comments on commit 12a025e

Please sign in to comment.