First Step: Install FreeBSD as VMWare Guest.
- Apply patches/updates.
# freebsd-update fetch && freebsd-update install # portsnap fetch && portsnap extract && portsnap update
# cd /usr/ports/lang/perl5.12 # make install
# cd /usr/ports/misc/compat6x/ # make install
# cd /usr/share/examples/cvsup # cp stable-supfile /etc # vi /etc/stable-supfile // change from CHANGE_THIS to cvsup.freebsd.org # csup -L 2 /etc/stable-supfile
- i. In VMWare Workstation tab, choose VM -> Install VMWare Tools.
- ii. In FreeBSD as root, create a directory to mount the CD-Rom to.
# mkdir /var/cdrom # mount –t cd9660 /dev/cd0 /var/cdrom
- iii. Extract the vmware-freebsd-tools.tar.gz
#cp /var/cdrom/vmware-freebsd-tools.tar.gz /root #cd /root #tar -zxvf vmware-freebsd-tools.tar.gz
- i. the lib/modules/source directory under where you extracte
- ii. Extract vmmemctl.tar
#tar -xf vmmemctl.tar
- iii Change to the vmmemctl-only directory.
- iv. Run make.
# make # make install
- v. Compile the vmblock module
# cd /root/vmware-tools-distrib/lib/modules/source/
- vi. Extract vmblock.tar
# tar -xf vmblock.tar
- vii. Change to the vmblock-only directory.
- viii. Run make.
- ix. Run make install.
# make install
# cd /root/vmware-tools-distrib/ # ./vmware-install.pl At this point, accept all the defaults (press enter to all questions) until you are returned to a shell prompt. If you use VMware-workstation 7.x, then you shall be blow sequence. Ignore the ‘failed’ service start, and the fact that it says the process has been aborted. Next, you need to use your favourite editor to edit the file /usr/local/etc/rc.d/vmware-tools.sh and locate the following 3 lines of code (they are separated by a few lines of code but are all in the same general area):
if [ "$vmdb_answer_VMHGFS_CONFED" = 'yes' ]; then if [ "$vmdb_answer_VMMEMCTL_CONFED" = 'yes' ]; then if [ "$?" -eq 0 -a "$vmdb_answer_VMXNET_CONFED" = 'yes' ]; then There will also be (not grouped together like the above line) the following line in the file: if [ "$vmdb_answer_VMBLOCK_CONFED" = 'yes' ]; then
Change each of the above lines where it says yes to be xyes (add the letter X before the word yes) – then save&exit the file. Now we need to tell vmtools that it is configured by typing the following:
Now you can restart vmtools without rebooting like so:
/usr/local/etc/rc.d/vmware-tools.sh restart ```