MoyaSystem

もやしです。

Genymotionが立ち上がらないトラブルを解決した話

そもそも

http://www.genymotion.com/
最近開発を始めたスマホ用アプリのAndroidエミュレータとしてGenymotionが優秀らしい、という情報を手に入れたので、Titanium Studio 標準エミュレータに代えてこちらを導入してみた。

http://www.appcelerator.com/blog/2013/12/using-genymotion-with-titanium-3-2/
こちらの手順に従ってTitanium Studio との連携にも成功。
よーしこれで Android の検証ができるぞと思って仮想環境を立ち上げてみたら、

f:id:imo_jo_chu:20140618174521p:plain

こんなエラーが出て止まってしまった。

原因

https://cloud.genymotion.com/page/faq/#collapse-nostart
おとなしく指定されたページを見てみる。

Your network adapter can be misconfigured:
Edit the Host-only Network that is listed in the network category of the File/preferences menu of VirtualBox (VirtualBox/Preferences on Mac OS X).
The adapter's IP address has to be in the same network (192.168.56.0/24 by default) as DHCP server's IP address and DHCP's IP address bounds. If all those addresses are not in the same network, then your Genymotion virtual device might not be able to start.
You can also remove the Host-only Network. Genymotion will automatically recreate it at the next virtual device start.

なるほどつまり、
VirtualBocのホストオンリーネットワークのアダプタのIPアドレスが、DHCPサーバと同一のネットワークになければならないということ。

これを踏まえて確認してみると、
アダプタのIPアドレス192.168.33.1
DHCPサーバのIPアドレス192.168.56.100。これが原因か。

対策

ということで、アダプタのIPアドレス192.168.56.1としてやることで無事起動できました。