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

4

我已经多次安装和重新安装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

不知道为什么它不喜欢现有的接口名,并且不知道“空接口名称”是什么意思。然后尝试启动一个新的接口,但默认情况下它有一个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桥接驱动程序,清理注册表并重新安装它们,但没有成功。 是否有一种方法可以获得比这些日志更详细的调试信息?我真的很想知道为什么默认网络接口不适用于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" )  )
2个回答

4

太好了!我做到了!
由于我的运气,在VB网络连接设置中我找到了一款来自Wireshark的驱动程序,自动添加了“NPCAP数据包驱动程序”。在我移除它之后,一切都像魔法般地开始正常工作了! 输入图像描述


请将此报告到 Npcap 在 GitHub 上的问题页面:https://github.com/nmap/nmap/issues - hsluoyz
不确定是否是Npcap的问题,尽管Genymotion团队已经被告知。顺便说一下,普通的Debian使用提供的配置可以正常运行。 - Ivan Tamashevich

0

根据空界面名称信息,看起来VirtualBox host only 网络接口中有一个处于奇怪的状态。也许你可以尝试以下步骤:

  • 退出Genymotion
  • 启动VirtualBox
  • 打开首选项窗格(Ctrl + G)
  • 进入“网络”>“Host-only Networks”
  • 删除此处的所有接口
  • 再次启动Genymotion

Host-only Networks preferences


没有运气。已经尝试过了 - 相同的行为。尝试创建新接口,但因无效默认设置而失败。 - Ivan Tamashevich
啊,好的。那么也许你可以尝试修复hostonly接口定义:日志显示[critical] [VBox] [createHostOnlyInterface] "VirtualBox Host-Only Ethernet Adapter" configuration is not valid. Subnet: "0.0.0" . Mask: "0.0.0.0":尝试编辑接口并将子网掩码设置为类似于255.255.255.0的内容。还要检查DHCP服务器是否已启用。 - Aurélien Gâteau
这是我开始使用的 - 用正确配置的DHCP,包括192.168.56.1|150。在初始日志中提到了它,作为“检查“VirtualBox Host-Only Ethernet Adapter”接口状态(QHostAddress(“192.168.56.150”))”。你知道,我还没有尝试过的唯一一件事 - 在此安装上运行一个随机虚拟机(不是来自Genymotion)。我会试一下的。 - Ivan Tamashevich
你使用的VirtualBox版本是哪个?对于Windows系统,推荐使用5.0.28版本(参见https://www.genymotion.com/help/desktop/faq/#compatible-virtualbox-versions)。 - Aurélien Gâteau
我最初使用了genymotion默认提供的版本,然后切换到了最新版本。现在我又回到了5.0.28版本,但结果仍然相同。 - Ivan Tamashevich

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接