系统:win10 64bit
Genymotion版本:2.5.4
VirtualBox版本:5.0.4
今天打算试试Genymotion这个模拟器,然后从官网下载了最新版:https://www.genymotion.com/#!/download
可是安装后启动出现以下错误:
Virtualization engine not found. Plugin loading aborted.
根据提示定位到日志目录,打开这个日志文件:general-genymotion.log
如下图:
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Querying NetCfgInstanceId failed (0x00000000)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp"
10月 25 17:36:13 [Genymotion] [Error] failed to create host only interface
10月 25 17:36:13 [Genymotion] [Error] "Fail to load vboxmanage plugin from D:/Program Files/Genymobile/Genymotion/plugins/"
10月 25 17:36:13 [Genymotion] [Error] VM Engine failed to load
10月 25 17:36:13 [Genymotion] [Error] Unable to find VM Engine. Plugin loading aborted.
根据提示可知是vbox设置host网络适配器出错了,可能原因为,vbox没有获得管理员权限,所以安装genymotion-2.5.4-vbox.exe
这个程序时,必须以管理员身份运行,之后一路Next就行了。。。
目前正在下载虚拟设备中,(●'◡'●)
如果还不行就参考以下步骤,我也试了一遍,完全可行。
- Run VirtualBox as administrator (By default is installed in C:\Program Files\Oracle\VirtualBox)
- Go to File -> Preferences -> Network (Left Navigation List) -> Host-only Networks (on the right tab)
- Select an adapter and click edit (the small screwdriver on the right)
- On "Adapter" tab set
- IPv4 Address: 192.168.1.201
- IPv4 Network Mask: 255.255.255.0
- On DHCP Server Tab set
- Server Address: 192.168.1.100
- Server Mask: 255.255.255.0
- Lower Address Bound: 192.168.1.101
- Upper Address Bound: 192.168.1.199
- Click Ok (Host-only Network details), click Ok (VM Settings)
- Open Genymotion (as Admin), install a new virtual device (you have deleted all past devices) and start it