Installing VMware Tools on CentOS

There’s more than one way of course but I ended up using the following series of commands with good results.

Before you begin make sure that the proper Linux distro is selected in the virtual machine’s configuration (options tab, guest operating system) and that you initiate the VMware Tools install (which presents the appropriate CDROM to the VM).  Then enter the following commands:

mkdir /media/cdrom
mount /dev/cdrom /media/cdrom
cd /tmp
tar –xf /media/cdrom/VM*
cd vm*
./vmware-install.pl

At this point you should be able to follow the prompts.  On a few older distros I found that I had to add the “z” option to the tar command in order for it to work properly.

As Bob Plankers (@plankers) mentioned, you may also want to run the following command to clean up the TMP directory (unless you use other methods like tmpclean):

rm -r /tmp/vmware-tools-distrib

10 Responses to Installing VMware Tools on CentOS

  1. plankers says:

    @BlueShiftBlog Should include “rm -r /tmp/vmware-tools-distrib” at the end, unless you use tmpclean

  2. MarkEisert says:

    This worked for me.  But I had to first unmount the VMWare Tools DVD and remount to get this to work.  
    1) right click VMWare Tools DVD icon and select unmount
    2) choose again from Virtual Machine menu to install the VMWare Tools
    3) now the remounted DVD was able to display the VMWare Tools files (the files didn’t show up on the first mount for some reason)
    So basically I used the VMWare Player menus to mount the VMWare tools CD/DVD
    Then followed the rest of your procedures.
    Thanks

  3. nagil says:

    Greetings: I tried this and it worked but was wondering if/how this differs from the OSP installation process… sure seems a lot easier, regardless! Thanks.

  4. oden says:

    Centos 6.3 minimal install as was getting an error mounting the drive. 
    “mount: you must specify the filesystem type”
    turns out the correct device is /dev/sr0 .. this worked
    mount -t iso9660 -o ro /dev/sr0 /mnt

  5. Couldn’t be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!

  6. david says:

    thank you work like a charm!

  7. It’s appropriate time to make some plans for the
    long run and it’s time to be happy. I’ve read this put up and if I could I wish to recommend
    you few attention-grabbing things or advice.

    Maybe you could write next articles regarding this article.
    I want to read even more things approximately it!

    my website – Working Hay Day Cheats

  8. Marquita says:

    Hi there, for all time i used to check website posts here in the early hours in the break
    of day, because i love to gain knowledge of more and
    more.

  9. DarkLogix says:

    I just tried this on a fresh install of CentOS 7 and on the last step I get “command not found”.

    Any chance this could be updated?

Leave a Reply

Your email address will not be published. Required fields are marked *