GhettoVBB, ESXi 5.5 & Crontab

# vi /etc/rc.local.d/

Make the contents something similar to the following…


# local configuration options

# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, specific output, etc) there is a
# possibility you will end up with a broken system after patching or
# upgrading. Changes are not supported unless under direction of
# VMware support.
/bin/kill $(cat /var/run/ # Gets the cron service pid and simply kills it.
# The next line writes a typical cron line to the crontab
/bin/echo "0 3 * * * /vmfs/volumes/datastore2/scripts/ghettoVCB/ -a > /vmfs/volumes/datastore2/backups/ghettoVCB-backup-\$(date +%Y-%m-%d-%H%M%S).log" >> /var/spool/cron/crontabs/root

# Finally we start the cron service again
/usr/lib/vmware/busybox/bin/busybox crond
exit 0

The $(date) is escaped so that the command doesn’t execute during boottime and always log to the a file with the date and time of the last reboot!

Reboot to be sure it’s worked as expected.

Block Skype ads

Go to Control Panel > Network and Internet > Internet Options > Security Tab > Restricted Sites


Then click sites, and add

Works for me with no loss of functionality.

FreeBSD & vmtools

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/