4
可预测的网络接口名称破坏了虚拟机迁移
/etc/networking/interfaces使用“可预测的网络接口名称”时如何重置? 低于15.10的Ubuntu版本使用以下网络适配器名称: eth0 eth1 eth2 更换网卡或将虚拟机移至新的虚拟机管理程序,将导致Linux增加接口号。删除/etc/udev/rules.d/70-peristent-net.rules将使Linux重用eth0。 Ubuntu 15.10及更高版本使用“ 可预测的网络接口名称 ”。网络适配器名称是从mac地址派生的。 ens3 ens32 ens192 迁移虚拟机时,由于/etc/network/interfaces仍引用旧的不存在的网络适配器,因此网络无法启动。 # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # …