Jan 18, 2013

Device eth0 does not seem to be present, delaying initialization after you clone CentOS 6 in VMWare

If you get the error "device eth0 does not seem to be present, delaying initialization" after you clone a CentOS 6 VMWare machine, there's a simple solution

1. In /etc/udev/rules.d/70-persistent-net.rules, disable the old eth0 NIC
nano /etc/udev/rules.d/70-persistent-net.rules

1.1 Comment out line
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:9b:62:83", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

1.2 Change "eth1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:9e:42:91", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

to "eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:9e:42:91", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


2. Copy new MAC in /etc/udev/rules.d/70-persistent-net.rules for eth0 to network-script
nano /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0c:29:9e:42:91
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="fe27b05e-6ca6-4fb7-b43b-ddc5bb154787"
IPV6INIT=no
USERCTL=no
IPADDR=192.168.1.2
NETMASK=255.255.255.0
DNS1=192.168.1.1

3. Restart server
reboot

No comments:

Post a Comment