RHEL 6.5 on VMware Workstation 10 – No Internet

Latest response

Hi. I installed RHEL 6.5 within VMware Workstation 10 as a VM for training. I used a Bridged (Automatic) Network Adapter/Connection. The OS installed using ‘Easy Install’ and boots fine, is assigned an IP address X.Y.23.116. However I cannot view websites or active my RHN subscription.

I have tried using ‘Replicate physical network connection state’ and I have also tried disabling the firewall within RHEL. My firewall on the laptop has an exception for bridged VMware traffic and I have tested connectivity with my Server 2008 R2 VM: It has the same setup and can receive updates/connect to the internet.

[j@localhost ~]$ lspci | grep -i net
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)

Any help I can receive to get RHEL online would be greatly appreciated.

Responses

Did you install the VMware Tools?

Do you see a default route (0.0.0.0)
do you have nameservers defined (/etc/resolv.conf)

If you could provide the output from the following (after removing sensitive data)

ifconfig eth0
netstat -rn
cat /etc/resolv.conf
cat /etc/sysconfig/network-scripts/ifcfg-eth0
ifconfig -a | grep HW
cat /etc/udev/rules.d/*net*

It's hard to guess at this point, but... I wonder if perhaps your interface changed it's MAC and the configuration file intended for eth0 is no longer valid (and now your interface will be listed in ifconfig as some random name).

Hi. When I right click the VM in VMware’s Library and select ‘Reinstall VM ware tools’, I receive the error ‘VMware Tools installation cannot be started manually while Easy Install is in progress.’ This seems odd the installation of RHEL has finished as far as I can see, and I’ve rebooted it several times. I can’t see it listed under any of the drop down menus or Add/Remove Software.

[j@localhost ~]$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr
inet addr:x.y.213.116 Bcast:x.y.215.255 Mask:255.255.252.0
inet6 addr: :::::97dd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2129 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:164571 (160.7 KiB) TX bytes:5240 (5.1 KiB)

[j@localhost ~]$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
x.y.212.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
x.y.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 x.y.212.1 0.0.0.0 UG 0 0 0 eth0

[j@localhost ~]$ cat /etc/resolv.conf
_ Generated by NetworkManager
domain ..net
search ..net
nameserver x.y.135.52
nameserver x.y.135.51

[j@localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
IPV6INIT=yes
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="baf52359-8283-4e05-ad0e-f07c16c72437"
NETMASK=255.255.252.0
USERCTL=no
HWADDR=
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME="System eth0"
LAST_CONNECT=1409655915

[j@localhost ~]$ ifconfig -a | grep HW
eth0 Link encap:Ethernet HWaddr

[j@localhost ~]$ cat /etc/udev/rules.d/net
_ This file was automatically generated by the /lib/udev/write_net_rules
_ program, run by the persistent-net-generator.rules rules file.
_
_ You can modify it, as long as you keep each rule on a single
_ line, and change only the value of the NAME= key.

_ PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="", ATTR{type}=="1", KERNEL=="eth", NAME="eth0"

Many thanks.

Easy Install is a "feature" that I am not a fan of ;-)

Here is an article that explains how to deal with the situation you are in:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017687

The first time you attempt to install VMware Tools on a particular OS, it has to download the tools - this typically requires some sort of response indicating you approve the download and installation. I wonder if it is stuck at that point somehow.

I would clean-up the Easy Install using the process above and then attempt to install the VMware Tools manually. The output you provided looks good otherwise (I am stumped if the tools does not resolve this for you).

Hi. Many thanks for your help. I reinstalled VMware Tools using the KB link and received the message ‘The configuration of VMware Tools 9.6.2 build-1688356 for Linux for this running kernel completed successfully.’ And rebooted. However, I’m still unable to get to any websites nor activate RHEL. Within the Subscription Manager – System Registration, the following error is returned: Unable to reach the server at subscription.rhn.redhat.com:443/subscription.

Are you behind a web-proxy of some sort? (I assume Windows is somewhat capable of a proxy auto-config, hence why your 2008 VM works?)

Do you see any peers? Or can you ping Google?

ip neighbor show
ping -c 2 8.8.8.8

perhaps you can try nmap'ing your own subnet, or another subnet to see if you can get off the box that way. I wish I had a better answer - hopefully someone else can chime in if they have seen this before.

That was it. I found the PAC file and copied the information over. Problem solved!

Good deal - at least you now know some commands to use for troubleshooting ;-)

We have some systems that can not reach the public internet, so we have staged the vmware tools (called linux.iso) on the vmware's storage repository.

For anyone else's future reference, VMware tools can be installed with the "-default" which (for us) answers all questions with defaults by command-line. We use command-line vmware tools install so we can see if it bails or not as follows...

1) Connecting the linux.iso from the vmware tools on the vmware graphical interface to the linx system
2) mkdir -p /cdrom/notmounted;chmod 755 /cdrom # if not previously made
3) mount /dev/cdrom /cdrom
4) Find a location to put the contents of /cdrom/ above (a VMware tar gz file with the tools), for this example, we will pick /var/tmp/vmware
5) mkdir /var/tmp/vmware
6) rsync -au --progress /cdrom/VMwareTools-x.x.xx-xxxxxxx.tar.gz /var/tmp/vmware/
7) cd /var/tmp/vmware
8) tar zxvf VMwareTools-x.x.xx-xxxxxxx.tar.gz
9) ./vmware-tools-distrib/vmware-install.pl -default
NOTE: the "-default" above will answer all questions for you automatically, just wait for it to complete.
10) remove the /var/tmp/vmware contents
11) umount /cdrom and disconnect the vmware tools iso

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.