日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded

發布時間:2023/12/19 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我在啟動minikube時,遇到如下錯誤消息:

Starting local Kubernetes v1.10.0 cluster…

Starting VM…

E1010 03:27:37.920050 4827 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks.
We support Virtualbox starting with version 5. Your VirtualBox install is “WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (3.10.0-862.11.6.el7.x86_64) or it failed to load. Please recompile the kernel module and install it by sudo /sbin/vboxconfig You will not be able to start VMs until this problem is fixed. 5.2.18r124319”. Please upgrade at https://www.virtualbox.org.

Retrying.

E1010 03:27:37.921090 4827 start.go:180] Error starting host: Error creating host: Error executing step: Running precreate checks.
We support Virtualbox starting with version 5. Your VirtualBox install is “WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (3.10.0-862.11.6.el7.x86_64) or it failed to load. Please recompile the kernel module and install it by sudo /sbin/vboxconfig You will not be able to start VMs until this problem is fixed. 5.2.18r124319”. Please upgrade at https://www.virtualbox.org

核心是這個錯:

The vboxdrv kernel module is not loaded.

執行命令行:

rcvboxdrv setup

結果:

vboxdrv.sh: Stopping VirtualBox services.

vboxdrv.sh: Starting VirtualBox services.

vboxdrv.sh: Building VirtualBox kernel modules.

This system is currently not set up to build kernel modules.

Please install the gcc make perl packages from your distribution.

Please install the Linux kernel “header” files matching the current kernel

for adding new hardware support to the system.

The distribution packages containing the headers are probably:

kernel-devel kernel-devel-3.10.0-862.11.6.el7.x86_64

解決方案:

1. 按照這篇文章的介紹安裝gcc make perl package:

2. 安裝kernel header文件。參考:

3. 執行命令行:

rcvboxdrv setup

確??吹较?#xff1a;

vboxdrv.sh: Building VirtualBox kernel modules.

這個vboxdrv的作用,VirtualBox的幫助文檔寫的很清楚:

In order to run other operating systems in virtual machines alongside your main operating system, VirtualBox needs to integrate very tightly into the system. To do this it installs a “driver” module called vboxdrv which does a lot of that work into the system kernel, which is the part of the operating system which controls your processor and physical hardware. Without this kernel module, you can still use the VirtualBox manager to configure virtual machines, but they will not start.

我簡單翻譯一下:

為了在宿主機里以虛擬機的方式運行其他類型的操作系統,VirtualBox需要和宿主機操作系統的Kernel交互,進行交互的模塊就稱為vboxdrv驅動,它本身也是操作系統的一部分,負責控制操作系統的CPU和其他硬件資源。如果沒有vboxdrv驅動,我們雖然仍舊可以使用VirtualBox manager來管理虛擬機,但無法在宿主系統上啟動這些虛擬機。

rcvboxdrv setup執行后問題解決。

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

總結

以上是生活随笔為你收集整理的如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。