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设备的时候遇到了这个问题)

arch下安装genyMotion解决unable to connect to your virtual device问题_第1张图片

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)

arch下安装genyMotion解决unable to connect to your virtual device问题_第2张图片


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

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

arch下安装genyMotion解决unable to connect to your virtual device问题_第3张图片


3. Follow this settings

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

arch下安装genyMotion解决unable to connect to your virtual device问题_第4张图片

arch下安装genyMotion解决unable to connect to your virtual device问题_第5张图片


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启动的时候还是会重新设置了这个选项的.)

arch下安装genyMotion解决unable to connect to your virtual device问题_第6张图片

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

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

arch下安装genyMotion解决unable to connect to your virtual device问题_第7张图片


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

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


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

arch下安装genyMotion解决unable to connect to your virtual device问题_第8张图片

arch下安装genyMotion解决unable to connect to your virtual device问题_第9张图片


你可能感兴趣的:(android,archLinux,Genymotion)