侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

克隆虚拟机后的网卡报错

2023-11-13 星期一 / 0 评论 / 0 点赞 / 56 阅读 / 1595 字

克隆完虚拟机,网卡肯定启动不起来。 会报错 service network restartShutting down loopback insterface:

克隆完虚拟机,网卡肯定启动不起来。

会报错

service network restartShutting down loopback insterface:                                                                                                     [  OK  ]Bringing up loopback insterface:                                                                                                          [  OK  ]Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]

处理起来很简单,
修改,/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 0x8086:0x100f (e1000)#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:f6:c7:5e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"# PCI device 0x8086:0x100f (e1000)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:4b:e1:f5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" NAME="eth0"

注意,这个配置文件可能有很多条目,eth0,eth1,eth2,等等,我们要做到很简单:
1.留下ethN(N为最大的那个),其他全部注释。
2.将ethN修改成eth0
3.重启系统,注意不是重启服务

然后就ok了。

广告 广告

评论区