简体   繁体   English

Android模拟器未在Virtualbox Ubuntu实例中启动

[英]Android Emulator not starting in a Virtualbox Ubuntu Instance

I am using Windows 7 64-bit (12 GB of RAM), with VirtualBox 4.2.4 running an instance of Linux Ubuntu 12.04 32-bit. 我使用的是Windows 7 64位(12 GB RAM),而VirtualBox 4.2.4运行的是Linux Ubuntu 12.04 32位实例。

My Ubuntu VM has 128MB of Video Memory, 3D Acceleration, 4GB of RAM, 2 CPU processors, and ample space. 我的Ubuntu VM具有128MB的视频内存,3D加速,4GB的RAM,2个CPU处理器和足够的空间。

I installed Eclipse Juno in my VirtualBox instance, downloaded the Android SDK from http://developers.android.com . 我在VirtualBox实例中安装了Eclipse Juno,并从http://developers.android.com下载了Android SDK。

I set up my AVD to be running Android 4.2, with an API level of 17 using an ARM CPU. 我将AVD设置为运行Android 4.2,使用ARM CPU的API级别为17。

In Eclipse, I created a new Android application (a basic application) and tried to run it. 在Eclipse中,我创建了一个新的Android应用程序(一个基本应用程序)并尝试运行它。 The emulator never loads up, though. 但是,模拟器永远不会加载。

I get variations of the following error when trying to launch: 尝试启动时,出现以下错误的变化:

OpenGL Warning: glXGetFBConfigAttrib for 0x9dbb250, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x9dbb328

I did some research on the XGetVisualInfo, and it appears to be VirtualBox related. 我对XGetVisualInfo进行了一些研究,它似乎与VirtualBox有关。 Can any one provide a pointer? 谁能提供一个指针?

You can't do that for two reasons: the emulator use the Intel Virtualization Technology (VT) or the AMD Virtualization (AMD) extension but this is already used by the Ubuntu VM running inside the VirtualBox and you cannot use that a second time inside an already running VM. 您不能这样做有两个原因:模拟器使用Intel虚拟化技术(VT)或AMD虚拟化(AMD)扩展,但是VirtualBox内运行的Ubuntu VM已经使用了该扩展,并且您无法在内部再次使用该扩展已经运行的虚拟机。

There is also the same thing for a CPU interrupt related to debugging/interrupting the VM that is also already used by the VirtualBox and that cannot be shared a second time by another embedded VM but I don't remember the exact detail about this one. 对于CPU中断来说,与调试/中断VM有关的事情也相同,VirtualBox也已经在使用它,并且另一嵌入式VM无法再次共享它,但是我不记得有关此VM的确切细节。

I don't know your reasons of running the emulator inside a VM but one thing you can do is to run the emulator directly inside the VirtualBox as its own VM or outside of VirtualBox and etablish a connection between Eclipse and the emulator. 我不知道您在VM内运行仿真器的原因,但是您可以做的一件事是将模拟器作为自己的VM直接在VirtualBox内部运行或在VirtualBox外部运行,并建立Eclipse与模拟器之间的连接。 On the web, you will find many references on how to run an emulator directly inside VirtualBox. 在网上,您会找到许多有关如何直接在VirtualBox中运行模拟器的参考。 I have done it myself in the past and there were no problem. 我过去自己做过,没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM