您的位置:首页 > 运维架构 > Linux

Device eth0 does not seem to be present" on cloned CentOS VM

2013-07-12 18:33 519 查看
http://linuxtoolkit.blogspot.tw/2012/03/device-eth0-does-not-seem-to-be-present.html

After cloning the a CentOS 6 Virtual Machine from a VMware VM Template. On powering, I encountered the error "Device eth0 does not seem to be
present".

Basically, in a nutshell, the OS remembers the old NIC of the template and new NIC provided after the clone are assigns as though they were new
NICs. To solve the problem, remove the "SUBSYSTEM" entry that contains the old entry and change the eth1 to eth0 accordingly.

# vim /etc/udev/rules.d/70-persistent-net.rules


# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:50:56:ae:00:1a",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:50:56:ae:00:1b",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"


# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:50:56:ae:00:1b",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


Remember to modify the /etc/sysconfig/network-scripts/ifcfg-eth0 to reflect the correct changes.

After modifying and updating
the udev configuration as seen in the 2 blog entries. You can reload the new udev configuration in the memory. Use the command start_udev

# start_udev


Update the network configuration.

# service network restart
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐