VirtualBox 6.0.6 install fails on CentOS 7.6

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mikebo
Posts: 10
Joined: 8. Sep 2008, 21:09

VirtualBox 6.0.6 install fails on CentOS 7.6

Post by mikebo »

vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
root@toybox:~ # cat /var/log/vbox-setup.log
Building the main VirtualBox module.
Error building the module:
/tmp/vbox.0/Makefile-header.gmk:100: *** The variable KERN_DIR must be a kernel build folder and end with /build without a trailing slash, or KERN_VER must be set.  Stop.
FYI, my KERN_DIR is set to this, and install works fine with VirtualBox 6.0.4:
root@toybox:~ # echo $KERN_DIR
/usr/src/kernels/3.10.0-957.10.1.el7.x86_64

root@toybox:~ # cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

root@toybox:~ # yum list installed | grep kernel | grep 3.10.0-957.10.1
kernel.x86_64                           3.10.0-957.10.1.el7            @bronze
kernel-abi-whitelists.noarch            3.10.0-957.10.1.el7            @bronze
kernel-devel.x86_64                     3.10.0-957.10.1.el7            @bronze
kernel-headers.x86_64                   3.10.0-957.10.1.el7            @bronze
kernel-tools.x86_64                     3.10.0-957.10.1.el7            @bronze
kernel-tools-libs.x86_64                3.10.0-957.10.1.el7            @bronze
Any suggestions? The contents of KERN_DIR directory are listed below.
Thanks for any help!

Code: Select all

root@toybox:~ # cd $KERN_DIR
root@toybox:/usr/src/kernels/3.10.0-957.10.1.el7.x86_64 # ls -l
total 4676
-rw-r--r--   3 root root     505 Aug 14  2018 Kconfig
-rw-r--r--   1 root root   51298 Mar 18 10:10 Makefile
-rw-r--r--   3 root root    2305 Aug 14  2018 Makefile.qlock
-rw-r--r--   2 root root 1123561 Mar 18 10:10 Module.symvers
-rw-r--r--   1 root root 3544363 Mar 18 10:10 System.map
drwxr-xr-x  32 root root    4096 Mar 22 15:35 arch
drwxr-xr-x   3 root root      74 Mar 22 15:35 block
drwxr-xr-x   4 root root      72 Mar 22 15:35 crypto
drwxr-xr-x 119 root root    4096 Mar 22 15:35 drivers
drwxr-xr-x   2 root root      21 Mar 22 15:35 firmware
drwxr-xr-x  75 root root    4096 Mar 22 15:35 fs
drwxr-xr-x  28 root root    4096 Mar 22 15:35 include
drwxr-xr-x   2 root root      35 Mar 22 15:35 init
drwxr-xr-x   2 root root      21 Mar 22 15:35 ipc
drwxr-xr-x  13 root root    4096 Mar 22 15:35 kernel
drwxr-xr-x  10 root root    4096 Mar 22 15:35 lib
drwxr-xr-x   2 root root      55 Mar 22 15:35 mm
drwxr-xr-x  61 root root    4096 Mar 22 15:35 net
drwxr-xr-x  15 root root    4096 Mar 22 15:35 samples
drwxr-xr-x  13 root root    4096 Mar 22 15:35 scripts
drwxr-xr-x   9 root root     127 Mar 22 15:35 security
drwxr-xr-x  24 root root    4096 Mar 22 15:35 sound
drwxr-xr-x  20 root root    4096 Mar 22 15:35 tools
drwxr-xr-x   2 root root      35 Mar 22 15:35 usr
drwxr-xr-x   4 root root      41 Mar 22 15:35 virt
-rw-r--r--   1 root root      41 Mar 18 10:10 vmlinux.id
Last edited by socratis on 19. Apr 2019, 23:08, edited 1 time in total.
Reason: Fixed formatting.
mikebo
Posts: 10
Joined: 8. Sep 2008, 21:09

Re: VirtualBox 6.0.6 install fails on CentOS 7.6

Post by mikebo »

Oddly... I tried to start up VMs even with the above error and everything started up.

Quite deceiving error messages. ;)
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox 6.0.6 install fails on CentOS 7.6

Post by socratis »

mikebo wrote:
Look at /var/log/vbox-setup.log to find out what went wrong.
Did you ever follow the instructions given?
Did you ever look in "/var/log/vbox-setup.log"?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply