-
device eth0 does not seem to be present, delaying initialization” Error
Recently ,I have taken a template from Centos 6 on Cloudstack and when trying to bring up a new VM from the template and trying to start the network service received the error: “device eth0 does not seem to be present, delaying initialization”
When investigating the problem ,It turns out that the NIC on the machine was being renamed and registered to eth1.# ls /sys/class/net eth1 lo
udev is is the device manager,which stores the settings of the NIC ,So we have to do three things :
- edit the udev config file /etc/udev/rules.d/70-persistent-net.rules
It will be look like :# PCI device 0x1af4:0x1000 (virtio-pci) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="02:00:00:72:00:04", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="02:00:00:72:00:05", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
We need to Delete the first SUBSYSTEM entry in the file and modify the second SUBSYSTEM entry (Update the ‘eth1’ attribute to ‘eth0’)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="02:00:00:72:00:05", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
- Edit /etc/sysconfig/network-scripts/ifcfg-eth0Change the HWADDR to match the new mac address listed in the newly edited 70-persistent-net.rules file
DEVICE=eth0 HWADDR=02:00:00:72:00:05 TYPE=Ethernet UUID=dd7b09f3-56ab-40a6-a740-e4c1bae2c5b3 ONBOOT=yes NM_CONTROLLED=yes IPADDR=10.1.1.89 NETMASK=255.255.255.0 GATEWAY=10.1.1.1 BOOTPROTO=none DNS2=10.1.80.13 DNS1=10.1.80.12 IPV6INIT=no USERCTL=no
- Reload udev configuration & restart network service
# start_udev # /etc/init.d/network restart
eth0 should be up now 🙂
How to change MAC address for Ubuntu Set time in Linux system
- edit the udev config file /etc/udev/rules.d/70-persistent-net.rules
device eth0 does not seem to be present, delaying initialization” Error
Recent Posts
Categories
Archives
Comments are currently closed.