Archlinux 下 Genymotion 模拟器启动不起来

2015-11-17 11:21:48 +08:00
 jinhan13789

启动就黑屏
log 信息如下
Events Manager :socket error connecting to "192.196.56.101" : 22469

网卡配置什么的都正常
google 过了,未解决

5287 次点击
所在节点    Arch
20 条回复
o02VFqu3gZnZfX8n
2015-11-17 12:15:38 +08:00
你的 VirtualBox 可以正常运行吗?
jinhan13789
2015-11-17 12:18:42 +08:00
@DaVinci42 可以的 只是 Genymotion 中的 android 模拟器启动不起来
我下载了 4.11 5.0 和 6.0 三个版本的模拟器都能启动
jinhan13789
2015-11-17 12:22:48 +08:00
Nov 17 11:02:45 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:02:46 [Genymotion Player] [Debug] VBoxManage ("showvminfo", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920") returns 0
Nov 17 11:02:46 [Genymotion Player] [Debug] VBoxManage ("controlvm", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "poweroff") returns 0
Nov 17 11:02:46 [Genymotion Player] [Warning] **** STOPPING VIRTUAL DEVICE ****
Nov 17 11:02:46 [Genymotion Player] [Debug] Exit status: 15
Nov 17 11:06:27 [Genymotion Player] [Debug] Virtual device configured
Nov 17 11:06:27 [Genymotion Player] [Debug] Virtualization engine configured
Nov 17 11:06:27 [Genymotion Player] [Debug] Virtualization engine configured
Nov 17 11:06:27 [Genymotion Player] [Debug] No token found. Skipping activation
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("showvminfo", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920") returns 0
Nov 17 11:06:27 [Genymotion Player] [Debug] Virtual Machine status: off
Nov 17 11:06:27 [Genymotion Player] [Debug] Start the device...
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "set", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("modifyvm", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "--nic1", "hostonly") returns 0
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("modifyvm", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "--hostonlyadapter1", "vboxnet0") returns 0
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("modifyvm", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "--nictype1", "virtio") returns 0
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("modifyvm", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "--cableconnected1", "on") returns 0
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "set", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "genymotion_vm_name", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920") returns 0
Nov 17 11:06:27 [Genymotion Player] [Debug] VBoxManage ("showvminfo", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920") returns 0
Nov 17 11:06:28 [Genymotion Player] [Debug] VBoxManage ("startvm", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "--type", "headless") returns 0
Nov 17 11:06:28 [Genymotion Player] [Debug] VBoxManage ("showvminfo", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920") returns 0
Nov 17 11:06:28 [Genymotion Player] [Debug] Virtual Machine started.
Nov 17 11:06:28 [Genymotion Player] [Debug] Waiting for an IP address...
Nov 17 11:06:28 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:29 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:30 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:31 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:32 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:33 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:33 [Genymotion Player] [Debug] Genymotion system started. Attributed IP address: "192.168.56.101"
Nov 17 11:06:33 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:33 [Genymotion Player] [Warning] QPixmap::scaled: Pixmap is a null pixmap
Nov 17 11:06:33 [Genymotion Player] [Debug] VBoxManage ("guestproperty", "get", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920", "androvm_ip_management") returns 0
Nov 17 11:06:33 [Genymotion Player] [Debug] Events Manager connecting to QHostAddress( "192.168.56.101" ) : 22469
Nov 17 11:07:03 [Genymotion Player] [Debug] Timeout waiting for EventManager connection
Nov 17 11:07:03 [Genymotion Player] [Debug] Event Manager socket error: QAbstractSocket::ConnectionRefusedError
Nov 17 11:07:03 [Genymotion Player] [Debug] VBoxManage ("showvminfo", "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920") returns 0
Nov 17 11:07:03 [Genymotion Player] [Error] Events Manager: socket error connecting to "192.168.56.101" : 22469
下面几乎都是个错误 日志还算完整
herozem
2015-11-17 12:24:56 +08:00
额,其实在 linux 下 android 模拟器已经够快了,特别是加上 kvm 以后
jinhan13789
2015-11-17 12:26:29 +08:00
@herozem 你是说自带的模拟器吗?
我去试试
herozem
2015-11-17 12:27:34 +08:00
额,别急着试。。。 kvm 和 vbox 的模块是只能二选一的
jinhan13789
2015-11-17 12:30:48 +08:00
@herozem 问题是除了 Events Manager: socket error connecting to "192.168.56.101" : 22469
这条错误 看不到别的错误啊
google 只能搜到三条相关的信息 都不是解决方案
难道说我又要装 ubuntu ?
o02VFqu3gZnZfX8n
2015-11-17 12:31:41 +08:00
@jinhan13789
ConnectionRefusedError ,看看是不是防火墙拦着了,
Genymotion Support 页面 - Can my firewall disrupt Genymotion?
jinhan13789
2015-11-17 12:32:39 +08:00
@herozem 还有啊 android studio 新疆爱你了项目 构建了一个小时都没结束 我设置了翻墙啊
jinhan13789
2015-11-17 12:33:46 +08:00
@DaVinci42 如何查看呢 我 archlinux 刚装的啊
jinhan13789
2015-11-17 12:36:07 +08:00
这是我第四次装 archlinux 之前别的 linux 和 windows 都装了好多,最后选择 archlinux 。
一定要解决它
o02VFqu3gZnZfX8n
2015-11-17 12:37:16 +08:00
@jinhan13789
如果是 KDE ,在 Setting 里面可以找到 Network ,其他桌面我不熟,
ArchWiki 至少一定有,查的成本也不高
jinhan13789
2015-11-17 12:40:36 +08:00
@DaVinci42 gnome Setting 里也有 Network 但是并没有多余的选项
只有:
Wi-FI
Wired
Network proxy
这三项
o02VFqu3gZnZfX8n
2015-11-17 12:43:09 +08:00
@jinhan13789

Can my firewall disrupt Genymotion?

Yes. The Genymotion application must connect to the virtual device via the local network. If you have a firewall, make sure that you allowed connections to the Genymotion network, set to 192.168.56.0/24 by default.
You can also edit the network. To do so:
Run VirtualBox.
Open File > Preferences > Network (or VirtualBox > Preferences for Mac OS X).
Edit the Host-only Network by clicking .
Make sure the adapter IPv4 address is in the same network (192.168.56.0/24 by default) as the DHCP server address, lower address bound and upper address bound. If not, your virtual device cannot start.
jinhan13789
2015-11-17 12:44:33 +08:00
@jinhan13789 archlinux 默认没有任何防火墙
jinhan13789
2015-11-17 12:45:02 +08:00
@DaVinci42 这个看过了 也检查过了,设置没有任何问题
jinhan13789
2015-11-17 13:18:44 +08:00
好吧 回归 ubuntu 的怀抱
herozem
2015-11-17 16:34:47 +08:00
gradle 构建项目的时候要下东西,主要是下那个什么 gradle.zip 啥的,忘了
herozem
2015-11-17 16:36:15 +08:00
还有你那错误, 没猜错的话,就是因为在主机直连 vbox 。但是没连上。 genymotion 会新建一个主机和虚拟机专用网络。
hm279
2015-11-17 20:05:33 +08:00
这是 vbox 的网络没设置好,我在 Arch 下也会出现这种情况。看看这里能不能解决 http://stackoverflow.com/questions/19922077/genymotion-unable-to-start-the-genymotion-virtual-device

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/236720

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX