Vmware Workstation8.0克隆CentOS6.3出现"device eth0 does not seem to be present, delaying initialization"
来源:互联网 发布:权利权益矩阵 编辑:程序博客网 时间:2024/06/06 02:36
在Vmware下搭建网络运维实验环境,安装好了一台CentOS6.3 minimal的虚拟机,然后完整克隆这台虚拟机,在克隆的虚拟机中运行ifconfig没有eth0,只有lo,然后运行service network restart出现"device eth0 does not seem to be present, delaying initialization"错误!
在网上找到一篇很靠谱的解决方法:http://www.ryanchapin.com/fv-b-4-655/Cloned-VMware-CentOS6-Server-and--quot-device-eth0-does-not-seem-to-be-present--delaying-initialization-quot--Error-.html
Recently, I cloned a vmware install of CentOS6 and after firing up the clone and trying to start networking received the error: "device eth0 does not seem to be present, delaying initialization"
It turns out that the NIC on the cloned machine was being renamed and registered to eth1.
To list the current ethn devices:
# ls /sys/class/net
eth1 lo
There is a device manager, udev, which stores the settings from the NIC of the vm prior to the cloning? process.? When you clone a vm it also changes the mac address of the NIC and as a result the vm sees it as a new NIC and assigns it to /dev/eth1.
As a result, we now have to edit the udev config file as well as the ifcfg-eth0 file to get the newly update virtual NIC card to operate on the eth0 device.
First, edit: /etc/udev/rules.d/70-persistent-net.rules
# 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 0x15ad:0x07b0 (vmxnet3) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:bc:00:45", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:bc:00:46", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Delete the first SUBSYSTEM entry in the file.
Update the 'eth1' attribute in the remaining entry to 'eth0'
Edit /etc/sysconfig/network-scripts/ifcfg-eth0
. Change the HWADDR to match the new mac address listed in the newly edited 70-persistent-net.rules file.
reboot.
按照这篇博客的解决方法,完美解决问题!
- Vmware Workstation8.0克隆CentOS6.3出现"device eth0 does not seem to be present, delaying initialization"
- Vmware克隆centos:device eth0 does not seem to be present,delaying initialization
- vmware克隆 Linux(device eth0 does not seem to be present, delaying initialization)
- device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present delaying initialization
- device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization.
- device eth0 does not seem to be present,delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present,delaying initialization
- NYOJ 685 查找字符串 字典树 map容器 吐血经验 cin cout 与printf scanf
- poj 1700 【乘船问题】【动态规划】
- 博彦科技4亿定增图谋境外软件外包 现金流考验
- 数据挖掘领域十大经典算法初探
- 利用opencv进行usb相机的视频捕获
- Vmware Workstation8.0克隆CentOS6.3出现"device eth0 does not seem to be present, delaying initialization"
- Ubuntu设置root密码
- 多线程和多进程
- 使用T-SQL语句查看数据库的存储过程和表结构信息
- JVM笔记2:对象访问
- KeyValueTextInputFormat 分割key value For hadoop 1.0
- mysql_fetch_row,mysql_fetch_array,mysql_fetch_assoc的区别
- sicp 习题2.22
- windows7下分区软件:Acronis Disk Director Suite