VMware克隆的虚拟机,开机后启动网卡报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VMware克隆的虚拟机,开机后启动网卡报错相关的知识,希望对你有一定的参考价值。

VMware克隆的虚拟机,开机后启动网卡报错

故障现象:

[[email protected] ~]# service network restart
Shutting down loopback insterface:                                            [   OK  ]
Bringing up loopback insterface:                                              [   OK  ]
Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]

这时候可以输入 ifconfig -a 可以看到没有eth0的网卡设备名,却有eth1

解决办法1:

[[email protected] ~]# mv /etc/sysconfig/network-scripts/ifcfg-eth0? /etc/sysconfig/network-scripts/ifcfg-eth1 
[[email protected] ~]# vim?/etc/sysconfig/network-scripts/ifcfg-eth1 
修改DEVICE="eth0"? 为DEVICE="eth1"  
然后重启启动网卡尝试下

解决办法2:

[[email protected] ~]# vim /etc/udev/rules.d/70-persistent-net.rules
……
\# PCI device 0x8086:0x100f (e1000) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:54:4e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

\# PCI device 0x8086:0x100f (e1000) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:54:58", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

将上面红色字体中的eth0改为eth1,eth1改为eth0; 
reboot重启

解决办法3:

[[email protected] ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules
[[email protected] ~]# reboot ………………

以上是关于VMware克隆的虚拟机,开机后启动网卡报错的主要内容,如果未能解决你的问题,请参考以下文章

vmware克隆Centos6.9虚拟机网卡无法启动问题

VMware Centos中创建克隆虚拟机导致网卡设备无法启动的问题

Vmware虚拟机克隆CentOS操作系统后无法启动网卡

VMware克隆虚拟机后无法启动网卡

VMWare Workstation 10.0 虚拟机克隆后的网卡配置

Vmware虚拟机克隆的网卡问题