Install VMWareTools On Endian Firewall Community 2.2 RC3 (Released 07 October 2008) On ESXi (3.5)

Want to support HowtoForge? Become a subscriber!
 
Submitted by acid (Contact Author) (Forums) on Thu, 2009-05-14 12:29. :: VMware | Virtualization

Install VMWareTools On Endian Firewall Community 2.2 RC3 (Released 07 October 2008) On ESXi (3.5)

This is a small guide that shows how to install VMware-Tools on Endian Firewall Community 2.2 RC3 (released 07 October 2008) on ESXi (3.5). I'm using Endian Firewall Community 2.2 RC3 (released 07 October 2008) on an ESXi 3.5 Server. Installing and using Endian is no problem but it's great to get VmwareTools installed.

First enable SSH from the Endian web interface an log in as root. Install wget and dependant info package.

rpm -Uvh http://archives.fedoraproject.org/pub/archive/fedora/linux/core/3/i386/os/Fedora/RPMS/info-4.7-5.i386.rpm
rpm -Uvh http://archives.fedoraproject.org/pub/archive/fedora/linux/core/3/i386/os/Fedora/RPMS/wget-1.9.1-17.i386.rpm

Get the latest developer package from endian.

wget http://dfn.dl.sourceforge.net/sourceforge/efw/EFW-COMMUNITY-2.2-rc3-devel-rpms.tar.gz

Extract the package.

tar xvfz EFW-COMMUNITY-2.2-rc3-devel-rpms.tar.gz

Install kernel-headers and gcc4 compiler.

cd RPMS/devel/
rpm -Uvh binutils-2.15.92.0.2-24.endian1.i586.rpm
rpm -Uvh kernel-devel-2.6.22.19-72.endian15.i586.rpm
rpm -Uvh glibc-kernheaders-2.4-9.1.100.EL.endian1.i386.rpm
rpm -Uvh patch-2.5.4-20.endian0.i386.rpm
rpm -Uvh glibc-headers-2.3.4-2.39.endian6.i386.rpm
rpm -Uvh gcc4-4.1.2-14.endian1.i586.rpm
rpm -Uvh glibc-devel-2.3.4-2.39.endian6.i386.rpm
rpm -Uvh libgomp-4.1.2-14.endian1.i586.rpm
rpm -Uvh gcc4-4.1.2-14.endian1.i586.rpm
rpm -Uvh make-3.81-3.endian0.i586.rpm
rpm -Uvh patch-2.5.4-20.endian0.i386.rpm
rpm -Uvh cpp-3.4.6-9.endian7.i586.rpm

Create the symlinks to your header.

ln -s /usr/src/kernels/`uname -r`-`uname -m` /usr/src/linux

Now it's time to patch and install VmwareTools on your Endian.

tar xvfz VMwareTools-3.5.0-158874.tar.gz
wget http://www.rndgroup.co.nz/files/vmware-tools-distribution.patch
cat vmware-tools-distribution.patch | patch -p 0
export CC=/usr/bin/gcc

cd to the extracted VmwareTools directory and launch vmware-install.pl. After the installation cd to the bin folder in VmwareTools directory an launch the startup-fix.

cd vmware-tools-distrib
./vmware-install.pl
cd bin/
chmod 755 startup-fix.sh
./startup-fix.sh

Reboot and you're done.

http://endian.com

http://www.rndgroup.co.nz/blog/2009/01/30/vmware-tools-in-an-endian-appliance/


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by yannick (not registered) on Mon, 2009-11-30 02:34.

My solution to install vmtools on endian firewal 2.3 for an esx 3.5 

1. Install vmware-tools from the VMware Infrastucture Client (right click on the guest -> Install/Upgrade Vmware tools)

mount -t iso9660 /mnt/cdrom /mnt

cp /mnt/VMwareTools-3.5.0-153875.tar.gz ./

2. Install wget (and dependant info package) so you can get other packages

rpm -Uvh http://archives.fedoraproject.org/pub/archive/fedora/linux/core/3/i386/os/Fedora/RPMS/info-4.7-5.i386.rpm 

rpm -Uvh http://archives.fedoraproject.org/pub/archive/fedora/linux/core/3/i386/os/Fedora/RPMS/wget-1.9.1-17.i386.rpm 

3. register with the Endian community (via http://www.endian.com/en/community/efw-updates/)

4. get devel package via http://updates.endian.org/devel/pool/  (password=community)

vi ./packages.txt

http://updates.endian.org/devel/pool/binutils-2.15.92.0.2-24.endian1.i586.rpm
http://updates.endian.org/devel/pool/binutils-extras-2.15.92.0.2-24.endian1.i586.rpm
http://updates.endian.org/devel/pool/cpp-3.4.6-9.endian7.i586.rpm
http://updates.endian.org/devel/pool/glibc-kernheaders-2.4-9.1.100.EL.endian1.i386.rpm
http://updates.endian.org/devel/pool/glibc-2.3.4-2.39.endian6.i386.rpm
http://updates.endian.org/devel/pool/glibc-common-2.3.4-2.39.endian6.i386.rpm
http://updates.endian.org/devel/pool/glibc-devel-2.3.4-2.39.endian6.i386.rpm
http://updates.endian.org/devel/pool/glibc-headers-2.3.4-2.39.endian6.i386.rpm
http://updates.endian.org/devel/pool/gcc-3.4.6-9.endian7.i586.rpm
http://updates.endian.org/devel/pool/make-3.81-3.endian0.i586.rpm

wget --http-user=youremail@wherever.com --http-passwd=community -i ./packages.txt

note: you can also get those from http://sourceforge.net/projects/efw/files/Development/EFW-COMMUNITY-2.2-rc3-devel-rpms.tar.gz even though it is the 2.2RC3 version. The devel package for 2.3 version is incomplete

5. Install some of the packages

rpm -Uvh binutils-*.rpm cpp-*.rpm glibc-kernheaders-*.rpm kernel-devel-*.rpm patch-*.rpm make-*.rpm 

5.  There is a conflcit with the glibc version installed on the efw 2.3 and the glibc of the devel package. Here is my workaround:

 mkdir /myglibc

cp glibc* /myglibc/

cp gcc*  /myglibc/

cd  /myglibc/

(I am a bit tired so I will be doing the short version now)

for each rpm package among glibc*.rpm and gcc*.rpm:

rpm2cpio package.rpm > package.cpio

cpio -id < package.cpio

6. Symlink the kernel headers to save us having to path to it during the install

ln -s /usr/src/kernels/`uname -r`-`uname -m` /usr/src/linux

7. Unpack the VMware tools

cd -

tar xvfz VMwareTools-3.5.0-153875.tar.gz

8. patch VMware tools for Endian (which can be downloaded from here)

cat vmware-tools-distribution.patch | patch -p 0

9. build the tools

export CC= /myglibc/usr/bin/gcc 

 cd vmware-tools-distrib

./vmware-install.pl

cd bin

chmod u+x startup-fix.sh

sh startup-fix.sh

10. check

ps -ef | grep vm

root      4180     1  0 00:57 ?        00:00:04 /usr/sbin/vmware-guestd --background /var/run/vmware-guestd.pid
root     13053  4498  0 02:18 pts/0    00:00:00 grep vm
 

11. reboot

 

references:

http://www.rndgroup.co.nz/blog/category/vmware/

http://www.mail-archive.com/efw-user@lists.sourceforge.net/msg04682.html

http://linuxgazette.net/issue48/tag/48.html

Submitted by osmonitor (not registered) on Tue, 2010-08-17 10:18.
Thank you for your message and i have known what should i do now.It helps me a lot~~Thank you very much
Submitted by Der Protoype (not registered) on Tue, 2010-03-02 16:36.

Hi, btw you must have left out something, about the gcc and glibc, you didnt install them, and the VMware tools cant find them to do the build...

 

Submitted by help_please (not registered) on Mon, 2009-12-14 09:11.

I followed your guide to install VMWare tools in Endian 2.3, but when I get up to the stage of compiling the VMWare tools it says that GCC isn't installed. 
I'm guessing there is a step missing after copying to the /myglibc folder as I followed this step-by-step twice but it isn't working.
If I just try to install glib it says a newer version is already installed, so after copying and running the CPIO steps, what else needs to be done???

Submitted by yannick (not registered) on Sun, 2010-01-17 20:12.

Hey, sorry for the delay.

can you please confirm you did export CC

export CC= /myglibc/usr/bin/gcc

and there is indeed a gcc in this location: 

 ls -l /myglibc/usr/bin/gcc
-rwxr-xr-x  3 root root 102427 Nov 30 00:31 /myglibc/usr/bin/gcc
 

 

Submitted by Snorre (not registered) on Sat, 2009-09-12 15:51.

Attention: if you install wget the dynamic update DNS records does not work any more.

This is tested with version 2.2 rc3 .

Greetings

Snorre