Compiled DPKD and failed to install openvswitch with that...?

danielc

Member
Feb 28, 2018
35
2
13
41
Hello,

Installed Proxmox 6 and would like to compile DPKD and install openvswitch.
Installed package pve-headers, however during compile of DPKD:

make[7]: *** /lib/modules/5.0.15-1-pve/build: No such file or directory. Stop.
make[6]: *** [/usr/src/dpdk-stable-18.11.5/mk/rte.module.mk:51: igb_uio.ko] Error 2
make[5]: *** [/usr/src/dpdk-stable-18.11.5/mk/rte.subdir.mk:37: igb_uio] Error 2
make[4]: *** [/usr/src/dpdk-stable-18.11.5/mk/rte.subdir.mk:37: linux] Error 2
make[3]: *** [/usr/src/dpdk-stable-18.11.5/mk/rte.sdkbuild.mk:51: kernel] Error 2
make[2]: *** [/usr/src/dpdk-stable-18.11.5/mk/rte.sdkroot.mk:101: all] Error 2
make[1]: *** [/usr/src/dpdk-stable-18.11.5/mk/rte.sdkinstall.mk:58: pre_install] Error 2
make: *** [/usr/src/dpdk-stable-18.11.5/mk/rte.sdkroot.mk:79: install] Error 2
root@pve:/usr/src/dpdk-stable-18.11.5#

Would you please you please let me know how can i solve this problem?

Thanks
 
At the time of compiling, what was you running kernel and what version of pve-headers was installed?
 
  • Like
Reactions: danielc
Hello lhorace,

root@pve:~# uname -a
Linux pve 5.0.15-1-pve #1 SMP PVE 5.0.15-1 (Wed, 03 Jul 2019 10:51:57 +0200) x86_64 GNU/Linux

root@pve:~# apt list --installed | grep pve-headers

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

pve-headers-5.0.21-5-pve/stable,now 5.0.21-10 amd64 [installed,automatic]
pve-headers-5.0/stable,now 6.0-11 all [installed,automatic]
pve-headers/stable,now 6.0-2 all [installed]

Thanks for your respond, seems there is a new kernel but i have not updated it yet

root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
pve-kernel-5.0.21-5-pve

After installed it, restart and compile again, seems ok now.
Thank you!
 
if needed, I just backported ovs 2.11 from debian testing, with dpdk support too.

http://odisoweb1.odiso.net/proxmox-ovs-2.11/

Do you really need to rebuild dpdk package ? (because it's already available in debian buster https://packages.debian.org/buster/dpdk)

Hello,

The reason i rebuild the dpdk is that i know it only works with the kernel headers....

If i install the package will that works for the kernel too? Also does this works for openswitch as well(openswitch with dpkd)? (Sorry for the doubting)

Indeed even i can compile that dpkd successfully , i still have problem of install openvswitch with that...

root@pve:/usr/src/dpdk-stable-19.08.2# export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
root@pve:/usr/src/dpdk-stable-19.08.2# make install T=$DPDK_TARGET DESTDIR=install
Configuration done using x86_64-native-linuxapp-gcc
== Build lib
== Build lib/librte_kvargs
== Build lib/librte_eal
/usr/src/dpdk-stable-19.08.2/mk/toolchain/gcc/rte.toolchain-compat.mk:37: AVX512 support disabled because of binutils 2.31. See Bug 249
== Build lib/librte_eal/common
.....
Build complete [x86_64-native-linuxapp-gcc]
================== Installing install/
Installation in install/ complete

root@pve:/usr/src/openvswitch-2.12.0# ./configure --with-dpdk=$DPDK_BUILD
........
checking whether dpdk datapath is enabled... yes
checking for rte_config.h... no
configure: error: unable to find rte_config.h in /x86_64-native-linuxapp-gcc


root@pve:/usr/src/dpdk-stable-19.08.2/x86_64-native-linuxapp-gcc# ls -l
total 32
-rw-r--r-- 1 root root 279 Nov 20 13:43 Makefile
drwxr-xr-x 2 root root 4096 Nov 21 16:38 app
drwxr-xr-x 7 root root 4096 Nov 21 16:36 build
drwxr-xr-x 3 root root 12288 Nov 21 16:36 include
drwxr-xr-x 2 root root 4096 Nov 21 16:30 kmod
drwxr-xr-x 2 root root 4096 Nov 21 16:36 lib
root@pve:/usr/src/dpdk-stable-19.08.2/x86_64-native-linuxapp-gcc#

Not sure how to solve this as well....
 
Last edited: