FreeBSD 5.1 supports installing VMware's 3.2.1-2237 version, but its latest version has been 3.2.1-2242, so there are some problems with the ports collection installation of the system, which will be addressed in this article.
I've also tried to install VMware 4 in FreeBSD 5.1, but because FreeBSD 5.1 's Linux compatibility mode lacks a lsmod simulation under/compat/linux/sbin, it doesn't work. This problem can only wait until after the main version of FreeBSD or port collection upgrade before you can continue to try. Of course, it's also possible that when you read this article (the current time 9:30 PM 7/30/2003), these things are outdated, but at least it can provide you with a solution to the problem.
First you need to download the latest version of VMware 3 on the VMware website, and as I write this article, the latest version is 3.2.1-2242. The filename after downloading is vmware-workstation-3.2.1-2242.tar.gz.
Then go to Http://people.freebsd.org/~mbr/vmware to download the two files vmmon-only-3.2.1-20030514.tar.gz and vmnet-only-3.2.1-20030412.tar.gz.
Put the three files under the/usr/ports/distfiles.
Before you start, verify that you have installed the Linux compatibility mode for FreeBSD 5.1, and that this mode is open in rc.conf. The specific inspection method is to enter the kldstat instruction, if you see the Linux.ko typeface description has successfully installed compatibility mode. If you don't see it, install it in this way:
#cd/usr/ports/emulators/linux_base8
#make Install clean
After the installation is complete, check to make sure that linux_enable = "YES" is already in the rc.conf, then reboot and Kldstat should be able to see Linux.ko words. At this time can be seen under the/compat/linux Linux bin,usr,sbin,mnt and so on.
When everything is ready, the first step is to edit the makefile and Distinfo under/usr/ports/emulators/vmware3 so that it adapts to the features of version 2242 VMware software.
First back up the original makefile and Distinfo for makefile.2237 and distinfo.2237. Then follow this procedure to:
1, edit makefile, 3.2.1-2237 the words into 3.2.1-2242 (only one place needs to be changed).
2, run #md5 vmware-workstation-3.2.1-2242.tar.gz get the MD5 value of this file, and then write down this value.