DPDK 启动失败 Cause: No Ethernet ports

# DPDK 启动失败了
EAL: Error - exiting with code: 1
  Cause: No Ethernet ports - bye
 
# 先看有没有 lspci 命令,没有使用一下命令安装
[root@localhost usertools]# yum install pciutils
 
# 结果还是启动不了
 
# 用以下命令看网卡有没有绑定
[root@localhost usertools]# {dpdk-content}/usertools/dpdk-devbind.py --status
 
# 发现没有绑定,加载 kni 模块
[root@localhost usertools]# insmod rte_kni.ko
 
# 成功,加载 igb_uio 模块
 
# 先加载 uio
[root@localhost usertools]# modprobe uio
 
# 查看是否加载成功
[root@localhost usertools]# lsmod | grep uio
 
# 安装 igb_uio.ko
[root@localhost usertools]# insmod /.var/.opt/igb_uio.ko
insmod: ERROR: could not insert module /.var/.opt/igb_uio.ko: Invalid parameters
 
# 加载 igb_uio.ko 时报错,使用 dmesg 查看错误信息
[root@localhost usertools]# dmesg
...
[ 2643.211204] igb_uio: disagrees about version of symbol sysfs_create_group
[ 2643.211205] igb_uio: Unknown symbol sysfs_create_group (err -22)
[ 2643.211214] igb_uio: disagrees about version of symbol sysfs_remove_group
[ 2643.211215] igb_uio: Unknown symbol sysfs_remove_group (err -22)
[ 2643.211222] igb_uio: disagrees about version of symbol uio_unregister_device
[ 2643.211223] igb_uio: Unknown symbol uio_unregister_device (err -22)
[ 2643.211225] igb_uio: disagrees about version of symbol pci_disable_sriov
[ 2643.211226] igb_uio: Unknown symbol pci_disable_sriov (err -22)
[ 2643.211232] igb_uio: disagrees about version of symbol pci_enable_sriov
[ 2643.211233] igb_uio: Unknown symbol pci_enable_sriov (err -22)
 
# 发现是版本不对,使用 uname -a 查看一下内核版本和更新日期,一看发现时最近更新的,好死不死还重启了下。接下来就是启动原来的内核版本
 
# 查看系统默认启动内核版本
[root@localhost usertools]# grub2-editenv list
saved_entry=CentOS Linux (3.10.0-1160.25.1.el7.x86_64) 7 (Core)
 
# 查看系统中所有的内核版本
[root@localhost usertools]# cat /boot/grub2/grub.cfg | grep menuentry
if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
  menuentry_id_option=""
export menuentry_id_option
menuentry 'CentOS Linux (3.10.0-1160.25.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.el7.x86_64-advanced-49fbb0ce-8f7a-4815-a215-6ca039b9bdf9' {
menuentry 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.el7.x86_64-advanced-49fbb0ce-8f7a-4815-a215-6ca039b9bdf9' {
menuentry 'CentOS Linux (0-rescue-8d8b4f9afd384fdda03bbca95f131d4a) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-8d8b4f9afd384fdda03bbca95f131d4a-advanced-49fbb0ce-8f7a-4815-a215-6ca039b9bdf9' {
 
# 修改默认启动的内核版本
[root@localhost usertools]# sudo grub2-set-default 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)'
 
# 确认修改结果
[root@localhost usertools]#  sudo grub2-editenv list
saved_entry=CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)
 
# 重启
[root@localhost usertools]# reboot
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值