You are not logged in.
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
Offline
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
How did you install Virtual Box? Through Pacman/AUR/ABS?
Offline
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
Offline
-edit-wrong message-
Last edited by alyy (2010-07-09 19:29:08)
Offline
Have you got the newest kernel headers installed?
sudo pacman -S kernel-headers
Then try rebuilding the module.
Offline
Nah, still not found.
Though it had updated linux-api-headers to 2.6.34.
Offline
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
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
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
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
I can't load it, there is no vboxdrv.ko like i said in the previous posts.
Offline
OK, it was a dumb question.
I updated yesterday through yaourt with no problem though.
Offline
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
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
Run:
1) /etc/rc.d/vboxdrv setup
2) modprobe vboxdrv
Last edited by kcholakov (2010-07-10 16:46:44)
Offline
@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
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
Yeah i do updatedb as root everytime before a locate.
The problem is it doesn't build and install the module correctly.
Offline
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
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
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
[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
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