eth0 isn’t detected on centos 5.2 with vmware esxi 4.0 u1

if your eth0 isn’t detected, that’s because you have not installed vmware tools. here’s how you can install vmware tools and make eth0 work in centos 5.2 :

1. click Open Console of your centos 5.2 virtual machine

2. on the menu bar, click VM -> Guest -> Install/Upgrade vmware tools

3. login to centos 5.2 with root account and then do :

$ mount /dev/cdrom /media

$ cd /tmp

$ tar xzfv /media/VMwareTools-4.0.0-208167.tar.gz

$ vmware-tools-distrib/

just follow the instruction default settings

$ /etc/init.d/network stop

$ rmmod vmxnet

$ modprobe vmxnet

$ /etc/init.d/network start

try to setup ip address on eth0. for example:

$ ifconfig eth0 netmask

if no error show up then you’re done. try to ping some ip’s. to make sure vmware-tools will be started on next reboot:

$ chkconfig –list |grep vmware-tools

if you see 3:on and 5:on then it’s done.