Page 1 of 1

Unable to build VirtualBox kernel modules from source

Posted: 27. Nov 2017, 04:04
by hopeful1
I ran ./configure from my VirtualBox-5.2.2 and here is my terminal output:
Checking for environment: Determined build machine: linux.amd64, target machine: linux.amd64, OK.
...
Checking for Linux kernel sources: found version 4.13.8, OK.
Detected Linux >= 4.8 -- disabling compiling of Linux kernel modules.
Checking for ALSA: found version 1.1.3, OK.
Checking for libdevmapper: found version 1.02.137 (2016-11-30), OK.
Checking for libcap library: found, OK.
Checking for compiler.h: compiler.h not found, OK.
Checking for 32-bit support: OK.
Checking for makeself: found version 2.3.0, OK.
I followed the build instructions from the VirtualBox website and the source code is from the official website.
'./configure' command runs ok but for the "Detected Linux >= 4.8 -- disabling compiling of Linux kernel modules." line shown above.
The 'kmk all' command appears to have run fine.
I go to the 'out/linux.amd64/release/bin/src', run 'make'. No errors but no modules after 'make install'
'./VirtualBox' runs from the 'out/linux.amd64/release/bin' directory


How do I build the kernel modules for kernel > 4.8 ?
This is my first post, please pardon any errors.
Thanks for your help.

Re: Unable to build VirtualBox kernel modules from source

Posted: 28. Nov 2017, 19:27
by hopeful1
Issue resolved.
Had to disable secure boot.

Re: Unable to build VirtualBox kernel modules from source

Posted: 26. Dec 2023, 02:38
by winter
hopeful1 wrote: 28. Nov 2017, 19:27 Issue resolved.
Had to disable secure boot.
Could you please show me how to disable secure boot?

Re: Unable to build VirtualBox kernel modules from source

Posted: 26. Dec 2023, 04:27
by scottgus1
winter wrote: 26. Dec 2023, 02:38 Could you please show me how to disable secure boot?
I'd be surprised if OP comes back 6 years later. But Secure Boot is not a Virtualbox thing. It's a host BIOS and OS thing. web-search how to disable it on your physical PC and host OS.

Re: Unable to build VirtualBox kernel modules from source

Posted: 26. Dec 2023, 14:35
by winter
scottgus1 wrote: 26. Dec 2023, 04:27
winter wrote: 26. Dec 2023, 02:38 Could you please show me how to disable secure boot?
I'd be surprised if OP comes back 6 years later. But Secure Boot is not a Virtualbox thing. It's a host BIOS and OS thing. web-search how to disable it on your physical PC and host OS.
Thank you and I just give up building vbox 5.1.30 on kernel 4.15.0.