Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use open-vm-tools to install VMWare tools #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
ATLAS_TOKEN=
ATLAS_TOKEN=
DEVELOPER_PLAYBOOK=
ATLAS_BUILD_SLUG=
ATLAS_TOKEN=
ATLAS_BUILD_NUMBER=
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
source "https://rubygems.org"

gem "rake"
gem "json"
gem "dotenv"
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ GEM
remote: https://rubygems.org/
specs:
dotenv (2.0.2)
json (1.8.1)
rake (10.4.2)

PLATFORMS
ruby

DEPENDENCIES
dotenv
json
rake

BUNDLED WITH
Expand Down
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
require "rubygems"
require "bundler/setup"

require "dotenv"
require "json"
require "yaml"

Dotenv.load

DEFAULT_BASE_OS = "ubuntu-15.04"
DEFAULT_VIRT = "vmware"

Expand Down
12 changes: 3 additions & 9 deletions scripts/common/vmtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@ virtualbox-iso|virtualbox-ovf)
;;

vmware-iso|vmware-vmx)
mkdir -p /tmp/vmfusion;
mkdir -p /tmp/vmfusion-archive;
mount -o loop $HOME_DIR/linux.iso /tmp/vmfusion;
tar xzf /tmp/vmfusion/VMwareTools-*.tar.gz -C /tmp/vmfusion-archive;
/tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default;
umount /tmp/vmfusion;
rm -rf /tmp/vmfusion;
rm -rf /tmp/vmfusion-archive;
rm -f $HOME_DIR/*.iso;
apt-get install open-vm-tools;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apt-get install -y, no?

apt-get install open-vm-tools-dkms;
dpkg-reconfigure open-vm-tools-dkms;
;;

parallels-iso|parallels-pvm)
Expand Down