由于网络适配器无法启动 Genymotion

Unable to start Genymotion due to network adapter

已经安装并重新安装了 Genymotion 和 VB 好几次,现在已经安装了它们的最新版本。 当我尝试启动 genymotion 时失败并在日志中留下痕迹:

[debug] [VBox] [findHostOnlyInterface] Looking for compatible host-only interface
[debug] [VBox] Call: ("list", "hostonlyifs")
[debug] [VBox] Return code: 0
[warning] [VBox] [getSavedHostOnlyInterface] Checking "VirtualBox Host-Only Ethernet Adapter" interface status (  QHostAddress( "192.168.56.150" )  )
[debug] [VBox] Empty interface name
[debug] [VBox] [createHostOnlyInterface] Creating new host-only interface
[debug] [VBox] Call: ("hostonlyif", "create")
[debug] [VBox] Return code: 0
[debug] [VBox] [createHostOnlyInterface] Interface "VirtualBox Host-Only Ethernet Adapter #2" created with success

不知道为什么它不喜欢现有的以及 Empty interface name 是什么意思。然后它尝试启动一个新的,但失败了,因为默认情况下它有一个 0.0.0.0 IP。

[critical] [VBox] [createHostOnlyInterface] "VirtualBox Host-Only Ethernet Adapter #2" configuration is not valid. Subnet: "0.0.0" . Mask: "0.0.0.0"
[debug] [VBox] [deleteHostOnlyInterface] Deleting "VirtualBox Host-Only Ethernet Adapter #2" host-only interface
[debug] [VBox] Call: ("hostonlyif", "remove", "VirtualBox Host-Only Ethernet Adapter #2")
[debug] [VBox] Return code: 0
[debug] [VBox] erase host.only.interface
[critical] [VBox] "Fail to load vboxmanage plugin from C:/Program Files/Genymobile/Genymotion/plugins/"
[critical] VM Engine failed to load, state 4
[critical] Unable to find VM Engine. Plugin loading aborted.
[debug] [LogCollector] VM engine not available

这看起来像是 VB 和 Genymotion 之间的冲突。但是不知道如何解决它。 已经为 VB 桥接驱动程序尝试了不同版本,清理注册表并重新安装它们。没有运气。 有没有办法在 thoose loogs 中获得更详细的调试?真的很感兴趣为什么默认网络接口不适合 VB。

尝试删除所有网络接口的解决方案

 [debug] [VBox] Path from registry: "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"
 [debug] [VBox] Path: "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"
 [debug] [VBox] Call: ("list", "hostinfo")
 [debug] [VBox] Return code: 0
 [debug] [VBox] [System properties] Online physical CPU number: 4
 [debug] [VBox] [System properties] Online virtual CPU number: 2
 [debug] [VBox] [System properties] Max CPU number: 8
 [debug] [VBox] [System properties] Max memory size: 16320
 [debug] [VBox] get "" from host.only.interface
 [debug] [VBox] [findHostOnlyInterface] Looking for compatible host-only interface
 [debug] [VBox] Call: ("list", "hostonlyifs")
 [debug] [VBox] Return code: 0
 [debug] [VBox] Empty interface name
 [debug] [VBox] [createHostOnlyInterface] Creating new host-only interface
 [debug] [VBox] Call: ("hostonlyif", "create")
 [debug] [VBox] Return code: 0
 [debug] [VBox] [createHostOnlyInterface] Interface "VirtualBox Host-Only Ethernet Adapter" created with success
............
 [critical] [VBox] [createHostOnlyInterface] "VirtualBox Host-Only Ethernet Adapter" configuration is not valid. Subnet: "0.0.0" . Mask: "0.0.0.0"
 [debug] [VBox] [deleteHostOnlyInterface] Deleting "VirtualBox Host-Only Ethernet Adapter" host-only interface
 [debug] [VBox] Call: ("hostonlyif", "remove", "VirtualBox Host-Only Ethernet Adapter")
 [debug] [VBox] Return code: 0
 [debug] [VBox] erase host.only.interface
 [critical] [VBox] "Fail to load vboxmanage plugin from C:/Program Files/Genymobile/Genymotion/plugins/"
 [critical] VM Engine failed to load, state 4
 [critical] Unable to find VM Engine. Plugin loading aborted.

我想知道在

期间检查了什么
[Genymotion] [warning] [VBox] [getSavedHostOnlyInterface] Checking "VirtualBox Host-Only Ethernet Adapter" interface status (  QHostAddress( "192.168.56.1" )  )

根据 Empty interface name 消息,似乎 VirtualBox hostonly 网络接口之一处于异常状态。也许你可以试试这个:

  • 退出 Genymotion
  • 启动 VirtualBox
  • 打开首选项面板 (Ctrl+G)
  • 前往 "Network" > "Host-only Networks"
  • 在这里删除所有接口
  • 再次启动 Genymotion

是啊!我做到了!
幸运的是,我在 VB 网络连接设置中发现了一个来自 Wireshark 的驱动程序,自动添加到那里 "NPCAP Packet Driver"。在我删除它之后,一切都开始像魅力一样工作!