[centos-users 1338] /etc/init.d/vboxdrv setupのエラーを回避したいのですが
ueda.katuhiko @ wave.plala.or.jp
ueda.katuhiko @ wave.plala.or.jp
2010年 3月 11日 (木) 09:15:43 JST
CentOS 5.3にVirtualBox-3.1-3.1.4_57640_rhel5-1を入れたのですが
VirtualBox起動時
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.18-164.el5) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
とメッセージが出ます。OS起動時もvboxdrv のモジュールの 読み込みに失敗しています
そこで rootにて以下実行しましたが、失敗します
[root @ localhost ueda]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [失敗]
(Look at /var/log/vbox-install.log to find out what went wrong)
ログを見てみると以下のようになります
[root @ localhost ueda]# cat /var/log/vbox-install.log
Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.1.4
------------------------------
Deleting module version: 3.1.4
completely from the DKMS tree.
------------------------------
Done.
Creating symlink /var/lib/dkms/vboxdrv/3.1.4/source ->
/usr/src/vboxdrv-3.1.4
DKMS: add Completed.
Error! Your kernel source for kernel 2.6.18-164.el5 cannot be found at
/lib/modules/2.6.18-164.el5/build or /lib/modules/2.6.18-164.el5/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. 中止.
以下の様に、コンパイルに必要なソースはあるつもりなのですが??
uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 athlon i386 GNU/Linux
[ueda @ localhost ~]$ rpm -qa|grep kernel
kernel-devel-2.6.18-164.11.1.el5.centos.plus
kernel-headers-2.6.18-164.11.1.el5.centos.plus
kernel-debug-devel-2.6.18-164.11.1.el5
kernel-2.6.18-164.el5
[ueda @ localhost ~]$ cd /usr/src/kernels/
[ueda @ localhost kernels]$ ls -l
合計 8
drwxr-xr-x 19 root root 4096 3月 6 14:54 2.6.18-164.11.1.el5-debug-i686
drwxr-xr-x 19 root root 4096 3月 6 14:58 2.6.18-164.11.1.el5.centos.plus-i686
lrwxrwxrwx 1 root root 30 3月 6 14:54 2.6.18-164.11.1.el5debug-i686 -> 2.6.18-164.11.1.el5-debug-i686
[ueda @ localhost kernels]$
わたしの環境に合っていないのでしょうか?? アドバイスお願い致します
centos-users メーリングリストの案内