LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-04-2010, 03:48 AM   #1
wubai
Member
 
Registered: Dec 2009
Posts: 103

Rep: Reputation: 20
I got a problem "Starting VirtualBox kernel module ...failed!"


Hi all!

i download "VirtualBox-3.1.2-56127-Linux_amd64.run" and installed it , and got a messages like this " virtualbox have been installed successfully in my system ", but when i run virtualbox , i've been told "/etc/init.d/vboxdrv setup" something like that. and i run virtualbox in terminal, got this:

-----
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.29.6) or it failed to
load. Please recompile the kernel module and install it by

sudo /etc/init.d/vboxdrv setup

You will not be able to start VMs until this problem is fixed.
-----

i run "/etc/rc.d/rc.vboxdrv start" as a root, got messages like this :

------
Starting VirtualBox kernel module ...failed!
(modprobe vboxdrv failed. )
------

can anyone help me out ?

Last edited by wubai; 01-04-2010 at 03:49 AM.
 
Old 01-04-2010, 04:00 AM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
you need to load the kernel modules first. As root do..

modprobe vboxdrv
modprobe vboxnetflt
modprobe vboxnetadp

and tell us what happens.
 
1 members found this post helpful.
Old 01-04-2010, 04:03 AM   #3
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
http://slackbuilds.org/slackbuilds/1...ADME.SLACKWARE

Quote:
You'll need to add the following lines to /etc/rc.d/rc.local:

# Start vboxdrv
if [ -x /etc/rc.d/rc.vboxdrv ]; then
/etc/rc.d/rc.vboxdrv start
fi

This will load the support kernel module for VirtualBox.


You'll then need to add the following lines to /etc/rc.d/rc.local_shutdown:

# Stop vboxdrv
if [ -x /etc/rc.d/rc.vboxdrv ]; then
/etc/rc.d/rc.vboxdrv stop
fi


Any user accounts that plan to use virtualbox will need to be members
of the "vboxusers" group.
 
Old 01-04-2010, 04:13 AM   #4
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
i don't think there is a vboxdrv thing in my system, i am not sure

# modprobe vboxdrv
FATAL: Module vboxdrv not found.

modprobe vboxnetflt
FATAL: Module vboxnetflt not found.

modprobe vboxnetadp
FATAL: Module vboxnetadp not found.

am i right ?
 
Old 01-04-2010, 04:17 AM   #5
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
and i run this ,

# /etc/rc.d/rc.vboxdrv setup
Stopping VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)


something error mesgs in the log:

make KBUILD_VERBOSE=1 -C /lib/modules/2.6.29.6/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)

ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

WARNING: Symbol version dump /usr/src/linux-2.6.29.6/Module.symvers
is missing; modules will have no dependencies and modversions.
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/include -Iinclude -I/usr/src/linux-2.6.29.6/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m64 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -I/lib/modules/2.6.29.6/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
cc1: 错误:include/linux/autoconf.h:没有那个文件或目录 (there is no that file or directory)
在包含自 /tmp/vbox.0/include/VBox/types.h:34 的文件中,
从 /tmp/vbox.0/linux/../SUPDrvInternal.h:39,
从 /tmp/vbox.0/linux/SUPDrv-linux.c:37:
/tmp/vbox.0/include/iprt/types.h:100:30: 错误 error:linux/autoconf.h:没有那个文件或目录
在包含自 /tmp/vbox.0/linux/SUPDrv-linux.c:37 的文件中:
/tmp/vbox.0/linux/../SUPDrvInternal.h:84:30: 错误:linux/version.h:没有那个文件或目录
/tmp/vbox.0/linux/../SUPDrvInternal.h:91:8: 警告:“LINUX_VERSION_CODE”未定义
/tmp/vbox.0/linux/../SUPDrvInternal.h:91:29: 警告:“KERNEL_VERSION”未定义
/var/log/vbox-install.log lines 16-29/717 4%
...

...
...

should I put all of log file here ? it seems very long
 
Old 01-04-2010, 04:23 AM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
I would rerun the .run again. watch closely and give us any errors or whatever text returns when your finished.
 
Old 01-04-2010, 04:25 AM   #7
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
should I put all of log file here ? it seems very long
Yes, but put the log within [code] tags.
 
Old 01-04-2010, 04:26 AM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
Hmm, did you remove any kernrel packages? Something is wrong with your kernel it seems. Maybe try reinstalling the kernel packages and reinstalling vbox
 
Old 01-04-2010, 04:27 AM   #9
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
i've been told "/etc/init.d/vboxdrv setup" something like that. and i run virtualbox in terminal, got this:
Try:
Code:
/etc/rc.d/rc.vboxdrv setup
 
Old 01-04-2010, 04:39 AM   #10
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by Daedra View Post
I would rerun the .run again. watch closely and give us any errors or whatever text returns when your finished.
# cd /opt/VirtualBox; ./uninstall.sh
VirtualBox 3.1.2 r56127 has been removed successfully.

# cd /media/data/src/
# ./VirtualBox-3.1.2-56127-Linux_amd64.run

Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation.........
VirtualBox Version 3.1.2 r56127 (2009-12-17T13:42:09Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox vboxdrv kernel module
Failed to build the vboxdrv kernel module.
Please check the log file /var/log/vbox-install.log for more information.

VirtualBox has been installed successfully, but the kernel module could not
be built. When you have fixed the problems preventing this, execute
/etc/init.d/vboxdrv setup
as administrator to build it.

You will find useful information about using VirtualBox in the user manual
/opt/VirtualBox/UserManual.pdf
and in the user FAQ
http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.
 
Old 01-04-2010, 04:39 AM   #11
JokerBoy
Member
 
Registered: Sep 2009
Posts: 140

Rep: Reputation: 23
try:

Code:
# cd "/opt/VirtualBox/src"
# make clean && make && make install


well, do you use a custom kernel?

the same kind of errors i get with nvidia & vbox when i build a custom kernel and after i finished compiling the new kernel i use "make clean", so i don't use "make clean" anymore

Last edited by JokerBoy; 01-04-2010 at 04:42 AM.
 
Old 01-04-2010, 04:40 AM   #12
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
and i run this ,

# /etc/rc.d/rc.vboxdrv setup
Stopping VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
 
Old 01-04-2010, 04:45 AM   #13
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Hi wubai, is the /var/log/vbox-install.log same as the one you posted in your post #5 ? If not post the entire log from beginning to end here. And post the link here.
Which kernel are you using? Stock generic? Huge? Custom? I realize it's 2.6.29.6.

Last edited by ~sHyLoCk~; 01-04-2010 at 04:46 AM.
 
Old 01-04-2010, 04:54 AM   #14
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
@ ~sHyLoCk~:
I did what you told me , the url: http://pastebin.com/m4fe4b3cb

I am runing the slackware64-13.0, and there is only one kernel, isn't it?

# uname -r
2.6.29.6

#ls /boot/
boot.0812 config-huge-2.6.29.6 slack.bmp vmlinuz-generic-2.6.29.6
boot.0820 diag1.img System.map vmlinuz-huge-2.6.29.6
boot_message.txt diag2.img System.map-generic-2.6.29.6
config map System.map-huge-2.6.29.6
config-generic-2.6.29.6 README.initrd vmlinuz

I am useing the vmlinuz-generic-2.6.29.6 one .

Last edited by wubai; 01-04-2010 at 05:06 AM.
 
Old 01-04-2010, 05:07 AM   #15
wubai
Member
 
Registered: Dec 2009
Posts: 103

Original Poster
Rep: Reputation: 20
brb
 
  


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
Problem installing vpn client on Ubuntu: Failed to make module "cisco_ipsec.ko" challysand Linux - Newbie 1 08-29-2009 03:12 PM
Failed to Load Kernel Module "i915" alkos333 Slackware 3 01-13-2007 10:08 PM
Install ati-drivers fails with "Failed to compile kernel module" erpe Debian 2 06-13-2006 06:09 AM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 10:15 PM
"Failed to load module "i915"" Kane635 Linux - Software 0 11-22-2004 09:17 PM


All times are GMT -5. The time now is 04:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration