Open jeromesun14 opened 8 years ago
I found that vxlan codes changed a lot during Linux kernel 4.x
Steps to compile vxlan kernel module with ubuntu 16.04: (e.g. degrade kernel 4.4.x to 3.19.8)
sudo apt-get install module-init-tools
sudo dpkg -i linux-headers-3.19.8-031908_3.19.8-031908.201505110938_all.deb
, sudo dpkg -i linux-image-3.19.8-031908-generic_3.19.8-031908.201505110938_amd64.deb
/usr/src/linux-headers-3.19.8-031908-generic/include/generated/utsrelease.h
macro #define UTS_UBUNTU_RELEASE_ABI 031908
to #define UTS_UBUNTU_RELEASE_ABI 31908
, as dkms use the macro as octal data.sudo mv /var/lib/docker /var/lib/docker.old
uname -a
You may have a look at my blog: startup_with_old_kernel and docker_failed_after_update_kernel.
After degrade linux kernel, I can now compile run vxlan.ko but I encountered into some other issues, and still worked hard to run apps/int.
compile log: