Kvm

Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.

Bringing up interface eth0:  Device eth0 does not seem to be present, delaying initialization.

利用kvm的virt-clone命令克隆的虚拟机,修改了网卡配置文件,但是报如上错误,网卡启动失败?

故障现象:

# service network restart
Shutting down loopback insterface:
Bringing up loopback insterface:
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization.
已邀请:

Ansible - 项目实施 系统工程师

这种现象应该是MAC地址导致的情况,解决方法如下:

1. 修改Centos虚拟机克隆机的网卡配置文件把HWADDR修改为ifconfig -a看到的的MAC地址

形如:HWADDR="52:54:00:91:AE:C3"

# ifconfig -a
eth0 Link encap:Ethernet HWaddr 52:54:00:91:AE:C3
inet addr:10.0.1.19 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::5054:ff:fe91:aec3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:318439 errors:0 dropped:0 overruns:0 frame:0
TX packets:125516 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:364451227 (347.5 MiB) TX bytes:8905038 (8.4 MiB)
Interrupt:11 Base address:0xa000


2. 然后再做以下操作

# rm -rf /etc/udev/rules.d/70-persistent-net.rules
# reboot


3.重启之后重启网卡配置服务

# service network restart
Shutting down loopback insterface:
Bringing up loopback insterface:
Bringing up interface eth0:

应该就ok了,试一下。

要回复问题请先登录注册