web-dev-qa-db-ja.com

VirtualBoxの問題:カーネルモジュールがロードされていません

VirtualBoxを数回インストールしましたが、毎回同じエラーが発生しました(下のスクリーンショットも参照してください)

WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.4.0-22-generic) or it failed to load. Please recompile the kernel module and install it by
           Sudo /sbin/rcvboxdrv setup
         You will not be able to start VMs until this problem is fixed. Extension Packs: 0

Sudo/sbin/rcvboxdrv setupを実行して取得します:

Stopping VirtualBox kernel modules ...done.
Removing old VirtualBox pci kernel module ...done.
Removing old VirtualBox netadp kernel module ...done.
Removing old VirtualBox netflt kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel modules
 ...done.
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)

Dmesgを実行すると、提供されたスクリーンショットに先頭が記載された長い応答が返されます。残りの(および多数の)応答はpaste(dot)ubuntuリンクにあります。

5.0.2および5.0.18 64ビットおよび5.0.2 32ビットと同様に、ソフトウェアセンターからVBoxをインストールしました。プログラム自体は開きますが、USB互換性のために拡張パックを追加しようとしていますが、アプリケーションを開くことができないという行に沿って何かを言うときはいつでも(それをアンインストールしてから、現在VBoxの問題を把握しようとしています拡張パックの問題の原因だと思います 端末エラー

http://paste.ubuntu.com/16683032/

10
Louie Crisci

まず、これらのパッケージがインストールされていることを確認してください。

$ Sudo apt-get install dkms build-essential linux-headers-`uname -r`

上記をインストールしても問題が解決しない場合は、4.4.0-20より大きいカーネルバージョンを使用している可能性があります。これにより、BIOSでSecure Bootを有効にした状態で、署名のないカーネルモジュールを実行できなくなります。この場合、次のいずれかを実行できます。

  • BIOS設定でSecure Bootを無効にします

OR

15
aramboi

このコマンドを実行した後、私のVirtualBoxは動作しています:

Sudo apt install -f
4
Agus Nurwanto

このコマンドは私のために働いた

Sudo /etc/init.d/vboxdrv setup

次に、次のエラーが発生しました

The VirtualBox VM was created with a user that doesn't match the
current user running Vagrant. VirtualBox requires that the same user
is used to manage the VM that was created. Please re-run Vagrant with
that user. This is not a Vagrant issue.
The UID used to create the VM was: 0
Your UID is: 1000

Rootアクセス(sudo)でvagrant upコマンドを実行することで解決しました。

これにより、VirtualBoxバージョン5.1の問題が修正されます。

2
Alok Adhao
Sudo apt-get install --reinstall virtualbox

...それは私のためにしたことです。お役に立てれば!

0
Jordan