阿里云 - terway网卡丢失

2022-06-24

背景:k8s pod长时间处于ContainerCreating状态,k8s事件提示network: error parse config, can't found dev by mac 00:16:3e:16:a0:d0: not found

- 修复问题
lspci | grep 'Virtio network device' # 查看对应的eni的pci号
ls -l /sys/class/net/eth0/device/driver/ # 看已经存在的网卡对应的virtio名称
ls /sys/devices/pci0000:00/0000:00:0a.0/ | grep virtio# 查找缺失网卡的virtio名称, 如您此节点的virtio6
echo -n virtio7 > /sys/bus/virtio/drivers/virtio_net/bind# 进行绑定
ip l |grep  "00:16:3e:16:a0:d0"

image.png

image.png

image.png


标题:阿里云 - terway网卡丢失
地址:https://blog.njqhome.com:8443/articles/2022/04/27/1651067279760.html