FreeBSD & vmtools

By | October 8, 2014

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
# ./

If compat6x is not installed you’ll receive the following error once /usr/local/bin/ 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.
Execution aborted.

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).


  1. 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/
  2. In the vSphere Client, select your FreeBSD virtual machine and (right-)click Guest->Install/Upgrade VMware Tools
  3. 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 ../../../../
  4. You are now supposed to be in the top-level directory (vmware-tools-distrib). Run ./ as usual


Library problems…

# vmware-toolbox-cmd
Shared object “” not found, required by “”

# ln -s /usr/local/lib/ /usr/local/lib/

# vmware-toolbox-cmd
Shared object “” not found, required by “”

# ln -s /usr/local/lib/vmware-tools/lib64-63/ /usr/local/lib/

Uninstalling VMWare Tools