-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build kernel module with kernel sources from linuxkit/kernel:4.19.76 #6099
Comments
Thanks for your report. It's not currently obvious which image corresponds to which version -- I'll have to think about where to put that information. In kernel 2.2.0.4 the kernel is https://hub.docker.com/layers/docker/for-desktop-kernel/4.19.76-d665d2cbc4fe70f8ab08ba2cd82d052e41d2a704-amd64/images/sha256-c42bff3d5f285dcb1dde0937a8b99e2f51f1f764bd9b847c5d188fd02bb74136?context=explore To look inside and see the headers + source:
That should be enough to completely recompile the kernel. To make a loadable module I'm not 100% sure as there may be an interaction with the RANDSTRUCT stuff -- let me know how you get on and if there is more info needed. In future we'd like to use a linuxkit 5.4 kernel directly -- this 4.19 has a couple of backports: mostly FUSE bugfixes plus the |
Thank you, @djs55! With that kernel image I was able to successfully build a working kernel module. |
@etherai thanks for the confirmation, and sorry for the hassle! |
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Attempting to build kernel module results in a kernel module that cannot be inserted.
Issue description here: linuxkit/linuxkit#3402
In the above issue I found https://hub.docker.com/r/docker/for-desktop-kernel/tags?page=1&name=4.19.76
but it is not clear which container has the sources that match the kernel that is shipping with Docker for Windows. I tried a couple and still got the magic version mismatch error on attempting to load the module.
Thanks for the guidance!
Actual behavior
It should be obvious which kernel headers I should be building against.
Information
The text was updated successfully, but these errors were encountered: