2017-04-21 38 views
2

私は、ubuntuでEC2 t2.mediumインスタンスでアンドロイドエミュレータを実行しようとしています。私はこれを実行しようとするWHE:AWS EC2の端末からAndroidエミュレータを実行しています

/home/ubuntu/tools/android-sdk/tools/emulator -engine classic -ports 5724,5725 -report-console tcp:5854,max=60 -avd Samsung_Galaxy_S4_Mini_API_19 -no-snapshot-load -no-snapshot-save -no-window 

を私が取得:

sh: 1: glxinfo: not found emulator: WARNING: Ignoring invalid SDCard path: /Users/danielsierraf/.android/avd/Samsung_Galaxy_S4_Mini_API_19.avd/sdcard.img sh: 1: glxinfo: not found emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored. emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure KVM is properly installed and usable. CPU acceleration status: KVM requires a CPU that supports vmx or svm

だから私は試してみてください。

sudo /usr/sbin/kvm-ok 

INFO: Your CPU does not support KVM extensions KVM acceleration can NOT be used

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils 

私はインターネット上について何かを読みましたBIOSでの仮想化が可能になります。しかし、私はEC2でそれをすることはできません。私はこれは本当に解決策ですか?

+0

私はこれについて専門家はいませんが、[HVMイメージ](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/virtualization_types.html)を参照してください。インテルの仮想化拡張をサポートします。 – CommonsWare

答えて

1

エラー状態として、AWSはKVM拡張機能をサポートしていません。このハードウェアアクセラレーションはx86プロセッサでは必要ですが、ARMでは必要ではないことが分かりましたので、私はエミュレータをarmeabi-v7a ABIとしてインストールしました。この作業はコンティニュアスの統合のためであり、超高速にする必要はありません。

AWSでx86エミュレータを実行することに関心がある人には、Amazon EC2でAndroidエミュレータ(ハードウェアアクセラレーションあり)を実行するためのRavelloについても読んでいます。

関連する問題