不安装vmware tools的情况下,部署备份的ova虚拟机,找不到网卡的解决办法:
编辑/etc/udev/rules.d/70-persistent-net.rules文件,目前文件中应当有如下内容:
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:b4:04:6b", ATTR
{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:b4:6a:2f", ATTR
{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
将eth0部分的全部删除,然后将"eth1"改为"eth0",保存文件,重起系统。