如何處理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 .
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
核心是這個錯:
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
確保看到訊息:
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的原創文章,請關注公眾號"汪子熙"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2216994/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何處理錯誤訊息Please install the Linux kernel header filesLinuxHeader
- 如何處理錯誤訊息PleaseinstalltheLinuxkernelheaderfilesLinuxHeader
- 如何在ubuntu上安裝virtualbox的driver module vboxdrvUbuntu
- Go 語言的錯誤訊息處理Go
- 如何處理錯誤訊息Please install the gcc make perl packagesGCPackage
- CRM中介軟體裡parent not ok的錯誤訊息如何處理
- 如何處理Docker錯誤訊息:please add——insecure-registryDocker
- 如何處理Docker的錯誤訊息request canceled:Docker代理問題Docker
- 如何處理Eclipse錯誤訊息 The declared package does not match the expected packageEclipsePackage
- 如何處理SAP雲平臺錯誤訊息 there is no compute unit quota for subaccount
- React應用裡Invalid hook call錯誤訊息的處理ReactHook
- 錯誤處理:如何通過 error、deferred、panic 等處理錯誤?Error
- 如何處理用程式碼建立SD Sales order時遇到的錯誤訊息KI 180
- 如何處理RabbitMQ 訊息堆積和訊息丟失問題MQ
- 錯誤處理
- Vagrant 啟動 VirtualBox 的問題 ( 誤裝 docker 後報錯 )Docker
- IOS 訊息推送處理iOS
- 如何生動形象的理解Android Handler訊息處理機制Android
- SAP錯誤訊息除錯之七種武器:讓所有的錯誤訊息都能被定位除錯
- 啟動監聽報TNS-01150錯誤處理
- PHP 錯誤處理PHP
- php錯誤處理PHP
- Go 錯誤處理Go
- Swift錯誤處理Swift
- Zabbix錯誤處理
- mysqldump錯誤處理MySql
- struts 如何能夠報處理正常的訊息
- php ActiveMQ的傳送訊息,與處理訊息PHPMQ
- Day03:檔案開啟;錯誤處理
- SAP OData 服務在 gateway 層出錯,應該如何處理?通過一個錯誤訊息來舉例說明Gateway
- MPLS RSVP訊息處理——VecloudCloud
- Storm保證訊息處理ORM
- 三、訊息的可靠處理
- Angular No provider for EffectsRootModule錯誤訊息AngularIDE
- linux下gdb如何處理coredump錯誤Linux
- PHP錯誤處理和異常處理PHP
- go的錯誤處理Go
- Python錯誤處理Python