You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/04/10 23:59:28 UTC

[28/50] git commit: updated refs/heads/ui-vm-affinity to b6c354a

CLOUDSTACK-1867: Install vmwaretools while buildling systemvms

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/26d772f7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/26d772f7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/26d772f7

Branch: refs/heads/ui-vm-affinity
Commit: 26d772f74054962cf847336d0680eff946647ef9
Parents: 9eaef0e
Author: Rohit Yadav <bh...@apache.org>
Authored: Wed Apr 10 16:06:06 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Wed Apr 10 16:06:54 2013 +0530

----------------------------------------------------------------------
 .../definitions/systemvmtemplate/postinstall.sh    |   17 +++++++++++++-
 .../definitions/systemvmtemplate64/postinstall.sh  |   17 +++++++++++++-
 2 files changed, 30 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/26d772f7/tools/appliance/definitions/systemvmtemplate/postinstall.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate/postinstall.sh b/tools/appliance/definitions/systemvmtemplate/postinstall.sh
index 5d529de..bf593b6 100644
--- a/tools/appliance/definitions/systemvmtemplate/postinstall.sh
+++ b/tools/appliance/definitions/systemvmtemplate/postinstall.sh
@@ -50,8 +50,6 @@ install_packages() {
   echo "openswan openswan/install_x509_certificate seen true" | debconf-set-selections
   apt-get --no-install-recommends -q -y --force-yes install openswan
 
-  # vmware tools
-  apt-get --no-install-recommends -q -y --force-yes install open-vm-tools
   # xenstore utils
   apt-get --no-install-recommends -q -y --force-yes install xenstore-utils libxenstore3.0
   # keepalived and conntrackd for redundant router
@@ -64,6 +62,21 @@ install_packages() {
   echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | debconf-set-selections
   echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | debconf-set-selections
   apt-get --no-install-recommends -q -y --force-yes install iptables-persistent
+
+  # vmware tools
+  # uncomment for opensource vmware tool:
+  #   apt-get --no-install-recommends -q -y --force-yes install open-vm-tools
+  apt-get --no-install-recommends -q -y --force-yes install build-essential gcc linux-headers-`uname -r`
+  PREVDIR=$PWD
+  cd /opt
+  wget http://people.apache.org/~bhaisaab/cloudstack/VMwareTools-9.2.1-818201.tar.gz
+  tar xzf VMwareTools-9.2.1-818201.tar.gz
+  rm VMwareTools-*.tar.gz
+  cd vmware-tools-distrib
+  ./vmware-install.pl -d
+  cd $PREV
+  rm -fr /opt/vmware-tools-distrib
+  apt-get -q -y --force-yes purge build-essential gcc
 }
 
 setup_accounts() {

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/26d772f7/tools/appliance/definitions/systemvmtemplate64/postinstall.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate64/postinstall.sh b/tools/appliance/definitions/systemvmtemplate64/postinstall.sh
index 5d529de..bf593b6 100644
--- a/tools/appliance/definitions/systemvmtemplate64/postinstall.sh
+++ b/tools/appliance/definitions/systemvmtemplate64/postinstall.sh
@@ -50,8 +50,6 @@ install_packages() {
   echo "openswan openswan/install_x509_certificate seen true" | debconf-set-selections
   apt-get --no-install-recommends -q -y --force-yes install openswan
 
-  # vmware tools
-  apt-get --no-install-recommends -q -y --force-yes install open-vm-tools
   # xenstore utils
   apt-get --no-install-recommends -q -y --force-yes install xenstore-utils libxenstore3.0
   # keepalived and conntrackd for redundant router
@@ -64,6 +62,21 @@ install_packages() {
   echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | debconf-set-selections
   echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | debconf-set-selections
   apt-get --no-install-recommends -q -y --force-yes install iptables-persistent
+
+  # vmware tools
+  # uncomment for opensource vmware tool:
+  #   apt-get --no-install-recommends -q -y --force-yes install open-vm-tools
+  apt-get --no-install-recommends -q -y --force-yes install build-essential gcc linux-headers-`uname -r`
+  PREVDIR=$PWD
+  cd /opt
+  wget http://people.apache.org/~bhaisaab/cloudstack/VMwareTools-9.2.1-818201.tar.gz
+  tar xzf VMwareTools-9.2.1-818201.tar.gz
+  rm VMwareTools-*.tar.gz
+  cd vmware-tools-distrib
+  ./vmware-install.pl -d
+  cd $PREV
+  rm -fr /opt/vmware-tools-distrib
+  apt-get -q -y --force-yes purge build-essential gcc
 }
 
 setup_accounts() {