LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-17-2017, 11:42 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Kernel error with virtualbox


Trying to install virtualbox-5.1.12 in Slackware 14.1 & subsequently 14.2, I find it won't load vboxdrv.ko or vboxguest.ko, although it builds them. I've tried with a git of linux-stable-3.19.0-rc6, & slackware's (= Linus') sources version 4.4.14, & 4.4.38. When I check stuff, it looks ropey
Code:
bash-4.3# modprobe vboxdrv.ko
modprobe: FATAL: Module vboxdrv.ko not found in directory /lib/modules/4.4.38
bash-4.3# modprobe vboxguest.ko
modprobe: FATAL: Module vboxguest.ko not found in directory /lib/modules/4.4.38
bash-4.3# ls -lh  /lib/modules/4.4.38/misc
total 1.1M
-rw-r--r-- 1 root root 477K Jan 17 16:14 vboxdrv.ko
-rw-r--r-- 1 root root 352K Jan 17 16:13 vboxguest.ko
-rw-r--r-- 1 root root  13K Jan 17 16:14 vboxnetadp.ko
-rw-r--r-- 1 root root  33K Jan 17 16:14 vboxnetflt.ko
-rw-r--r-- 1 root root  30K Jan 17 16:14 vboxpci.ko
-rw-r--r-- 1 root root  57K Jan 17 16:13 vboxsf.ko
-rw-r--r-- 1 root root  62K Jan 17 16:13 vboxvideo.ko
bash-4.3# depmod -eF /boot/System.map-4.4.38
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_mmap
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_global_release
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_pool_unpopulate
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_manager_func
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_global_init
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_device_release
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_kunmap
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_del_sub_from_lru
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_device_init
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_init_mm
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_dma_acc_size
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_tt_init
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_kmap
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_add_to_lru
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_unref
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_mem_global_release
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_mem_global_init
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_init
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_validate
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_bo_move_memcpy
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_tt_fini
depmod: WARNING: /lib/modules/4.4.38/misc/vboxvideo.ko needs unknown symbol ttm_pool_populate
depmod: WARNING: /lib/modules/4.4.38/misc/vboxdrv.ko needs unknown symbol preempt_notifier_inc
depmod: WARNING: /lib/modules/4.4.38/misc/vboxdrv.ko needs unknown symbol preempt_notifier_register
depmod: WARNING: /lib/modules/4.4.38/misc/vboxdrv.ko needs unknown symbol preempt_notifier_dec
depmod: WARNING: /lib/modules/4.4.38/misc/vboxdrv.ko needs unknown symbol preempt_notifier_unregister
All those symbols appear in the kernel source, but not in system includes or libs that I can find The errors vary from kernel to kernel, but they're generically the same (Missing symbols in the kernel source, but not in system includes or libs). I have verified the download, reinstalled virtualbox, and moved kernels but still no joy. Building the checking targets isn't encouraging. Sanity check (make headers_check) was ok; 'make headersdep' produced recursive inclusion errors
1139 errors linux/mmzone.h:735 (which I will spare you)
192 errors from linux/mm.h:904 (ditto)
And excluding those from the output left these
grep -ve'735' -e '904' /usr/src/linux-4.4.38/headers <--an error output file
from net/caif/caif_device.h:13 <-- here
from net/caif/caif_device.h:13 <-- here
from net/caif/caif_device.h:13 <-- here
from net/caif/caif_device.h:13 <-- here
from net/nfc/nfc.h:25 <-- here
from net/nfc/nfc.h:25 <-- here
from net/nfc/nfc.h:25 <-- here
from net/nfc/nfc.h:25 <-- here
from linux/backlight.h:12 <-- here
from linux/mfd/wm8400-audio.h:24 <-- here
from linux/memory_hotplug.h:4 <-- here

Is this kosher? Commenting those lines (in mmzone.h & mm.h) simply sprung errors in other header files. Does it matter? Any thoughts on |Virtualbox?
 
Old 01-17-2017, 08:49 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I recently installed VBox 5.1.12 on Slack 14.2 and didn't have these warnings.
After I used the wget cmd to download it to my home directory I made the .run executable and than as root it runs and fully installs.

Maybe the new 5.1.14 will have what your kernel needs?

http://download.virtualbox.org/virtu...inux_amd64.run

I've never seen this before:-
Code:
vboxvideo.ko needs unknown symbol
Something is evidently missing and the fact that you have tried various kernels and still get pretty much the same/similar errors I think that implies that something is missing.

I looked in the VBox Forum and found 2 threads with similar errors. Maybe they will help you to understand what the problem is. (I hope so)

https://forums.virtualbox.org/viewtopic.php?f=7&t=24318
https://forums.virtualbox.org/viewtopic.php?f=7&t=66735

Is this the output your getting when you launch VirtualBox from cmd-line?

Do you still get the same ERROR or WARNING when you run this?
Code:
modprobe vboxvideo
Maybe you need to have a symlink pointing to the running kernel? (guessing)
https://archives.gentoo.org/gentoo-u...8892b2e19f8e9c

http://serverfault.com/questions/124...ed-module-prov

It's a bug here-
Code:
with -virtual kernel modprobe ahci will fail to load the ahci module due to missing symbols.
https://bugs.launchpad.net/ubuntu/+s...ux/+bug/658461

Sorry it's giving you so much trouble business_kid.
Wish I knew more:-

IF I find anything worthy I'll post it for you.
 
Old 01-18-2017, 12:01 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Original Poster
Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Thanks for the reply, Ztcoracat. (/thinks: How does somebody PRONOUNCE 'Ztcoracat'?)
Quote:
Originally Posted by Ztcoracat
Something is evidently missing and the fact that you have tried various kernels and still get pretty much the same/similar errors I think that implies that something is missing.
I agree, but I'm unable to find what that something is. The fact that it still manages to puke on the 4.4.14 huge kernel with everything compiled in is disconcerting.

At this stage, I've had this problem on 14.1 & 14.2. This Virtualbox business was a factor in the upgrade. I've tried
* Kernels 3.14.18, 3.19.0-rc6, 4.4.14, & 4.4.38. My own config on the last 3 & slackware's huge 3.14.18, and 4.4.14.
* VirtualBox 5.0.8 & 5.1.12 with matching guest additions & extension pack (Reinstalled just in case).

I'm coming round to thinking maybe it's hardware, or some missing package which I never install. But it seems to be screwing up in the kernel source. It's difficult to think of anything relevant that hasn't been reinstalled. The hardware is
Code:
bash-4.3# lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 7 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
00:1f.5 IDE interface: Intel Corporation 7 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
From memory, that is an i3 CPU with HD4000 GPU & Panther Point chipset. Health reverses never improve memory, though, and I've had one.

On the other links you posted, I did have the symlinks in /boot pointing to 4.4.14, but they're gone now. I don't think ahci is an issue, because it's compiled into the huge kernel, and into mine.
 
Old 01-18-2017, 02:35 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Original Poster
Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Here's an idea, Ztcoracat.

It worked on your box. My laptop's hostname is RoseViolet. This link

https://drive.google.com/open?id=0B1...jlFVWtWOThJV2M

is to a file on my Google drive which is the output of
Code:
ls -1 /var/log/packages > RoseViolet.pkgs
The -1(= number one) gives a single column output. Could you please do the same for your box, download my file, and post the output of
Code:
diff -u RoseViolet.pkgs [your_file] > diff.txt
That will tell me if you have things installed that I haven't, and I can stick some in and see if I can get to the bottom of this mess? I try to keep from installing crap I don't need/use/want like KDE and xf86-video-everything.
 
Old 01-18-2017, 06:23 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
You're Welcome.
You pronounce my name like: ze- tee- cora- cat:-

I downloaded your file RoseViolet.pkgs and it's in my Downloads directory.

Quote:
Could you please do the same for your box, download my file, and post the output of
Sure but I'll need your help.
I don't have anything on Google drive. And I'm not sure where my file would be that I could compare to yours. Do you mean all of the packages that are in my /var/log/packages?

Last edited by Ztcoracat; 01-18-2017 at 06:33 PM.
 
Old 01-18-2017, 06:36 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
My file is named varpkgs.

Code:
bash-4.3$ cd Downloads
bash-4.3$ ls
RoseViolet.pkgs  varpkgs
bash-4.3$ diff -u RoseViolet.pkgs varpkgs  > diff.txt
bash-4.3$ ls
RoseViolet.pkgs  diff.txt  varpkgs
bash-4.3$
Do you want the output of diff.txt?
 
Old 01-19-2017, 04:20 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Original Poster
Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
yes, please. It's probably short enough to post, or else pastebin it.
 
Old 01-19-2017, 06:47 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Here's the link to the file on my system from running the diff cmd that you gave me to compare your file to mine at Tiny-Paste.com.

http://tiny-paste.com/13890/

Let me know if there is anything else I can do:- I'm happy to help.
 
Old 01-19-2017, 08:38 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,257
Blog Entries: 28

Rep: Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119
Try this, as root:

Code:
cd /etc/rc.d
./rc.vboxdrv setup
Let us know what happens.

I know it's kind out out of left field, but it's what I have to do to update the VirtualBox kernel every time the Slackware kernel gets updated.
 
Old 01-19-2017, 09:01 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I had the same issue as you frankbell.

Every time that Centos would upgrade the kernel I would have to run this as root to get VBox working again.

Code:
/etc/init.d/vboxdrv setup
 
Old 01-20-2017, 03:57 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Original Poster
Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Thanks, Ztcoracat. That indicates I have more packages than you. There's none that you have that I don't.

Last edited by business_kid; 01-20-2017 at 04:00 AM.
 
1 members found this post helpful.
Old 01-20-2017, 09:19 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Original Poster
Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
@frankbell: here's the result:
Code:
bash-4.3# /etc.rc.d/init.d/vboxdrv setup
bash: /etc.rc.d/init.d/vboxdrv: No such file or directory
bash-4.3# /etc/rc.d/init.d/vboxdrv setup
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
This dmesg led me on an interesting chase. If you make a later version of the kernel in the source (as I had, but wpa_supplicant misbehaved) then the version magic is wrong and you need a ‘make distclean’ to restore it. Make clean isn’t enough. In short, your source has to match the running kernel version

Done this way, vboxdrv builds ok without error, which is progress. The Guest additions still crap out on vboxguest, and that needs looking into.
 
Old 01-20-2017, 05:06 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by business_kid View Post
Thanks, Ztcoracat. That indicates I have more packages than you. There's none that you have that I don't.
You're Welcome-
 
Old 01-23-2017, 12:05 PM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Original Poster
Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Finally sorted after a fashion.
I removed everything virtualbox I could find including the VMs and started over with 5.1.12. I got that going, although I had to remake the running kernel in the source after a 'make distclean' and copy over the System.map, as the new one had some symbols the original didn't and virtualbox modules puked for the lack of them.

I am thoroughly sick to the teeth of this, and will struggle with guest additions when I recover sufficiently.

There may have been stray stuff from old versions lying around but I don't really understand the refusal to work, or the thing working now
 
Old 01-23-2017, 01:37 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
I am thoroughly sick to the teeth of this
Sorry to hear you had to jump through so many hoops to get it working.
I'm thinking that it should not be that difficult to be able to have and run VBox.

Glad you got it working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Virtualbox-kernel compile error. business_kid Linux - Software 10 05-05-2015 05:54 PM
[SOLVED] Weird kernel Versioning error with Virtualbox-kernel. Sed magic needed? business_kid Slackware 7 05-05-2015 03:34 PM
Kernel build Virtualbox error CollieJim Linux - Kernel 3 04-27-2013 10:25 AM
VirtualBox 3.1.6 kernel @ SlackBuild error - kernel include dir dc_eros Slackware 4 05-31-2010 11:24 PM
Virtualbox Error - Kernel driver not installed (rc=-1908) callumacrae Linux - Software 11 10-28-2009 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration