Virtual Box Genymotion 中的 Ubuntu 核心升級後缺少 Host-Only 虛擬機器適配器,嘗試建立新適配器不成功

Virtual Box Genymotion 中的 Ubuntu 核心升級後缺少 Host-Only 虛擬機器適配器,嘗試建立新適配器不成功

我正在使用 Ubuntu 20.04 我的 Virtual Box 運行得很好。但後來我升級了核心並重新啟動了電腦。

現在,當我嘗試啟動虛擬機器時,出現以下錯誤 -

Could not start the machine Samsung Galaxy S10 because the following physical network interfaces were not found:

vboxnet3 (adapter 1)

You can either change the machine's network settings or stop the machine.

在此輸入影像描述

如果我單擊“更改網路設定”,則下面Host-Only Adapter沒有Name可以選擇的選項。

在此輸入影像描述

現在,如果我單擊“取消”,則會收到以下錯誤 -

Failed to open a session for the virtual machine Samsung Galaxy S10.

Nonexistent host networking interface, name 'vboxnet3' (VERR_INTERNAL_ERROR).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}


在此輸入影像描述

如果我轉到“檔案”->“首選項”->“網路”,則會有一個選項卡,其中只有選項卡NAT network且沒有Host-Only Adapter選項卡。

在此輸入影像描述

如果我轉到檔案 -> 主機網路管理員 -> 建立新網路vboxnet0-> 啟用 -> 屬性 -> 自動設定適配器 -> 應用

在此輸入影像描述

我收到以下錯誤 -

Failed to save host network interface parameter.

Callee RC: NS_ERROR_NOT_IMPLEMENTED (0x80004001)

在此輸入影像描述

此時,在虛擬機器 -> 設定 -> 網路下,Host-Only Adapter名稱下方vboxnet0出現,但問題仍然存在。

在此輸入影像描述

我也從終端嘗試過 -

sudo /sbin/vboxconfig

並得到以下輸出 -

vboxdrv.sh: Stopping VirtualBox services.
depmod: WARNING: could not open modules.order at /lib/modules/5.8.0-36-generic: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.8.0-36-generic: No such file or directory
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.

更新:

我的虛擬機器 Samsung Galaxy S10 不是直接從 Virtual Box 創建的,而是由 Genymotion Android Emulator Creator 創建的。

我的主目錄下的 VirtualMachines 目錄是空的。虛擬機器相當存在於該位置~/.Genymobile/Genymotion/deployed/Samsung Galaxy S10

答案1

我終於解決了這個問題。

在終端我必須運行 -

sudo /sbin/vboxconfig

然後在虛擬機器中我必須做 -

如果我轉到檔案 -> 主機網路管理員 -> 建立新網路 vboxnet0 -> 啟用 -> 屬性 -> 自動設定適配器 -> 應用

在此輸入影像描述

並忽略任何錯誤提示。

然後在檔案總管中我必須去

~/.Genymobile/Genymotion/deployed/Samsung Galaxy S10

在此輸入影像描述

然後我雙擊該圖標 -

Samsung Galaxy S10.vbox

終端打開並完成一些工作。

然後我關閉了終端。執行此操作後,一切正常,我可以從 Genymotion 成功啟動我的虛擬機器。

相關內容