在VMware虚拟机上运行的Android Studio:未安装KVM
我在Ubuntu VMWare虚拟机上运行Android Studio。问题是,当我尝试与AVD模拟器中运行的应用程序,我得到在控制台以下错误:在VMware虚拟机上运行的Android Studio:未安装KVM
/home/verite/Android/Sdk/tools/emulator -avd Nexus_5_API_22_x86 -netspeed full -netdelay none
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing).
我试图这样做是为了解决问题:
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
sudo adduser `id -un` libvirtd
sudo adduser `id -un` kvm
并重新启动,但它不起作用。当我发出命令:
sudo kvm-ok
我得到
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used
有人能告诉我如何解决这个问题,好吗?
感谢
在官方Android开发者网站的Using the Emulator section发现坏消息:
内部没有一个VM - 你不能运行一个虚拟机加速仿真器内部 另一个虚拟机,如VirtualBox或VMWare托管虚拟机 。您必须直接在系统硬件上运行仿真器。
因此,看来我的最佳选择是寻找与Android Studio兼容的真正设备来运行应用程序。
我面临同样的问题。我搜索,我发现我现在工作的解决方案:
在VMware的:
- 开放式虚拟机的设置。
- 转到处理器。
- 检查虚拟化Intel VT-x/EPT或AMD-RVI选件。
- 点击确定并运行虚拟机,它应该适合你。
希望能与你合作。
此链接HW virtualization in VMware (KVM - Android Studio)帮助我找到解决方案。
这解决了我的问题! –
错误的链接,请更新。 – not2qubit
你有vCenter和vSphere Web Client中使用这个编辑虚拟机配置右键单击Your_Windows_GuestOs>编辑设置> CPU>勾选“揭露硬件辅助虚拟化的客户操作系统 。
你的反应是非常usefule 。请提供确切的参考链接?现在我无法在“使用模拟器”部分找到文档 – gfan