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.

추신: 다음과 같이 물어볼 수 있습니다 /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.

관련 정보