Unable to build VirtualBox kernel modules from source

Discussions related to using the OSE version of VirtualBox.
Post Reply
hopeful1
Posts: 2
Joined: 27. Nov 2017, 03:35
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Kali Linux

Unable to build VirtualBox kernel modules from source

Post 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.
hopeful1
Posts: 2
Joined: 27. Nov 2017, 03:35
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Kali Linux

Re: Unable to build VirtualBox kernel modules from source

Post by hopeful1 »

Issue resolved.
Had to disable secure boot.
winter
Posts: 9
Joined: 25. Dec 2023, 10:53

Re: Unable to build VirtualBox kernel modules from source

Post 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?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to build VirtualBox kernel modules from source

Post 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.
winter
Posts: 9
Joined: 25. Dec 2023, 10:53

Re: Unable to build VirtualBox kernel modules from source

Post 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.
Post Reply