We help IT Professionals succeed at work.

Need Linux help - reformimg windows guy

Hello All,

I have Nagios XI R1.8. running on VMware workstation 8.
Nagios uses CentOS 6.
I have scoured the web and spent hours attempting different methods to install VMWare tools on this install.
I am new to Linux, isn't there there a command line yum install or something?
Please give step by step I am a reforming windows guy and have not dealt with a CMI since VMS.

Thank you,
Rick
Comment
Watch Question

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Where do you have vmware?

You should have RPMS for it, perhaps in a CD/DVD.

you can check all the rpms available through yum by using command

yum list available


The problem is that vmware is not open source.  So you need to get its RPMs separately and install them.

Commented:
Here is my notes on vmware tools install. Works everytime :)

rpm based distro (centos, fedora, redhat)

1) Install required packages
yum install gcc gcc-c++ kernel-devel

2) connect to vmware iso (usually in guest menu of VM)

3) copy tar file from iso to directory on server (/tmp works for me)

4) unzip
tar -xzvf VMWare-filename
cd vmwaretools-folder

5)install
./vmware-tools.pl

accept all the prompts

Commented:
forgot to mention at the end i choose screen resolution #12 (1024x768)

Author

Commented:
Hello hanccocka,
When I choose install tools from the VMware menu it maps the virtual cd to Linux.iso. I am unable to figure out how to expand it to run vmware-install.pl from the VM.

I have expanded the iso to my desktop, but am unable to find a way to access my desktop from the VM.

Thank you,
Rick

Commented:
are you viewing the desktop gui, or connecting via ssh?

Author

Commented:
@sangamc
Gui I have never used SSH
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
follow this recent Install VMware Tools on Linux

http://www.experts-exchange.com/Software/VMWare/Q_27476930.html

post if your require help.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Once, you have mapped the ISO to the VM, you need to copy the tar gz file, to /tmp and extract the files, to run the shell installer.

Author

Commented:
I followed step 1:
1) Install required packages yum install gcc gcc-c++ kernel-devel

the cd drive is mapped to linux.iso which contains the tools.
How do I mount and or expand copy and execute?



2) connect to vmware iso (usually in guest menu of VM)
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
can you see the contents of the cdrom drive?

Author

Commented:
When I run the command mount the list does not contain the cd drive.

In one of my earlier attempts I was able to put the cd drive on the list and mount it but I have forgotten how.

If there is a better way I am open to it.
Thank you

Commented:
ok from the VMware management program, you should be able to right click on a guest OS and select from the guest menu "install vmware tools"

This will mount the CD for you on the desktop. You can then drag the tar file from the CD to the desktop

Author

Commented:
From the VMWare top menu I chose VM - install VMWare tools this directed the virtual CD to the Linux.iso.

How do I mount the virtual  CD drive in Linux?

Commented:
once you do that from the menu, the CD should be mounted automatically. if you go to the desktop you can see it. The other way is to use the command line and change to /mnt/cd-rom to view the contents
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Do you have a cdrom icon on desktop?

Author

Commented:
I may have not been clear.
CentOS is running on VMWare workstation 8.
The host OS is windows server 2008.

I do not see an icon for the cdrom on my windows 2008 desktop.

thank you for your patience.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
An cdrom icon ion the Desktop of the Centos OS

Commented:
you will see the icon for the CD rom on the Centos Desktop. the windows 2008 desktop should be ignored. The vmware tools install is to be run on centos6

Author

Commented:
the CentOS is just command line. How do I get to a desktop within CentOS?

These are surely some of the basics that I am missing.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
okay,

type mkdir /mnt/cdrom

mount /dev/cdrom /mnt/cdrom

cd /mnt/cdrom

cp filename.tgz /tmp/filename
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
and then

tar zxvf filename.tar,gz

cd vmware-tools-distrib

then run the script

.\filename.pl

answer the questions and your done.

Author

Commented:
did
type mkdir /mnt/cdrom


error:
cannot create directory  mnt/cdrom read only file system

Commented:
That is not a good message "read only file system"

are you able to create a direcory by
mkdir /tmp/cdrom?

if you get  the same message about read only file system thne you have much bigger issues than install vmware-tools
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
check if you already have a /mnt/cdrom ?

Author

Commented:
Is there a way to paste commands into the CentOS from windows? or copy from CentOS to paste here?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
not without tools

Commented:
you can use putty and ssh to the server. you can then right click in the putty window to paste commands from the clipboard

Author

Commented:
I bounced the VM and the commands were succesfull

I am at:

cp filename.tgz /tmp/filename

do I substitute "filename" for an actual filename or type the command as you put it above?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
yes, substitute
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
vmware tools filenames are different per versions of vmware workstation

Author

Commented:
the compressed file that the cdrom points to is linux.iso so do I use that name or just pick one that will make sense to me?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
use ls -al you should see a linux archive file?

Author

Commented:
I have uncompressed linux.iso in windows and it does contain vmware-install.pl which is the install file I believe I need.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
the lnux.iso should be mounted in the linux vm.

forget the 2008 host.

in the centos vm, check the cdrom, it should list an archive, which we need to extract
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
you do not uncompress the iso in Windows!

Please forget your Windows, and replace Windows Head with Linux Training Head.

Author

Commented:
Linux training head on windows is an ignored host.

ls -al

gave me in redtype

VMWareTools-8.8.1-528969.tar.gz
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
okay copy this file as

cp filename /tmp/filename

Author

Commented:
I am sorry to be such a newbie 20 years with windows has clouded my mind.

is the command:

cp VMWareTools-8.8.1-528969.tar.gz /tmp/VMWareTools-8.8.1-528969.tar.gz

or

cp VMWareTools-8.8.1-528969 /tmp/VMWareTools-8.8.1-528969

in other words by filename do you mean the name and the extensions .tar.gz or just the filename VMWareTools-8.8.1-528969?

is it case sensitive?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
I'm not mobile now, so

cp VMWareTools-8.8.1-528969.tar.gz /tmp/VMWareTools-8.8.1-528969.tar.gz

cd /tmp

tar zxvf VMWareTools-8.8.1-528969.tar.gz

cd vmware-tools-distrib

./vmware-install.pl

(there's a full stop before the /)
./vmware-install.pl

Author

Commented:
command:
cp VMWareTools-8.8.1-528969.tar.gz /tmp/VMWareTools-8.8.1-528969.tar.gz

cp: cannot stat 'VMWareTools-8.8.1-528969.tar.gz' no such file or directory

wow you sure can work a mobile keyboard...
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
try cp *.gz /tmp/tools.tar.gz
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
there is a space between .gz and /tmp

Commented:
cp: cannot stat 'VMWareTools-8.8.1-528969.tar.gz' no such file or directory

this means you are not in the directory that the file is in. you want to make sure by using 'ls' command that you are in the correct directory (/mnt/cdrom) on my system

Author

Commented:
no error with that I must have misread the file name.

it just took me back to the [root@localhost cdrom]#
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
okay continue with extraction details above
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
so /tmp check with ls -al you have tools.tar.gz

tar zxvf tools.tar.gz

Author

Commented:
Before your response I did:

cd /tmp

tar zxvf *.gz

and it appears to be decompressing did I screw up with the wildcard instead of your command?

Author

Commented:
I now did:

cd vmware-tools-distrib

./vmware-install.pl

it asked me to overwrite current ver said yes

how do I test success once this install says it is done?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
no wildcard is acceptable

now execute the vmware-install.pl

as above

Author

Commented:
in process:
next question on install:
in which directory do you want to install the binary files usr/bin?

do I just say yes to all the questions?

Commented:
if you can move the mouse from the VM guest window and back to the windows2008 host without having to press  ctrl+alt you have succeeded ")
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
you should have a vmware tools service installed, check for it at centos start, better mouse movement if you had a GUI, video.

better stability with workstation.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
t accept Defaults

Author

Commented:
the default is no for the experimental file system sync driver to perform backups.

I do want to perform backups, should I still accept this default which is no?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
use default no.

Author

Commented:
Install complete thank you for sticking with it.

One last thing every time I attempt to shutdown and restart it suspends not shut down.
Am I missing something?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Where are you shutting down from where
inside the VM in Centos, or using VMware Buttons?

Author

Commented:
I have been hesitant to use the VMware workstation buttons because with VMWare player I used the button and crashed the VM once.

I use the command in Centos
shutdown now
and then once VM is in single user mode:
poweroff
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
and this goes into standby and not halt?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
if you do init 0 ?

Author

Commented:
yes, i have the "resume this vm" choice and it does not boot it resumes (no Centos startup, no login)

can I trust the vmware buttons, in what order should I use them?

Author

Commented:
sorry posts were crossing.

I have never used init 0

when is it used after shutdown or when vm is fully up?
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
I think we are going off topic here, I believe your original question has been answered. If this answer has been helpful please assign points.

If you would like to post another Linux question, myself or Experts will be glad to assist with further linux related issues.

Author

Commented:
As far as I could tell the final step in to installing VMWare tools is a restart and still completely on the main topic.

I apologize if I am mistaken.

point awarded

Thank you.

Author

Commented:
As far as I could tell a restart is the final step of installing VMWare tools and still on the main topic.

My apologies if I am mistaken.

points awarded

thank you for your help.