VirtualBox

16 年 前 建立

16 年 前 結束

#2020 closed enhancement (invalid)

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

回報者: abe_skolnik 負責人:
元件: other 版本: VirtualBox 1.6.4
關鍵字: 副本:
Guest type: other Host type: other

描述

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:

附加檔案 (1)

patch (926 位元組 ) - 16 年 前, 由 abe_skolnik 新增
a context diff patch that fixes the problem, at least on my main PC

下載所有附檔: .zip

更動歷史 (3)

16 年 前abe_skolnik 編輯

附檔: 新增 patch

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

comment:1 16 年 前Frank Mehnert 編輯

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 16 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: invalid
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

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