Can't get networking to work in guest CentOS 5 host ESX4.1
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't get networking to work in guest CentOS 5 host ESX4.1
I am a Linux newbie, but I have successfully loaded a Linux guest before. I can't ping any other systems, not even the default gateway. I set up the guest to use DHCP (for now) and it is getting an address, I checked my (windows) DHCP server, and the guest's IP lease shows with the correct mac address. I made sure that I don't have a duplicate mac address. The Linux firewall is turned off. This has got to be something stupid I am doing, but I can't figure out what. Thanks in advance for your help.
You don't say if it's CentOS 5 or 6. Take a look at your /etc/sysconfig/network-scripts/ifcfg-eth0 It might have NM_CONTROLLED=yes and you might not have NetworkManager running, or something similar.
Did you create a network during installation?
If you do chkconfig --list |grep -i Network what does it show? Also, does that file have ONBOOT=yes?
Lastly of course, check the VM network in the ESXi settings.
dhclient returned no errors and reported that it got the address from the DHCP server.
Most of my testing has been by LAN ip addresses. It won't ping the default gateway or the (windows) DHCP server by IP address, but strangely, it is getting an IP address from the DHCP server. 8.8.8.8 won't ping either. I have firewall and SELinux off.
I might try to call VMWare support (we pay enough for it!!), but I am afraid that they will point to the guest OS, or my configuration. This is a new install, and I accepted most of the defaults.
I've set up a bunch of these, but did it a bit differently. (Minimal install, don't set up network during installation.) I haven't had any problems, so I don't think it's something with either VMware or CentOS. However, they've all been static addresses.
Make very sure that NM isn't running. It might even be worth once again doing chkconfig NetworkManager off and rebooting--it can be a real pain to stop.
Try configuring with system-config-network-tui. Make sure there's no NM_CONTROLLED=yes in the ifcfg-eth0 file. Restart the network.
If it still doesn't work, try a static address.
After that, I'm out of ideas. I've never dealt with VMWare support myself--probably depends upon the individual. The only other thing I've run into is that if it's a cloned system, it won't see eth0, because in udev rules eth0 will have the wrong MAC address. However, eth1 will work. If this was from a clone, that might be the issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.