You are not logged in.

#1 2010-07-09 18:16:39

Kaloos
Member
Registered: 2009-04-27
Posts: 29

[Solved] Virtualbox : vboxdrv module not found

Hi,

My linux can't seem to find the vboxdrv module for virtualbox when i install virtualbox OSE or PUEL.
I tried /etc/rc.d/vboxdrv setup and it printed "Done", but it doesn't change anything :

[root@Arch alexb]# modprobe vboxdrv
FATAL: Module vboxdrv not found.     
                                                                                          
[root@Arch alexb]# locate vboxdrv.ko
/lib/modules/2.6.29-ARCH/misc/vboxdrv.ko                                                                                          
/usr/lib/virtualbox/src/vboxdrv.ko                                                                                                
/usr/lib/virtualbox/src/vboxdrv/.vboxdrv.ko.cmd
/usr/lib/virtualbox/src/vboxdrv/vboxdrv.ko
  
[root@Arch alexb]# uname -a
Linux Arch 2.6.34-ARCH #1 SMP PREEMPT Mon Jul 5 21:03:38 UTC 2010 i686 Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux

Any idea why it's not found ? And why is the kernel module built in the 2.6.29 directory instead of the 2.6.34 one ?

Last edited by Kaloos (2010-07-11 09:47:51)

Offline

#2 2010-07-09 18:32:37

jack.mitchell
Member
From: Ely, Cambridgeshire, UK
Registered: 2008-08-28
Posts: 156
Website

Re: [Solved] Virtualbox : vboxdrv module not found

Offline

#3 2010-07-09 18:38:01

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

Thanks for your answer, but that's not it, since there was no kernel upgrade.
Like i said in my first post, i did /etc/rc.d/vboxdrv setup and it didn't change anything.
Also it's the first time i try to install Virtualbox. So it should build the module for my current kernel.

Offline

#4 2010-07-09 19:19:03

jack.mitchell
Member
From: Ely, Cambridgeshire, UK
Registered: 2008-08-28
Posts: 156
Website

Re: [Solved] Virtualbox : vboxdrv module not found

How did you install Virtual Box? Through Pacman/AUR/ABS?

Offline

#5 2010-07-09 19:24:27

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

With Yaourt.
I get the same problem if i install the OSE version or the PUEL version (AUR package : http://aur.archlinux.org/packages.php?ID=9753).

Thanks for your time tongue

Offline

#6 2010-07-09 19:27:33

alyy
Member
Registered: 2010-05-20
Posts: 6

Re: [Solved] Virtualbox : vboxdrv module not found

-edit-wrong message-

Last edited by alyy (2010-07-09 19:29:08)

Offline

#7 2010-07-09 19:31:18

jack.mitchell
Member
From: Ely, Cambridgeshire, UK
Registered: 2008-08-28
Posts: 156
Website

Re: [Solved] Virtualbox : vboxdrv module not found

Have you got the newest kernel headers installed?

sudo pacman -S kernel-headers

Then try rebuilding the module.

Offline

#8 2010-07-09 19:44:41

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

Nah, still not found.
Though it had updated linux-api-headers to 2.6.34.

Offline

#9 2010-07-09 20:36:11

jack.mitchell
Member
From: Ely, Cambridgeshire, UK
Registered: 2008-08-28
Posts: 156
Website

Re: [Solved] Virtualbox : vboxdrv module not found

Only other thing i'd try would be:

If you are using an old virtualbox_bin package built from AUR, run:

# vbox_build_module

Taken from the wiki. Other than that I've no idea mate, it's workin' fine over here!

Good luck if this doesn't help and I hope someone else can give you some other suggestions!

Jack.

Offline

#10 2010-07-09 20:50:14

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

No i don't have any vbox_build_module, and i'm using the latest version from AUR.
I'll try to find something else.
Thanks anyway.

Offline

#11 2010-07-10 10:21:41

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

Ok now i tried to uninstall and reinstall virtualbox, but there is another problem.
I try to do /etc/rc.d/vboxdrv setup, it says "done" but it's not created...

Offline

#12 2010-07-10 10:38:22

ploub
Member
Registered: 2007-05-16
Posts: 132

Re: [Solved] Virtualbox : vboxdrv module not found

I know this may be a dumb question, but have you loaded the vboxdrv module?

sudo modprobe vboxdrv

And add it to your modules array.

Offline

#13 2010-07-10 10:44:20

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

I can't load it, there is no vboxdrv.ko like i said in the previous posts.

Offline

#14 2010-07-10 10:51:40

ploub
Member
Registered: 2007-05-16
Posts: 132

Re: [Solved] Virtualbox : vboxdrv module not found

OK, it was a dumb question.
I updated yesterday through yaourt with no problem though.

Offline

#15 2010-07-10 11:18:31

maevius
Member
From: Greece
Registered: 2009-09-10
Posts: 135
Website

Re: [Solved] Virtualbox : vboxdrv module not found

The reason why it's not loaded is because it's not built for your current kernel. Do a

# pacman -Sc

to clear ur cache, then do the following. First uninstall vbox then download file from here (assuming you got x64 installed) and install with

pacman -U file.pkg.tar.xz

Or you could download the files from here and build it locally. Bear in mind that with this PKGBUILD you rebuild the module with the vbox_build_module command.

Last edited by maevius (2010-07-10 11:19:30)

Offline

#16 2010-07-10 11:35:16

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Virtualbox : vboxdrv module not found

Build output is logged in /var/log/box-install.log - see if there are any clues there.

Also note that Linux-api-headers is not relevant here -you need kernel26-headers.

Offline

#17 2010-07-10 16:46:23

kcholakov
Member
From: Bulgaria
Registered: 2010-06-26
Posts: 40

Re: [Solved] Virtualbox : vboxdrv module not found

Run:
1) /etc/rc.d/vboxdrv setup
2) modprobe vboxdrv

Last edited by kcholakov (2010-07-10 16:46:44)

Offline

#18 2010-07-10 20:35:20

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

@Maevius i don't have an x64 system.

@tomk
Thanks. Here's what i get in the log file after the module is built :

[root@Arch alexb]# /etc/rc.d/vboxdrv setup
:: Recompiling VirtualBox kernel modules                                                                                                                                     [DONE] 
[root@Arch alexb]# tail /var/log/vbox-install.log                                                                                                                                  
  gcc -Wp,-MD,/tmp/vbox.0/math/gcc/.qdivrem.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/include -I/usr/src/linux-2.6.34-ARCH/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/lib/modules/2.6.34-ARCH/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 -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qdivrem)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxnetadp)"  -c -o /tmp/vbox.0/math/gcc/qdivrem.o /tmp/vbox.0/math/gcc/qdivrem.c                                                                                                                  
  gcc -Wp,-MD,/tmp/vbox.0/math/gcc/.udivdi3.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/include -I/usr/src/linux-2.6.34-ARCH/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/lib/modules/2.6.34-ARCH/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 -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(udivdi3)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxnetadp)"  -c -o /tmp/vbox.0/math/gcc/udivdi3.o /tmp/vbox.0/math/gcc/udivdi3.c                                                                                                                  
  gcc -Wp,-MD,/tmp/vbox.0/math/gcc/.umoddi3.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/include -I/usr/src/linux-2.6.34-ARCH/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/lib/modules/2.6.34-ARCH/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 -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(umoddi3)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxnetadp)"  -c -o /tmp/vbox.0/math/gcc/umoddi3.o /tmp/vbox.0/math/gcc/umoddi3.c                                                                                                                  
  ld -m elf_i386   -r -o /tmp/vbox.0/vboxnetadp.o /tmp/vbox.0/linux/VBoxNetAdp-linux.o /tmp/vbox.0/VBoxNetAdp.o /tmp/vbox.0/math/gcc/divdi3.o /tmp/vbox.0/math/gcc/moddi3.o /tmp/vbox.0/math/gcc/qdivrem.o /tmp/vbox.0/math/gcc/udivdi3.o /tmp/vbox.0/math/gcc/umoddi3.o                                                                                                
(cat /dev/null;   echo kernel//tmp/vbox.0/vboxnetadp.ko;) > /tmp/vbox.0/modules.order                                                                                               
make -f /usr/src/linux-2.6.34-ARCH/scripts/Makefile.modpost                                                                                                                         
  scripts/mod/modpost   -i /usr/src/linux-2.6.34-ARCH/Module.symvers -I /tmp/vbox.0/Module.symvers  -o /tmp/vbox.0/Module.symvers -S -w  -s                                         
  gcc -Wp,-MD,/tmp/vbox.0/.vboxnetadp.mod.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/include -I/usr/src/linux-2.6.34-ARCH/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/lib/modules/2.6.34-ARCH/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 -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxnetadp.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxnetadp)"  -DMODULE -c -o /tmp/vbox.0/vboxnetadp.mod.o /tmp/vbox.0/vboxnetadp.mod.c                                                                                                                 
  ld -r -m elf_i386 -T /usr/src/linux-2.6.34-ARCH/scripts/module-common.lds --build-id -o /tmp/vbox.0/vboxnetadp.ko /tmp/vbox.0/vboxnetadp.o /tmp/vbox.0/vboxnetadp.mod.o           
install: groupe non valide « root »
[root@Arch alexb]#

It says "invalid group root" when it wants to install the module, why ?

Offline

#19 2010-07-10 20:50:39

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] Virtualbox : vboxdrv module not found

modprobe relies on depmod files. If you create a new module, you have to rerun depmod for the kernel before modprobe can find it.

edit: if locate if giving you questionable results, update the cache with 'sudo updatedb'.

Last edited by falconindy (2010-07-10 20:52:12)

Offline

#20 2010-07-10 21:01:21

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

Yeah i do updatedb as root everytime before a locate.
The problem is it doesn't build and install the module correctly.

Offline

#21 2010-07-10 21:34:03

maevius
Member
From: Greece
Registered: 2009-09-10
Posts: 135
Website

Re: [Solved] Virtualbox : vboxdrv module not found

You sure you have kernel26-headers installed, as noted by tomk?
Do a

pacman -Q kernel26-headers

and tell us the outcome.

Last edited by maevius (2010-07-10 21:34:21)

Offline

#22 2010-07-10 21:43:39

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

Yes it is installed, and it's the good version :

[root@Arch alexb]# pacman -Q kernel26-headers
kernel26-headers 2.6.34.1-1

Offline

#23 2010-07-10 22:07:49

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] Virtualbox : vboxdrv module not found

install: groupe non valide « root »

work on that. paste /etc/group


Give what you have. To someone, it may be better than you dare to think.

Offline

#24 2010-07-11 07:12:09

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [Solved] Virtualbox : vboxdrv module not found

[root@Arch alexb]# cat /etc/group
rootx:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon
mem:x:8:
kmem:x:9:
wheel:x:10:root
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
smmsp:x:25:
games:x:50:
network:x:90:
video:x:91:
audio:x:92:alexb
optical:x:93:alexb
floppy:x:94:
storage:x:95:alexb
power:x:98:
nobody:x:99:
users:x:100:
dbus:x:81:
hal:x:82:
camera:x:97:alexb
locate:x:21:
http:x:33:
scanner:x:96:alexb
gdm:x:101:
news:x:13:
mysql:x:89:
postgres:x:88:
rfkill:x:24:
usbmux:x:140:
wireshark:x:150:
vboxusers:x:108:alexb

What would be the problem ?

Offline

#25 2010-07-11 09:30:32

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] Virtualbox : vboxdrv module not found

cat /etc/group
rootx:x:0:root

it should be

root:x:0:root

Last edited by wonder (2010-07-11 09:30:57)


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB