Network not working in VMWare Workstation CentOS VM

General support questions
Post Reply
galapogos
Posts: 17
Joined: 2014/08/25 09:58:43

Network not working in VMWare Workstation CentOS VM

Post by galapogos » 2017/09/21 02:10:14

Hi,

I've downloaded a 64-bit CentOS 6.9 VM from osboxes.org, and installed it in VMWare Workstation Pro 12 on a 64-bit Windows 10 host. VMware network settings is set to NAT. Network is not working.

A ping to 8.8.8.8 returns "connect: Network is unreachable".

ifconfig doesn't show eth0, only lo.

ifup eth0 returns a "configuration for eth0 not found" error.

lspci returns the following ethernet adapter:

Code: Select all

02:01.0 Ethernet controller: Intel Corporation 8245EM Gigabit Ethernet Controller (Copper) (rev01)
        Subsystem: VMware PRO/1000 MT Single Port Adapter
        Kernel driver in use: e1000
        Kernel modules: e1000
ethernet0.virtualDev = "e1000" is already set in the vmx file.

How can I get network up?

dcloes
Posts: 7
Joined: 2017/09/26 14:54:04

Re: Network not working in VMWare Workstation CentOS VM

Post by dcloes » 2017/09/26 14:58:17

Not sure this is your problem, but I've run into issues where eth0 isn't listed on a cloned vm.

This is what I do to fix:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

fix the MAC address with the one listed in VCenter (make MAC address match the one in VCenter)

then run:

rm -f /etc/udev/rules.d/70-persistent-net.rules

reboot

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Network not working in VMWare Workstation CentOS VM

Post by TrevorH » 2017/09/26 15:00:47

Run ifconfig -a so you see all devices. The new naming scheme in CentOS 7 means it probably won't be called ethX, it'll be e.g. eno16777215 or enp5s0 or em1 etc.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply