I finally got a chance to try this out and after much trial and error, I have most of it figured out. Thanks for your help mrkrocket. I wanted to be able to build it because I have 4.1 instead of 4.0 and I'd like to be able to upgrade as needed. I combined mrkrocket's post with others on the net and got everything to build. The only problem is that after reboot vmware tools starts but the NICs aren't quite working. I can run the fix-nic.sh each time it boots to fix it, but that is less than ideal. As far as I can tell it just re-initializes the driver. Any ideas on why this would be happening and what can be done to fix it?
The fix-nic.sh changes the NIC driver, as stated by VMware Tools when you install. It is only used once. After that the driver must be the optimized VMWare drivers even if you reboot.
Reboot the firewall and check if the drivers are loaded:
dmesg | grep vmmodprobe -l | grep vmxMine seems to work fine. Are you sure your compiled drivers fits on your kernel?
When you compile the drivers, it must say that the driver fits perfectly. If it doesn't say that, the drivers won't work even if it compiles.
Be sure that the kernel sources on /usr/src/linux are the same that the running kernel.
Also what is the purpose of the fix-startup.sh? It looks like it may switch the VM to use vmtools for time sync instead of NTP. Will this cause any issues if I want it to sync to NTP instead of the host?
The purpose is to call correctly the vmware script. I used a prior script that was around there. Not sure why the first guy changed those things, blame him.
The original fix-startup.sh was on a patch file on that link:
http://www.rndgroup.co.nz/blo g/2009/01/30/vmware-tools-in-an-endian-appliance/ (remove the space in the word b.l.o.g.)
I found difficult to recompile the VMWare tools for almost anybody, and it added unwanted stuff to your firewall (why one firewall should have compiler tools?!).
So I just packaged everything to a hassle-free VMWare Tools install. Just download, run install, press Enter a lot of times and reboot.
I will post the process I used to compile and install vmtools as soon I get this last nic issue figure out. Any help is much appreciated.
As I said, if you are compiling be sure that you are using the correct kernel sources. Steps to compile:
1-Change kernel to kernel-PAE
2- Use the precompiled package I put on the forums. If it says that you must recompile, then go to the next steps. If you use the original VMWare Tools disk, you must manually edit some files, and you must follow the link above (with some changes, because it was for an old EFW release).
3-Install devel RPMS. Download SRPM packages from Sourceforge, and install the RPM packages you need to compile + the kernel-PAE sources
4- I don't know why, but it seems that there are two gcc versions. You must use gcc4 to compile. You can either rename /usr/bin/gcc to gcc3 and rename gcc4 as gcc (or create a symlink), or use these commands before compiling:
CC=/usr/bin/gcc4 and then
export CC5- Create a symlink to your kernel on /usr/src/linux with
ln -s /usr/src/kernels/`uname -r`-`uname -m` /usr/src/linux. Check that /usr/src/linux exists and have files on it.
6- Try to install again. Now you should recompile the drivers correctly. It must say that the driver fits perfectly. If it doesn't say that, the drivers won't work even if it compiles.