arch下安装genyMotion解决unable to connect to your virtual device问题

本文标记为原创,实际是完全的借鉴融合.

原文链接:

http://madcoda.com/2014/05/solving-genymotion-unable-to-connect-to-your-virtual-device-error/   

https://bbs.archlinux.org/viewtopic.php?id=172233


按着第一个链接去配置,并且安装第二个链接中提到的net-tool,就可以解决问题了.

关于net-tool,可以去arch的wiki里下载.下载地址如下:

https://www.archlinux.org/packages/core/x86_64/net-tools/


第一个链接是国外的网站,不知道同学们能不能链接到,我把它摘在这里:

Solving Genymotion “unable to connect to your virtual device” Error

(解决genymotion的"unable to connect to your virtual device"错误)

So I know you are here because you get this error message while starting a Genymotion Device.

(我知道你能看到这个链接是因为你在启动genymotion设备的时候遇到了这个问题)

First you should go check your firewall settings as suggested in the Genymotion FAQ. Other than that, if the problem still persist, 9/10 it’s the problem of your Host-only adapter settings. Here’s how to correctly set it.

(当然你首先应该按着GenymotionFAQ说的的检查一下防火墙,但是如果问题仍然存在,90%的原因是你的host-only网络配置问题.下面是正确的设置)


1. Open VirtualBox, Go to File-> Preferences…

(1. 打开virtualbox, 选择File -> preference)


2. Network -> Host-only Networks, you should see 1 item (if there’s none, create one)

(在Network -> Host-only Networks菜单中,你应该可以看到一个条目,假如没有,就创建一个).


3. Follow this settings

(3. 按着下面的图片进行配置)


4. Select your VM -> Settings -> Network -> Disable the Network Adapter (It will be re-configured by Genymotion)

(4. 现在到你的虚拟机上面右键,Settings -> Network -> disable the network adapter(当然就算你设置了这个选项,回头genymotion启动的时候还是会重新设置了这个选项的.)

5.  Start the Android Image again in Genymotion UI (not in Virtualbox), It should work now!

(5. 现在你可以在genymotion里面启动你的设备了,不要在virtualbox里面启动.应该可以工作了)


下面是网友在上面的基础上面补充的方法(需要结合上面的步骤,因为可能自动生成的网卡信息是默认的,需要按着上面的步骤尽心配置):

1.Delete the “Virtualbox host only Ethernet Adapter”

(1. 在上面的第二步时,不要添加,而是全部删除)

2.Run genemotion Virtual machine ( Not that one in virtualbox)

(2. 在genymotion中启动设备,同样是不要在virtualbox中运行)

3. It will configure network automatically

(3. 当设备启动的时候,会自动创建一个hostonly的网卡)

Hope it works


下面是我成功安装以后的效果:



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值