怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息-創(chuàng)新互聯(lián)

小編給大家分享一下怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

從事成都電信服務(wù)器托管,服務(wù)器租用,云主機(jī),網(wǎng)絡(luò)空間,域名與空間,CDN,網(wǎng)絡(luò)代維等服務(wù)。

我在啟動(dòng)minikube時(shí),遇到如下錯(cuò)誤消息:

怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息

怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息

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

核心是這個(gè)錯(cuò):

The vboxdrv kernel module is not loaded.

執(zhí)行命令行:

rcvboxdrv setup

結(jié)果:

怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息

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. 執(zhí)行命令行:

rcvboxdrv setup

確保看到消息:

vboxdrv.sh: Building VirtualBox kernel modules.

怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息

怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息

這個(gè)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.

我簡(jiǎn)單翻譯一下:

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

rcvboxdrv setup執(zhí)行后問題解決。

以上是“怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道!

分享文章:怎么處理VirtualBox啟動(dòng)錯(cuò)誤消息-創(chuàng)新互聯(lián)
本文地址:http://muchs.cn/article14/dpshde.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計(jì)商城網(wǎng)站、關(guān)鍵詞優(yōu)化網(wǎng)站策劃、企業(yè)建站、App開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)