Home > HowTo, Linux > script to autoinstall vmware tools

script to autoinstall vmware tools

November 19th, 2014 Leave a comment Go to comments

Login VSphere
Choose the VM
> Guest > Install VMware Tools
Conect via Console VMWare vSphere (not SSH), run the script:

copy/paste the script to vminst.sh
#!/bin/bash
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
VMT=`/bin/ls /mnt/cdrom/VM*.gz |cut -d “/” -f4`
cp -v /mnt/cdrom/${VMT} /tmp && cd /tmp/ && tar -zxvf ${VMT}
cd vmware-tools-distrib/
./vmware-install.pl –default
/etc/init.d/network restart
umount /dev/cdrom
rm -rfv /tmp/vm* && rm -rfv /tmp/VM*

EXECUTAR :
bash vminst.sh

VM>Guest>End Vmware Tools Install

Works on Red Hat/CentOS 6.x

Categories: HowTo, Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*