Click VM -> Guest -> Install / Upgrade VMware Tools (which inserts the virtual CD)
# mkdir /mnt/cdrom # mount -t cd9660 /dev/cd0 /mnt/cdrom # cd /tmp/ # tar zxpf /mnt/cdrom/vmware-freebsd-tools.tar.gz # umount /mnt/cdrom # cd vmware-tools-distrib # ./vmware-install.pl
If compat6x is not installed you’ll receive the following error once /usr/local/bin/vmware-config-tools.pl is run for you…
The VMware Tools for FreeBSD 10.0 depend on libraries provided by the
compat6x-amd64 package. Unfortunately we were unable to locate these libraries
on your system. Please install the compat6x-amd64 package from the FreeBSD
Ports Tree before you attempt to configure VMware Tools.
The easiest way to install this package is by using pkg_add utility. Refer to
the man pages on how to properly use this utility.
Please re-run this program after installing the compat6x-amd64 package.
Install from the following port…
# cd /usr/ports/misc/compat6x && make install clean
More complete instructions…
VMware Tools on FreeBSD 10.0
As of February 2014, VMware Tools that come with ESXi 5 or Fusion don’t work out of the box on FreeBSD 10. I wrote some patches so that one can compile them manually. Luckily, FreeBSD 10 comes with support for vmxnet3 virtual network cards. Anyhow, you’ll need at least the kernel source tree in /usr/src/sys, Perl, and compat6x-amd64 (or compat6x-i386).
- Download vmware-tools-distrib.diff, vmblock-only.diff, vmmemctl-only.diff (vmmemctl-only55.diff if you’re on ESXi 5.5). Save them to e.g. /tmp/
- In the vSphere Client, select your FreeBSD virtual machine and (right-)click Guest->Install/Upgrade VMware Tools
- In your FreeBSD machine, do the following:
# mount -t cd9660 /dev/cd0 /mnt # tar xzf /mnt/vmware-freebsd-tools.tar.gz # cd vmware-tools-distrib # patch -p1 < /tmp/vmware-tools-distrib.diff # cd lib/modules/source/ # tar xf vmblock.tar # tar xf vmmemctl.tar # cd vmblock-only # patch -p1 < /tmp/vmblock-only.diff # make # make install # cd ../vmmemctl-only # patch -p1 < /tmp/vmmemctl-only.diff # ESXi5: /tmp/vmmemctl-only55.diff # make # make install # cd ../../../../
- You are now supposed to be in the top-level directory (vmware-tools-distrib). Run ./vmware-install.pl as usual
Shared object “libintl.so.8” not found, required by “libglib-2.0.so.0”
# ln -s /usr/local/lib/libintl.so.9 /usr/local/lib/libintl.so.8
Shared object “libpcre.so.0” not found, required by “libglib-2.0.so.0”
# ln -s /usr/local/lib/vmware-tools/lib64-63/libpcre.so.0/libpcre.so.0 /usr/local/lib/
Uninstalling VMWare Tools