VirtualBox

Opened 16 years ago

Closed 16 years ago

#2020 closed enhancement (invalid)

Patch to VBox.sh for Linux 2.4.x host kernels

Reported by: abe_skolnik Owned by:
Component: other Version: VirtualBox 1.6.4
Keywords: Cc:
Guest type: other Host type: other

Description

here is a patch that removes annoying erroneous warnings when vboxdrv.o [note: _not_ .ko, as in Linux 2.6] is already loaded:

* VBox.sh Wed Aug 27 23:14:51 2008 --- VBox.sh_orig Wed Aug 27 22:46:43 2008 * * 32,40

if [ "$1" = "shutdown" ]; then

SHUTDOWN="true"

! # The following patch to prevent spurious unnecessary warnings when running on a 2.4.x host kernel written by Abe Skolnik 2008-8-27 ! # elif [ ! -e /lib/modules/uname -r/misc/vboxdrv.ko ]; then ! elif [ ! -e /lib/modules/uname -r/misc/vboxdrv.ko ] && [ ! -e /lib/modules/uname -r/misc/vboxdrv.o ]; then

cat << EOF

WARNING: There is no module available for the current kernel (uname -r).

Please recompile the kernel module and install it by:

--- 32,38 ----

if [ "$1" = "shutdown" ]; then

SHUTDOWN="true"

! elif [ ! -e /lib/modules/uname -r/misc/vboxdrv.ko ]; then

cat << EOF

WARNING: There is no module available for the current kernel (uname -r).

Please recompile the kernel module and install it by:

Attachments (1)

patch (926 bytes ) - added by abe_skolnik 16 years ago.
a context diff patch that fixes the problem, at least on my main PC

Download all attachments as: .zip

Change History (3)

by abe_skolnik, 16 years ago

Attachment: patch added

a context diff patch that fixes the problem, at least on my main PC

comment:1 by Frank Mehnert, 16 years ago

From which version did you take the VBox.sh file? There is no line

elif [ ! -e /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then

instead there is a line

elif ! lsmod|grep -q vboxdrv; then

which should fit to 2.4 kernels as well as to 2.6 kernels. Which VirtualBox package are did you install (exact package name please) on which distribution?

comment:2 by Frank Mehnert, 16 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette