vmclone 问题
在VMware里克隆出来的CentOS Linux。。
ifconfig...没有看到eth0.。然后重启网卡又报下面错误。
故障现象:
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]
解决办法:
首先,打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:
# vi /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 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8f:89:9
7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:50:bd:1
7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
记录下,eth1网卡的mac地址00:0c:29:50:bd:17
接下来,打开/etc/sysconfig/network-scripts/ifcfg-eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 DEVICE="eth0" 改成 DEVICE="eth1" ,
将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址 HWADDR="00:0c:29:50:bd:17"
最后,重启网络
# service network restart
或者
# /etc/init.d/network restart
正常了。
转载于:https://blog.51cto.com/stephenliu/1348502
vmclone 问题相关推荐
- 【Appium】逍遥模拟器命令memuc功能大全【命令启动】
参考:[逍遥命令] [官方出品]模拟器命令行合集(memuc命令)_码农小钢的博客-CSDN博客 描述:启动指定模拟器 语法:memuc start <-i vmindex | -n vmnam ...
- Vmware Links(转自VMware-land)
这一阵子在专研虚拟机的VSS备份,无意中发现了VMware-land 很好的网站,不知道为什么无法访问,难道也被和谐掉了??? 以下内容是从Google的页面缓存弄出来的,在Google搜索http: ...
- 调试linux内核模块
1:前言: 最近几天学习Linux-2.6平台上的设备驱动,所以要建立内核及内核模块的调试平台.虽然网上有很多相关教程,但多是基于2.6.26以前的通过补丁安装的,过程非常复杂,而且问题比较多.lin ...
最新文章
- eclipse内存占用配置
- SpringBoot初体验
- Proxy代理 和 Reflect反射(反射的是obj)的概念
- CentOS 5.5升级内核到2.6.35.4
- python excel xlwings_python excel神器xlwings
- JavaScript Document对象DOM
- python可以给你干什么-Python到底可以做什么?
- Centos7 只启用iptables 禁用firewalld功能.
- 计算机管理创建超级用户,win10家庭版怎么开启Administrator超级管理员帐户
- 洛谷 P3951 小凯的疑惑
- 你知道吗?世界上绝美神奇的25条路
- 用Python转码恢复乱码中文
- R统计-PCA/PCoA/db-RDA/NMDS/CA/CCA/DCA等排序分析教程
- 基于TensorFlow Lite Micro在物联网设备上玩转TinyML之离线语音唤醒
- AIS数据-渔船的货船的区分(Distinction between the cargo ships of fishing boats)
- 实验七 TCP/IP协议分析
- pandas之DataFrame常用方法
- ArcEngine中的ICommand和ITool
- python爬取百度使用kw关键字爬取时出现,百度安全验证,解决方法
- Echarts的折线图堆叠示例,去掉线上小圆圈;多条折现可重叠。