[Edit 2017-05-04] The below is still valid for JunOS SPACE 15.2 or older. From JunOS SPACE 16.1 on, you can use “Open VM Tools” instead.
JunOS SPACE, Juniper’s management platform for JunOS devices (switches, routers, firewalls) does not come with gcc or kernel-headers. Installing VMWare Tools from a mounted ISO via vmware-install.pl is not all that successful. Happily, VMWare still provides RPM versions of those tools. SPACE 15.2 is built on CentOS 5, which in turn is a RHEL 5 clone.
Be sure to use the VMWare Tools package that matches the version of CentOS your SPACE is running.
1) Start by downloading the RPMs for VMWare Tools on RHEL 5. You’ll want the following (or their current equivalent):
That list might change with newer versions of the tools and of RHEL, of course. When in doubt, grab just the vmware-tools-esx-nox package, try to install it, and take a note of all the dependent packages it wants, then download those too.
2) scp the lot to SPACE, say to /var/tmp. While WinSCP is unhappy with the shell the admin user runs on, command-line scp does not care and will work. Choose any version you like: The one that comes with Putty, the one that comes with Cygwin, an Ubuntu one on Windows 10, or any other. And if you’re running OSX or Linux, you can feel extra-smug because you have scp as part of your base OS.
3) Install those RPMs. Now, you could install the GPG key they are signed with, but if you trust that you got them from VMWare, in an unaltered form, then just:
yum install --nogpgcheck vmware-tools*rpm
If there are dependency errors, download the missing packages as well and try again.
5) Satisfy yourself that vmtoolsd is running:
service vmware-tools-services status
vSphere should now be reporting that SPACE is running “VMtools 3rd party/independent”. And that’s all there is to it.
The kmod portion of the tools won’t install, by the way – but then it’s not needed.