
Ubuntu日本語フォーラム

ログインしていません。
3.17.0-031700-genericを使用しています。
特にカスタマイズはせず、Ubuntuの開発版ページからダウンロードしました。
VirtualBoxを利用しようとすると、
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
という表示がされます。
どのようにすれば良いのでしょうか。
ちなみに3.16以下だとサスペンドのバグがあるため、標準のカーネルは使用できません。
オフライン
> The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv.
> Please reinstall the kernel module by executing
(おそらくutopicを使っていると思いますが)通常、virtualboxパッケージをインストールすると、依存関係によりvirtualbox-dkmsパッケージがインストールされます。このパッケージはDKMSの仕組みを使って、ユーザーの手元でvboxdrvカーネルモジュールをビルドしてインストールします。Ubuntuにおいて、カーネルモジュールのビルドにはlinux-headers-xxxxパッケージが必要です。
というわけなので、vboxdrvをビルドしてインストールすれば問題が解決するかと思います。手順は知りません。
オフライン
dkms を使っていない場合、カーネルが新しくなる度に
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
以下略
が表示されます。
Mocchi さんが言われているように、linux-headers ・・・・ をインストールして
sudo '/etc/init.d/vboxdrv setup'
を実行すれば「通常は」 kernel driver が出来るのですが、できませんでしたか?
オフライン
どうやらVirtualBoxがコンパイルできないのは既知の問題のようです。
修正するパッチがUbuntuのバージョンには取り込まれていないのか、最新版では治っているようです。
http://ubuntuhandbook.org/index.php/2014/10/virtualbox-4-3-18-released/
オフライン
先の私の発言は取り消してください。
Ubuntu14.10日本語Remix をインストールして、software center から virtualbox をインストール。
3.17.0-031700-generic ubuntu
で検索した
http://ubuntuhandbook.org/index.php/tag/linux-kernel/
のリンク先からの deb ファイルを入手・インストール・再起動。
再起動後、virtualbox を起動してみると普通に起動しています。
自分が試したのはここまでです。
オフライン
S_T_M による投稿:
どうやらVirtualBoxがコンパイルできないのは既知の問題のようです。
修正するパッチがUbuntuのバージョンには取り込まれていないのか、最新版では治っているようです。
確認してみました。utopicでは、この問題は発生しませんでした。
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.10 DISTRIB_CODENAME=utopic DISTRIB_DESCRIPTION="Ubuntu 14.10"
$ uname -a Linux workstation 3.16.0-25-generic #33-Ubuntu SMP Tue Nov 4 12:06:54 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l | grep linux-headers ii linux-headers-3.16.0-25 3.16.0-25.33 all Header files related to Linux kernel version 3.16.0 ii linux-headers-3.16.0-25-generic 3.16.0-25.33 amd64 Linux kernel headers for version 3.16.0 on 64 bit x86 SMP ii linux-headers-generic 3.16.0.25.26 amd64 Generic Linux kernel headers
$ ls -l /lib/modules/$(uname -r)/build lrwxrwxrwx 1 root root 40 11月 4 22:20 /lib/modules/3.16.0-25-generic/build -> /usr/src/linux-headers-3.16.0-25-generic
$ modinfo vboxdrv modinfo: ERROR: Module vboxdrv not found.
$ sudo apt-get install virtualbox-dkms ... virtualbox-dkms (4.3.18-dfsg-1) を設定しています ... Loading new virtualbox-4.3.18 DKMS files... First Installation: checking all kernels... Building only for 3.16.0-25-generic Building initial module for 3.16.0-25-generic Done. vboxdrv: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.16.0-25-generic/updates/dkms/ vboxnetadp.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.16.0-25-generic/updates/dkms/ vboxnetflt.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.16.0-25-generic/updates/dkms/ vboxpci.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.16.0-25-generic/updates/dkms/ sed: -e expression #1, char 6: 不明なコマンド: `m' /etc/modprobe.d/dkms.conf updated to replace obsoleted module references: --- /tmp/dkms.uQ7ots/dkms.conf.new 2014-11-15 21:22:56.649368213 +0900 +++ /etc/modprobe.d/dkms.conf 2012-03-02 05:29:06.000000000 +0900 @@ -0,0 +1,4 @@ +# modprobe information used for DKMS modules +# +# This is a stub file, should be edited when needed, +# used by default by DKMS. depmod........ DKMS: install completed. * Stopping VirtualBox kernel modules [ OK ] * Starting VirtualBox kernel modules ...
$ modinfo vboxdrv filename: /lib/modules/3.16.0-25-generic/updates/dkms/vboxdrv.ko version: 4.3.18_Ubuntu (0x001a0008) license: GPL description: Oracle VM VirtualBox Support Driver author: Oracle Corporation srcversion: 2269B334B52657FD1CD8757 depends: vermagic: 3.16.0-25-generic SMP mod_unload modversions parm: force_async_tsc:force the asynchronous TSC mode (int)
VirtualBoxをインストールしたことのないクリーンな環境を用意し、パッケージをインストールしてvirtualbox関連カーネルモジュール一式をインストールしてみました。結果、インストールが成功したことがわかります。
オフライン