windows 启动时出现 Genymotion 错误“无法加载 virtualbox”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17996901/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 10:45:55  来源:igfitidea点击:

Genymotion error at start 'Unable to load virtualbox'

windowsvirtualboxgenymotion

提问by Cristian Gon?alves

I've installed the genymotion+virtualbox package on Windows 7 64-bit and everything goes fine... But when I start Genymotion it presents me an error message Unable to load virtualbox.

我已经在 Windows 7 64 位上安装了 genymotion+virtualbox 包,一切正常......但是当我启动 Genymotion 时,它向我显示了一条错误消息Unable to load virtualbox

VirtualBox is installed and I'm able to start it manually. I've tried to install the packages separately, updated virtualbox to 4.2.16 but nothing worked.

VirtualBox 已安装,我可以手动启动它。我尝试单独安装软件包,将 virtualbox 更新到 4.2.16,但没有任何效果。

I've already read genymotion FAQ but it did not help.

我已经阅读了 genymotion FAQ 但它没有帮助。

采纳答案by Guillermo Gutiérrez

In Linux at least, I had to restart VirtualBox, running this command on terminal:

至少在 Linux 中,我必须重新启动 VirtualBox,在终端上运行以下命令:

/lib/virtualbox/VirtualBox restart

Seems to be the same on Mac OS X.

在 Mac OS X 上似乎是一样的

回答by persianLife

I have spend all day to solve this error since none of the answers worked for me.

我花了一整天来解决这个错误,因为没有一个答案对我有用。

I found out that oracle virtual box doesn't install the network adaptercorrectly in windows 8.1

我发现 oracle virtual box 没有在 windows 8.1 中正确安装网络适​​配器

Solution:

解决方案:

  1. Delete all previous virtual box adapters
  2. Go to device manager and click "Action" > "Add legacy hardware"
  3. Install the oracle virtual box adapters manually (my path was C:\Program Files\Oracle\VirtualBox\drivers\network\netadp\VBoxNetAdp.inf)
  1. 删除所有以前的虚拟盒适配器
  2. 转到设备管理器并单击“操作”>“添加旧硬件”
  3. 手动安装 oracle 虚拟机适配器(我的路径是C:\Program Files\Oracle\VirtualBox\drivers\network\netadp\VBoxNetAdp.inf

Now that virtual box adapters is installed correctly, it needs to be setup correctly. (the following solution is like many other solution in here)

现在虚拟盒适配器已正确安装,需要正确设置。(以下解决方案与此处的许多其他解决方案一样)

  1. Start Oracle VM VirtualBox and go to "File" > "Preferences" > "Network" > "Host-only Network"
  2. Click edit
  3. Set IPv4 192.168.56.1mask 255.255.255.0
  4. Click DHCP Server tab and set server adr: 192.168.56.100server Mask: 255.255.255.0low address bound: 192.168.56.101upper adress bound 192.168.56.254
  5. Now click OK and start genymotion
  1. 启动 Oracle VM VirtualBox 并转到“文件”>“首选项”>“网络”>“仅主机网络”
  2. 点击编辑
  3. 设置 IPv4192.168.56.1掩码255.255.255.0
  4. 点击DHCP Server选项卡,设置server adr:192.168.56.100server Mask:255.255.255.0low address bound:192.168.56.101upper address bound192.168.56.254
  5. 现在点击 OK 并启动 genymotion

回答by mbwasi

Had the same problem, Uninstall Genymotion, install VirtualBox stand alone from https://www.virtualbox.org/wiki/Downloadsthen install the Genymotion package without VirtualBox.

有同样的问题,卸载 Genymotion,从https://www.virtualbox.org/wiki/Downloads单独安装 VirtualBox,然后安装没有 VirtualBox 的 Genymotion 包。

回答by Tomer

Try closing Android Studio/Eclipse if it's open. It worked for me.

如果 Android Studio/Eclipse 处于打开状态,请尝试关闭它。它对我有用。

回答by numediaweb

What worked for me in Windows 7 is to remove the Host-only Network (in Oracle virtual box Preferencesmenu [CTRL+G] -> Network-> Host-only Networks). Genymotion will recreate it automatically at the next virtual device start. For the record; I'm using a Nexus S 2.3.7 virtual device.

在 Windows 7 中对我有用的是删除 Host-only Network(在 Oracle virtual box Preferencesmenu [CTRL+G] -> Network-> Host-only Networks 中)。Genymotion 将在下一次虚拟设备启动时自动重新创建它。作为记录; 我使用的是 Nexus S 2.3.7 虚拟设备。

回答by MANISH PATHAK

FIXED SOLUTION

固定解决方案

Run below command in terminal, It denotes where is your virtualbox install on MAC/Linux.

在终端中运行以下命令,它表示您的虚拟机在 MAC/Linux 上的安装位置。

    $ which vboxmanage
    /usr/local/bin/VBoxManage

Genymotion search the virtualBox in /usr/bin/VBoxManagewhile it is located to /usr/local/bin/VBoxManage , you need to create the symlink to that location , Run in terminal to fix it.

Genymotion 在/usr/bin/VBoxManage 中搜索 virtualBox,而它位于/usr/local/bin/VBoxManage,您需要创建指向该位置的符号链接,在终端中运行以修复它。

    sudo ln -s /usr/local/bin/VBoxManage /usr/bin/VBoxManage

回答by Stephen Senkomago Musoke

Actually it seems like Genymotion has an issue with the newer versions of Virtual box, I had the same issue on my Mac but when I downgraded to 4.3.30 it worked like a charm.

实际上,似乎 Genymotion 对较新版本的 Virtual box 有问题,我在 Mac 上也遇到了同样的问题,但是当我降级到 4.3.30 时,它就像一个魅力。

回答by Oleg Tretiakov

Open Genymotion in Windows as an administrator. My Genymotion works only in this mode

管理员身份在 Windows 中打开 Genymotion 。我的 Genymotion 仅在此模式下有效

回答by Rohan Kandwal

I am using Intellij IDEAand same error happened to me, I found that the path to genymotionfolder was not configured properly. Either open settingsusing File > Settingsor press Ctrl + Alt + Sthen in IDE Settingscheck if the path to the genymotionfolder is correct or not.

我正在使用Intellij IDEA并且发生了同样的错误,我发现genymotion文件夹的路径配置不正确。无论是开放式的设置使用File > Settings,或按Ctrl + Alt + S,然后在IDE Settings检查,如果路径genymotion文件夹的正确与否。

Since Android Studioare almost similar to Intellij IDEAso you can apply the same steps above to Android Studioas well.

由于Android Studio几乎相似,Intellij IDEA因此您也可以应用上述相同的步骤Android Studio

genymotion settings

genymotion 设置

回答by Bamerza

Verify that GenyMotion is in your PATH environment variable. I noticed mine was not auto populated, so once I entered it, it was fine.

验证 GenyMotion 是否在您的 PATH 环境变量中。我注意到我的不是自动填充的,所以一旦我进入它,它就很好。