Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197235 - app-emulation/virtualbox-1.5.2: no module available for the current kernel
Summary: app-emulation/virtualbox-1.5.2: no module available for the current kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-27 19:41 UTC by FieldySnuts
Modified: 2007-11-03 15:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FieldySnuts 2007-10-27 19:41:15 UTC
When I try to run VBoxManage (or any of the VBox commands), I now get this, which I did not in 1.5.1 (using the same kernel):

WARNING: There is no module available for the currente kernel (2.6.23.1).
         Please recompile the kernel module and install it by

         sudo emerge -1 virtualbox-modules

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



Before i re-installed virtualbox-modules, I did an rmmod vboxdrv. After it finished, I did modprobe vboxdrv and it loaded without issues. However I still get the above error.



Portage 2.1.3.16 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23.1 i686)
=================================================================
System uname: 2.6.23.1 i686 Intel(R) Pentium(R) M processor 1.86GHz
Timestamp of tree: Sat, 27 Oct 2007 03:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://194.117.143.69/ http://194.117.143.70/ http://85.25.128.62"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 acl alsa berkdb bitmap-fonts bzip2 cdr chroot cli cracklib crypt cups dri dv dvd dvdr dvdread encode ffmpeg flac fortran gdbm gif gnome gpm gtk gtk2 hal iconv isdnlog jpeg kde midi mmx mp3 mudflap ncurses network nls nptl nptlonly ogg opengl openmp oss pam pcre pdflib perl png pppd pwdb python qt3 qt4 readline reflection sdl session spell spl sse ssl svg theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis x86 xml2 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 FieldySnuts 2007-10-27 20:00:00 UTC
I forgot to mention that it's not the NMI watchdog issue. I have that disabled at boot time. I just did a large number of updates, did a reboot, same issue.

Really trivial: current is mis-spelt as "currente" in the error output ;p

Cheers.
Comment 2 FieldySnuts 2007-10-27 20:09:48 UTC
I've found the issue. I run virtualbox as a normal user. The wrapper script checks to see if the vboxdrv kernel driver exists. On my system only root has any access to the kernel modules. Giving my user read access to the diretory tree and that module solved the issue.

This might cause problems for other users who are paranoid like myself, and don't let normal users read modules.

I'm not sure what to resolve this as so I'll let you gentlemen decide that.
Comment 3 Alessio Cassibba (X-Drum) 2007-10-29 13:04:18 UTC
Hi,

(In reply to comment #1)
> I forgot to mention that it's not the NMI watchdog issue. I have that disabled
> at boot time. I just did a large number of updates, did a reboot, same issue.
the NMI watchdog workaround is no more needed for virtualbox-modules, and was intended only for amd64 systems.
 
> Really trivial: current is mis-spelt as "currente" in the error output ;p
> 
fixed on jokey's overlay[1] for both virtualbox and virtualbox-bin


(In reply to comment #2)
> I've found the issue. I run virtualbox as a normal user. The wrapper script
> checks to see if the vboxdrv kernel driver exists. On my system only root has
> any access to the kernel modules. Giving my user read access to the diretory
> tree and that module solved the issue.
> 
> This might cause problems for other users who are paranoid like myself, and
> don't let normal users read modules.
imho that check in the wrapper is fine, because 0644 is the standard permission mask for all the other modules in: /lib/modules/`uname -r`/

Unluckily as normal user is not easy to find another "effective 100% bomb proof" method to test the existence of the vboxdrv for the current kernel :)

Thanks for reporting this issues.  

[1] http://overlays.gentoo.org/dev/jokey/browser/trunk/app-emulation
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2007-11-03 15:19:27 UTC
Fixes applied to CVS, thanks :)