Question

Network problem with CentOS 5 guest under VMware ESXi

Asked by: markserv

I have a VMware ESXi 4.0 host with CentOS 5 as a guest VM. Unable to communicate (ping to or from) with CentOS VM. All other VMs (Wnidows) work fine. Sorry but I'm new to Linux, so you need to explain in detail how to configure.
Please see network configuration & ifconfig display in Code box. Thanks!

NETWORK CONFIGURATION
Devices:
eth0 - Status Active
Hardware:
peth0 - Intel Corporation 82545 - Status ok
eth0 - Intel EtherExpress/1000 - Status configured
 
IFCONFIG
eth0      Link encap:Ethernet  HWaddr 00:0C:29:57:11:81  
          inet addr:192.168.1.29  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe57:1181/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:87 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:14655 (14.3 KiB)  TX bytes:13203 (12.8 KiB)
 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1035 (1.0 KiB)  TX bytes:1035 (1.0 KiB)
 
peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:151 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:19351 (18.8 KiB)  TX bytes:22587 (22.0 KiB)
          Base address:0x2000 Memory:d8920000-d8940000 
 
vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:53 errors:0 dropped:0 overruns:0 frame:0
          TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:13203 (12.8 KiB)  TX bytes:14753 (14.4 KiB)
 
virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:12882 (12.5 KiB)
 
xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:25859 (25.2 KiB)  TX bytes:0 (0.0 b)

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-09-09 at 18:38:49ID24720116
Topics

Linux Networking

,

Miscellaneous Networking

,

VMware

Participating Experts
1
Points
0
Comments
12

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. VMware server on linux CentOS taking high kernel usage w…
    Experts, A bit more background info: We've installed a webserver system that is a plain AMD system with 4Gb memory and a 3ware controller. It needs to run one production webserver for some basic hosting. But in order to restore and keep a bit of security, we've installed VMW...
  2. Cannot Access Internet from Guest VMware CentOS 5
    My host computer is Windows XP and my guest CentOS (2.6.18-92.e15) From host to guest, I can easily access a running web server and perform a ping ping 192.168.0.4 Pinging 192.168.0.4 with 32 bytes of data: Reply from 192.168.0.4: bytes=32 time=1539ms TTL=64 Reply f...
  3. vmware guest to vmware guest can not communicate
    Hi everyone - maybe someone has seen this? Our VMware guests from different VM servers cannot communicate. The guests can communicate with everything else (physical servers in and out of the same VLAN, internet, etc).The guests are in the same VLAN show the correct ARP entri...
  4. VMware Server Guest Networking
    Hello, I have the following setup. I am running VMware Server 2.01 on a Windows 7 Ultimate x64bit Host. I have a Windows 2008 R2 Guest . I cannot ping from the Guest to the Host but I can Ping from the Host to the Guest. I have no firewall between the two, and I am able to ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: marmata75Posted on 2009-09-09 at 22:48:15ID: 25297624

Looks like you're also running another kind of virtualization solution on your centos, you should'nt have all those interfaces, just eth0 and lo0, please check if you have installed xen and or kvm, and uninstall them, that should clean everything up!

Cheers,
]\/[arco

 

by: markservPosted on 2009-09-09 at 23:28:21ID: 25297763

Thanks Marco, but I'm ignorant of Linux, so could you spell out how check if these are installed?
I've got xwindows up and under Applications --> System Tools --> Virtual Machine Manager there is an entry: Name=localhost, ID=xen. I deleted it, but it re-appears after restarting network service.

 

by: marmata75Posted on 2009-09-10 at 00:12:32ID: 25297901

Hi,

ok to completely remove all the bultin virtualization just type:

yum groupremove Virtualization

at a command prompt

also a

rpm -e -nodeps libvirt

might work, but the former is preferable as it'll correctly remove everything related!

Cheers,
]\/[arco

 

by: markservPosted on 2009-09-10 at 19:49:38ID: 25306393

Hi Marco, see error messages below:

[root@vm-lnx-01 ~]# yum groupremove "Virtualization"
Setting up Group Process
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@vm-lnx-01 ~]#

[root@vm-lnx-01 ~]#
[root@vm-lnx-01 ~]# rpm -e -nodeps libvirt
-nodeps: unknown option
[root@vm-lnx-01 ~]#
[root@vm-lnx-01 ~]# rpm -e libvirt
error: "libvirt" specifies multiple packages
[root@vm-lnx-01 ~]#

Any thoughts?
Thanks!

 

by: marmata75Posted on 2009-09-10 at 23:05:03ID: 25306962

Of coruse yum won't work without an internet connection sorry, and looks like it's configured to not look at the local cache. Before trying something else, would you please post the contents of your routing table? Just type:

route -n

at the command prompt and post the results!

Cheers,
]\/[arco

 

by: markservPosted on 2009-09-10 at 23:08:11ID: 25306976

Routing table below:

[root@vm-lnx-01 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 eth0
[root@vm-lnx-01 ~]#

Cheers.

 

by: marmata75Posted on 2009-09-11 at 01:34:06ID: 25307550

Ok your default gateway is setup as 192.168.1.254, is that correct? That's tied to interface eth0, that's the right one. In VMWare make sure that you're assigned the right vSwitch to this virtual machine. Doublecheck by pinging the 192.168.1.254 IP (just ping 192.168.1.254 at a command prompt) , that should answer back fine. Then try pinging an external ip like ping 208.67.222.222. If that's answering fine, your problem may simply be the DNS. Write the following in a command prompt:

echo nameserver 208.67.222.222 > /etc/resolv.conf
echo nameserver 208.67.220.220 >> /etc/resolv.conf

Those commands will add the OpenDNS servers to your /etc/resolv.conf file.
Now try to ping www.google.com, and that should succeed.
If all this does not help the problem probably lies outside of this virtual machine. Could be wrong vSwitch assigned, the router configuration of a firewall in between that's not working correctly, and will need more infos about the rest of your infrastructure!

Cheers,
]\/[arco

 

by: markservPosted on 2009-09-14 at 00:26:03ID: 25323372

Yes, I believe the gateway is correct - 192.168.1.254 is the firewall.
VMware only has 1 vSwitch setup and all VMs are on the same Virtual Machine Port Group.
Pinging 192.168.1.254 returns Destination Host Unreachable, likewise with 208.67.222.222.
I should also mention this VM worked fine under VMware Server, but the problem occured when I converted it to ESXi.

Thanks!

 

by: marmata75Posted on 2009-09-14 at 00:45:57ID: 25323431

Oh well that could be the problem then! How did you convert the vm from VMWare server to ESXi? with vmkfstools of with vm converter? Could you also post the contents of /etc/sysconfig/network-scripts/ifcfg-eth0? You may have to upgrade the vmware tools before the network would work after a conversion, but since you actually have an IP assigned to that nic, I want to check if the IP as been setup manually of via dhcp!

Cheers,
]\/[arco

 

by: markservPosted on 2009-09-14 at 01:31:31ID: 25323596

I used vCenter Converter Standalone Client 4.0.1.  Also, I did update VMware Tools.

ifcfg-eth0 contents:
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:0c:29:52:92:c2

The hardware address matches the MAC Address in VMware.
Thanks again!

 

by: marmata75Posted on 2009-09-15 at 00:09:58ID: 25332434

Hi,

that's very strange indeed. Your virtual nic is correctly taking an IP from your router, so you definitely have network connectivity. It may be that some firewall rules on the routes is preventing this particular IP address to going out to the network? It's even possible that you have some rules in your iptables preventing you frmo going out, but I find it difficult to happen. However you can try to type:

iptables-save

to show the rules setup on your firewall and post them here. If there are active rules, you may try to disable your firewall, just to check if that gets your connectivity back:

service iptables stop

Cheers,
]\/[arco

 

by: markservPosted on 2009-09-15 at 19:18:30ID: 25341265

Hi Marco,

IP rules below:
[root@vm-lnx-01 ~]# iptables-save
# Generated by iptables-save v1.3.5 on Wed Sep 16 12:08:48 2009
*nat
:PREROUTING ACCEPT [618647:158049695]
:POSTROUTING ACCEPT [1555:121938]
:OUTPUT ACCEPT [1562:122343]
-A POSTROUTING -s 192.168.122.0/255.255.255.0 -j MASQUERADE
COMMIT
# Completed on Wed Sep 16 12:08:48 2009
# Generated by iptables-save v1.3.5 on Wed Sep 16 12:08:48 2009
*filter
:INPUT ACCEPT [225970:34363223]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [37563:10307037]
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A FORWARD -d 192.168.122.0/255.255.255.0 -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 192.168.122.0/255.255.255.0 -i virbr0 -j ACCEPT
-A FORWARD -i virbr0 -o virbr0 -j ACCEPT
-A FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
COMMIT
# Completed on Wed Sep 16 12:08:48 2009
[root@vm-lnx-01 ~]#

Isn't it odd that eth0 Status configured, rather than OK (see original post).

Don't worry if you can't work this out. It might be easier to use a Windows OS rather than waste too much time.

Thanks!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...