LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2010, 09:34 AM   #1
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Rep: Reputation: 18
# /etc/rc.d/rc.vboxdrv setup fails on -current


Hi all,

I'm still having problems trying to setup VirtualBox here.

I have a fresh install of Slackware64-current and tried VirtualBox 3.1.6 PUEL. It installs smoothly, but when I start it, it gives out a warning saying vboxdrv is not good and asks to rebuild it using
Code:
# /etc/rc.d/rc.vboxdrv setup
Which fails every time I try running it...

I have already tried
Code:
# cd /usr/src/linux/include/linux
# ln -s ../generated/autoconf.h autoconf.h
And it stills fails to build vboxdrv.

Any tips?

Thanks in advance,
gtludwig

Last edited by gtludwig; 03-31-2010 at 09:43 AM.
 
Old 03-31-2010, 09:54 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183
you have to have installed the kernel-source package. If it doesn't build with those sources installed then do this:
Code:
cd /usr/src/linux/arch
ln -s x86 amd64
and "/etc/rc.d/rc.vboxdrv setup" should work.

Last edited by ponce; 03-31-2010 at 10:32 AM.
 
Old 03-31-2010, 11:53 AM   #3
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
I have these packages installed:
Code:
root@cpc-5564:~# ls /var/log/packages/kernel-*
/var/log/packages/kernel-firmware-2.6.33-noarch-1
/var/log/packages/kernel-generic-2.6.33-x86_64-1
/var/log/packages/kernel-headers-2.6.33-x86-1
/var/log/packages/kernel-huge-2.6.33-x86_64-2
/var/log/packages/kernel-modules-2.6.33-x86_64-1
/var/log/packages/kernel-source-2.6.33-noarch-1
On your post, you offered a sym link solution. I don't know whether or not it was a typo, but I tried the sym link approach to both x86 and x86_64.
Code:
root@cpc-5564:~# ls -la /usr/src/linux/arch/amd64 
lrwxrwxrwx 1 root root 6 Mar 31 12:03 /usr/src/linux/arch/amd64 -> x86
Code:
root@cpc-5564:~# ls -la /usr/src/linux/arch/amd64 
lrwxrwxrwx 1 root root 6 Mar 31 12:03 /usr/src/linux/arch/amd64 -> x86_64
Still the same result:
Code:
root@cpc-5564:~# /etc/rc.d/rc.vboxdrv setup
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
Stopping VirtualBox kernel module ...done.
Removing old VirtualBox netadp kernel module ...done.
Removing old VirtualBox netflt kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...done.
Starting VirtualBox kernel module ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
root@cpc-5564:~#
I checked dmesg once again and right at its end, this pops out:
Code:
 (...)
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
CE: hpet increasing min_delta_ns to 15000 nsec
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
vboxdrv: version magic '2.6.33 SMP preempt mod_unload ' should be '2.6.33 SMP mod_unload '
Still lost here...
 
Old 03-31-2010, 12:11 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183
now it looks like the kernel module builds, but there should be an install/build log too (in /var/log, if I remember well)...

which kernel are you using? can you do please an
Code:
ls -la /boot
the error message says that the kernel source files you built against do not match the running kernel and it refuses to load the module.

the symlink I suggested was not a typo: x86_64 get create during kernel build as a symlink to x86, so you have to do the symlink to x86.
check also /usr/src/linux-2.6.33/arch
Code:
ls -la /usr/src/linux-2.6.33/arch

Last edited by ponce; 03-31-2010 at 12:33 PM.
 
Old 03-31-2010, 12:35 PM   #5
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Original Poster
Rep: Reputation: 18
Got it working!

I'm using -current stock huge kernel
Code:
gtl@cpc-5564:~$ ls -la /boot/
total 16752
drwxr-xr-x  2 root root    4096 2010-03-31 14:07 ./
drwxr-xr-x 21 root root    4096 2010-03-31 14:04 ../
lrwxrwxrwx  1 root root      37 2010-03-29 07:18 README.initrd -> /usr/doc/mkinitrd-1.4.3/README.initrd
lrwxrwxrwx  1 root root      22 2010-03-31 14:03 System.map -> System.map-huge-2.6.33
-rw-r--r--  1 root root 1757406 2010-03-30 13:58 System.map-custom-2.6.33
-rw-r--r--  1 root root 1512231 2010-02-27 19:45 System.map-generic-2.6.33
-rw-r--r--  1 root root 2508251 2010-03-07 14:36 System.map-huge-2.6.33
-rw-r--r--  1 root root     512 2010-03-29 07:26 boot.0800
-rw-r--r--  1 root root     137 2010-03-29 07:25 boot_message.txt
lrwxrwxrwx  1 root root      18 2010-03-31 14:03 config -> config-huge-2.6.33
-rw-r--r--  1 root root   97511 2010-03-30 13:59 config-custom-2.6.33
-rw-r--r--  1 root root  101662 2010-02-27 19:45 config-generic-2.6.33
-rw-r--r--  1 root root  101615 2010-03-07 14:36 config-huge-2.6.33
-rw-r--r--  1 root root    5040 2010-02-15 00:09 diag1.img
-rw-r--r--  1 root root   17932 2010-02-15 00:09 diag2.img
-rw-------  1 root root  119808 2010-03-31 14:07 map
-rw-r--r--  1 root root   17318 2008-12-08 22:56 slack.bmp
lrwxrwxrwx  1 root root      19 2010-03-31 14:03 vmlinuz -> vmlinuz-huge-2.6.33
-rw-r--r--  1 root root 3180448 2010-03-30 13:58 vmlinuz-custom-2.6.33
-rw-r--r--  1 root root 2511152 2010-02-27 19:45 vmlinuz-generic-2.6.33
-rw-r--r--  1 root root 5173888 2010-03-07 14:36 vmlinuz-huge-2.6.33
I installed VirtualBox PUEL 3.1.4 and the virtualbox-kernel SlackBuild. And it started like a charm.

Thanks for the help!
 
  


Reply



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
inkscape fails on current... imitis Slackware 6 04-07-2010 10:08 AM
[SOLVED] problem with /etc/init.d/vboxdrv setup brucehinrichs Linux - Software 4 03-28-2010 08:32 PM
lmms slackbuild fails with -current the_penguinator Slackware 3 02-03-2010 09:24 AM
Getting Virtual Box to run XP problem with the /etc/init.d/vboxdrv setup FrankRhoades Linux - Software 10 01-24-2010 12:06 PM
[SOLVED] Firefox fails to compile on -current Daedra Slackware 7 01-16-2010 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:30 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