Note - I have another article for ESXi 5.1. If you are running 5.1, these instructions won't work for you.
Installing the proper VMware Tools for FreeBSD 9.0 / 9.1 can be a pain.
The hard work to figure this out has already been done by others (http://ogris.de/vmware/), so here is a quick script that will install the official VMware Tools using Dru's patch.
Make sure to start a vmtools install from your vsphere console so ESXi will make the CD available to you.
If you run into problems with a missing library when you try and execute /usr/local/bin/vmare-toolbox-cmd, try looking here (http://lists.freebsd.org/pipermail/freebsd-questions/2010-June/217718.html) it solved the problem for me.
(Cut-n-Paste into a terminal window with root access)
echo "Make sure you have started the vmware tools install"
mount -t cd9660 /dev/cd0 /media
cp /media/vmware-freebsd-tools.tar.gz ~
cd ~
tar xvf vmware-freebsd-tools.tar.gz
cd vmware-tools-distrib
cd lib/modules/source
tar xvf vmblock.tar
tar xvf vmmemctl.tar
tar xvf vmxnet.tar
tar xvf vmxnet3.tar
fetch http://ogris.de/vmware/vmxnet.diff
fetch http://ogris.de/vmware/vmxnet3.diff
echo #
echo # If it's thinking you have a previously applied patch (-R) say yes.
echo #
patch -p1 < vmxnet.diff
patch -p0 < vmxnet3.diff
cd vmblock-only
make && make install
cd ..
cd vmmemctl-only
make && make install
cd ..
cd vmxnet-only
make && make install
cd ..
cd vmxnet3-only
make && make install
cd ..
cd ~/vmware-tools-distrib
./vmware-install.pl
echo # DONE. Remember that the vmxnet3 driver is called vmxnet3f0
Installing the proper VMware Tools for FreeBSD 9.0 / 9.1 can be a pain.
The hard work to figure this out has already been done by others (http://ogris.de/vmware/), so here is a quick script that will install the official VMware Tools using Dru's patch.
Make sure to start a vmtools install from your vsphere console so ESXi will make the CD available to you.
If you run into problems with a missing library when you try and execute /usr/local/bin/vmare-toolbox-cmd, try looking here (http://lists.freebsd.org/pipermail/freebsd-questions/2010-June/217718.html) it solved the problem for me.
(Cut-n-Paste into a terminal window with root access)
echo "Make sure you have started the vmware tools install"
mount -t cd9660 /dev/cd0 /media
cp /media/vmware-freebsd-tools.tar.gz ~
cd ~
tar xvf vmware-freebsd-tools.tar.gz
cd vmware-tools-distrib
cd lib/modules/source
tar xvf vmblock.tar
tar xvf vmmemctl.tar
tar xvf vmxnet.tar
tar xvf vmxnet3.tar
fetch http://ogris.de/vmware/vmxnet.diff
fetch http://ogris.de/vmware/vmxnet3.diff
echo #
echo # If it's thinking you have a previously applied patch (-R) say yes.
echo #
patch -p1 < vmxnet.diff
patch -p0 < vmxnet3.diff
cd vmblock-only
make && make install
cd ..
cd vmmemctl-only
make && make install
cd ..
cd vmxnet-only
make && make install
cd ..
cd vmxnet3-only
make && make install
cd ..
cd ~/vmware-tools-distrib
./vmware-install.pl
echo # DONE. Remember that the vmxnet3 driver is called vmxnet3f0
Thank you very much for your post, it worked flawlessly for me. Thanks
ReplyDelete