VirtualBox

Ticket #2020 (closed enhancement: invalid)

Opened 6 years ago

Last modified 6 years ago

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

Reported by: abe_skolnik Owned by:
Priority: major 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

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

Change History

Changed 6 years ago by abe_skolnik

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

comment:1 Changed 6 years ago by frank

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 Changed 6 years ago by frank

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use