VirtualBoxのインストール時のカーネルの問題

VirtualBoxのインストール時のカーネルの問題

私のFedora 24で、以下を使用して(VBリポジトリから)VirtualBoxをインストールして実行した後:

# dnf install VirtualBox-5.1-5.1.4_110228_fedora24-1.x86_64
$ virtualbox

Kernel driver not installed (rc=-1908)ポップアップは、Google検索によるとかなり古典的なものを示しました。同じエラーが実行を提案しました/sbin/vboxconfig

    vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
  yum install kernel-core-devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
  yum install kernel-core-devel

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

私は気づいた

# rpm -qa kernel |sort -V |tail -n 1
kernel-4.6.6-300.fc24.x86_64
# uname -r
4.5.5-300.fc24.x86_64

それで、そんなことから来るのではないかと思いますが、カーネルバージョンの違いをどのように解決すべきかわかりません。

/sbin/rcvboxdrv setup私はコマンドで提案したように試しました。

vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
  yum install kernel-core-devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

インストールしてみましたが、何も変わりませんでした。

別の問題はフォルダがありますが、/usr/src/vboxhost-5.1.4/次のようになります。

# dkms install vboxhost/5.1.14
Error! Could not find module source directory.
Directory: /usr/src/vboxhost-5.1.14 does not exist.

PS:次のように尋ねることができます/var/log/vbox-install.log(「Arrêt」は停止を意味します)。

Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Arrêt.

ベストアンサー1

おすすめ記事