VMware Tools on FreeBSD 9.0
Problem
As of May 2012, VMware Tools that come with ESXi 5 don't work on FreeBSD 9.
I found this
article in which Jared Barneck reports that he just had to recompile
vmmemctl and vmblock. The source code for both of these modules (and
vmxnet/vmxnet3 as well) is included in vmware-freebsd-tools.tar.gz. However,
you can compile neither vmxnet nor vmxnet3 without some minor
modifications.
Make sure that you have at least the kernel source tree in
/usr/src/sys.
Solution
- Download vmxnet.diff and
vmxnet3.diff
- In the vSphere Client, select your FreeBSD virtual machine and
(right-)click Guest->Install/Upgrade VMware Tools
- In your FreeBSD machine, run mount -t cd9660 /dev/cd0 /mnt and
tar xzf /mnt/vmware-freebsd-tools.tar.gz
- cd vmware-tools-distrib/lib/modules/source/
- Untar vmblock.tar, vmmemctl.tar, vmxnet.tar, and vmxnet3.tar
- Now apply my patches:
- cd vmxnet-only
- patch -p1 < /tmp/vmxnet.diff
- cd ../vmxnet3-only
- patch -p1 < /tmp/vmxnet3.diff
- Change into vmblock-only and run make && make
install
- Change into vmmemctl-only and run make && make
install
- Change into vmxnet-only and run make && make
install
- Change into vmxnet3-only and run make && make
install
- Switch back to the top-level directory (vmware-tools-distrib) and run
vmware-install.pl as usual
- Update /etc/rc.conf, e.g. change ifconfig_em0 to
ifconfig_vmx3f0 (sic!) in case of vmxnet 3