You are not logged in.
Pages: 1
I very recently started experimenting with custom kernels using different add-on patches and configurations. I think my question can best be summarized from the Arch Wiki Virtualbox page
As the virtualbox-host-dkms package requires compilation, make sure you have the kernel headers corresponding to your custom kernel version to prevent this error from happening
Your kernel headers for kernel your custom kernel version cannot be found at /usr/lib/modules/your custom kernel version/build or /usr/lib/modules/your custom kernel version/source.
If you use a self-compiled kernel and have used make modules_install to install its modules, folders /usr/lib/modules/your custom kernel version/build and (...)/source will be symlinked to your kernel sources. These will act as the kernel headers you need. If you have not removed these kernel sources yet, you have nothing to do.
How can I get new modules to build if I delete the original make folder?
Offline
You PKGBUILD for the custom kernel should also provide the custom heads, just install them. You will need a corresponding custom virtualbox-modules package that depends on the custom headers/kernel.
Offline
You PKGBUILD for the custom kernel should also provide the custom heads, just install them. You will need a corresponding custom virtualbox-modules package that depends on the custom headers/kernel.
I'm not familiar with PKGBUILD. Assuming I followed step by step everything in the Kernels/Compilation/Traditional wiki guide, what are the next commands I should execute? I know I will need a corresponding custom virtualbox-modules package which DKMS builds if I have the kernel sources folder so I'm asking about if I delete that.
Offline
Don't build via the traditional method. Use a PKGBUILD which is superior on so many levels.
Offline
Don't build via the traditional method. Use a PKGBUILD which is superior on so many levels.
Every guide and video and documentation on kernel.org I saw showed building from the kernel sources folder so naturally that is what I followed. Is my question not possible?
Last edited by Name Taken (2014-06-27 09:14:20)
Offline
I don't have time to explain. Your life will be much easier if you do as I suggested. Perhaps someone else can help you.
Offline
Is my question not possible?
Yes, it's possible.
But we're trying to persuade you to use your distro's package manager, to greatly lessen the probability that you mess up your system.
Offline
Build your kernel any way you want, just don't delete the build directory like you did the first time. Have a look at the contents of the official kernel headers package, and use the equivalent files from your custom build.
Offline
Build your kernel any way you want, just don't delete the build directory like you did the first time. Have a look at the contents of the official kernel headers package, and use the equivalent files from your custom build.
I didn't delete it the first time and I was testing in a VM. My laptop boots off a 4GB USB Drive so having a persistent 1.8GB folder is not feasible.
Last edited by Name Taken (2014-06-27 12:58:07)
Offline
You referred to deleting "the original make folder", which was vague - further explanation would be useful to anyone else who tries to help you.
Offline
You referred to deleting "the original make folder", which was vague - further explanation would be useful to anyone else who tries to help you.
I said "if" as in not past tense. In my second post I decided to be more accurate by referring it as the "kernel sources" as in the Arch Wiki Virtualbox page I quoted.
Offline
What exactly is your issue then?
Offline
What exactly is your issue then?
My laptop boots off a 4GB USB Drive so having a persistent 1.8GB folder is not feasible. How can I get new modules to build if I delete the original kernel sources folder?
Offline
OK. Re-read my post #8 above, but this time substitute the word 'keep' instead of the word 'use'.
Beyond that, I would join with others above and strongly recommend that you package your kernel and its headers correctly.
Offline
Pages: 1