网卡不存在

安装完一个centos虚拟机,又拷贝一份,开机后网卡无法正常启动,报错:Device eth0 does not seem to be present, delaying initialization

解决:

mv /etc/sysconfig/network-scripts/ifcfg-eth0 sysconfig/network-scripts/ifcfg-eth1
vim sysconfig/network-scripts/ifcfg-eth1
  • 修改DEVICE="eth0" 为DEVICE="eth1"

  • 可删掉uuid、物理地址

  • 然后重启启动网卡