VirtualBox不能爲虛擬電腦打開一個新任務——The VirtualBox kernel modules do not match this version of VirtualBox

本文由荒原之夢原創,原文連接:http://zhaokaifeng.com/?p=608bash

1、問題產生的環境

物理機操做系統:Ubuntu 17.10
(Ubuntu版本查看命令: cat /etc/issue )app

2、問題產生的背景

我目前使用的主力操做系統是Ubuntu,原來安裝的VirtualBox是在Ubuntu的軟件中內心下載的,可是沒法安裝 VirtualBox 5.2.8 Oracle VM VirtualBox Extension Pack 這個擴展,因此也沒法在虛擬機中使用U盤。爲了解決這個問題,我在這裏下載了 Ubuntu 17.04 (「Zesty」) / 17.10 (「Artful」) 的AMD64位版本並進行了安裝(安裝以前只是關閉了本機正在運行的VirtualBox並無卸載原來的VirtualBox),安裝完成後又下載安裝了 VirtualBox 5.2.8 Oracle VM VirtualBox Extension Pack 這個擴展並進行了安裝。至此上述下載和安裝步驟並無報錯,可是我在啓動虛擬系統時卻出現了報錯(具體報錯內容見下文)。this

3、報錯內容

VirtualBox - Error In supR3HardenedMainInitRuntime

RTR3InitEx failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/sbin/vboxconfig'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.

不能爲虛擬電腦 CentOS2_DHCP1 打開一個新任務.

The virtual machine 'CentOS2_DHCP1' has terminated unexpectedly during startup with exit code 1 (0x1).

返回 代碼: NS_ERROR_FAILURE (0x80004005)
組件: MachineWrap
界面: IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}

4、報錯分析

根據上述報錯信息咱們知道,有多是安裝新的VirtualBox以前沒有卸載原來的VirtualBox致使了VirtualBox內核版本的不匹配。此時,最簡單直接的解決辦法就是將本機上現有的VirtualBox以及相關擴展和依賴關係都清除,而後從新安裝。(我以前在Windows上使用VirtualBox時也遇到過「VirtualBox不能爲虛擬電腦打開一個新任務」的報錯,可是當時的報錯是由於我打開了虛擬機的USB控制器,卻沒有安裝相應的擴展。關於當時的報錯內容和解決辦法能夠點擊這裏spa

5、解決步驟

1 關閉VirtualBox.操作系統

2 卸載VirtualBox:code

sudo apt-get autoremove virtualbox-5.2

注:上述操做將自動卸載VirtualBox及其相關依賴。ip

3 更新系統:rem

sudo apt-get update
sudo apt-get upgrade

4 安裝VirtualBox
經過下載的.deb安裝包從新安裝VirtualBoxget

5 安裝USB控制器擴展
關於USB控制器擴展VirtualBox 5.2.8 Oracle VM VirtualBox Extension Pack的做用和安裝方法,能夠查看個人這篇文章Click Here.虛擬機

以後再次啓動虛擬系統,沒有出現報錯,問題解決。

相關文章
相關標籤/搜索