Windows10 に Vagrant を入れ、その上で Linux+AndroidStudio の Android 開発環境を立ち上げようとあれこれやってきた。
で、AndroidStudio が立ち上がるところまで来たのだが、エミュレータが起動しない。調べてみると、KVM が動いている必要があるようなのだが、残念ながら VirtualBox 上で Linux をゲストとして走らせた場合はサポートしていない模様 (T T)。
VMware だとできるっぽいのだが、お金を払ってまでやりたいかといえば微妙...
デバッグが実機 Only でも使えないことはないと思うが、仮想マシンの USB 経由だとまた一苦労ありそう。
ということで、いったん中止。VirtualBox の Update 状況を監視することとしよう。
2015年10月10日土曜日
2015年9月29日火曜日
[memo][Vagrant]Windows10 で Ubuntu 12.04 の box を動かす
[現象]
Windows10 + Vagrant + VirtualBox で、ゲストOS Ubuntu 12.04 を立ち上げようとしたら動かなかった
[対策]
Vagrant を 1.7.2 から 1.7.4 へ
VirtualBox を 4.2.16 から 5.0.4 へ
[詳細]
AndroidStudio 専用の仮想環境を作るため、こちらの記事を参考に GUI 付きの Linux 環境を作ろうと、記事にある vagrantfile を使い config.vm.box_url に Official Ubuntu 12.04 daily Cloud Image i386 (VirtualBox 4.1.12) を指定して 'vagrant go' を実行したところ、以下のエラーとなった。
>Progress state: E_FAIL
>VBoxManage.exe: error: Failed to create the host-only adapter
>VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
>VBoxManage.exe: error: Context: "int __cdecl handleCreate(struct HandlerArg *,int,int *)" at line 66 of file VBoxManageHostonly.cpp
いろいろと試した末、Vagrant,VirtualBox を両方とも最新のものにしたところ、仮想マシンが立ち上がり、ターミナルソフトから接続できることを確認した。
Windows10 + Vagrant + VirtualBox で、ゲストOS Ubuntu 12.04 を立ち上げようとしたら動かなかった
[対策]
Vagrant を 1.7.2 から 1.7.4 へ
VirtualBox を 4.2.16 から 5.0.4 へ
[詳細]
AndroidStudio 専用の仮想環境を作るため、こちらの記事を参考に GUI 付きの Linux 環境を作ろうと、記事にある vagrantfile を使い config.vm.box_url に Official Ubuntu 12.04 daily Cloud Image i386 (VirtualBox 4.1.12) を指定して 'vagrant go' を実行したところ、以下のエラーとなった。
>Progress state: E_FAIL
>VBoxManage.exe: error: Failed to create the host-only adapter
>VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
>VBoxManage.exe: error: Context: "int __cdecl handleCreate(struct HandlerArg *,int,int *)" at line 66 of file VBoxManageHostonly.cpp
いろいろと試した末、Vagrant,VirtualBox を両方とも最新のものにしたところ、仮想マシンが立ち上がり、ターミナルソフトから接続できることを確認した。
ラベル:
memo,
Vagrant,
VirtualBox
登録:
投稿 (Atom)