簡體   English   中英

在游民機內運行android模擬器

[英]running android emulator inside vagrant machine

我正在嘗試在無業游民的機器中運行android模擬器,但我不斷收到此錯誤:

==> default: emulator: ERROR: x86 emulation currently requires hardware acceleration!
==> default: Please ensure KVM is properly installed and usable.
==> default: CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing).

在啟動模擬器之前,我正在安裝KVM:

==> default: qemu-kvm is already the newest version 

但是我有這個錯誤:

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

Vagrant配置是這樣的:

Vagrant.configure("2") do |config|
   config.vm.box = "ubuntu/trusty64"
   config.vm.synced_folder '.', '/vagrant'
   config.vm.network :private_network, ip: "192.168.2.222"
   config.ssh.forward_agent = true
   config.vm.provision :shell, :path => "Vagrantinit"
   config.vm.provider "virtualbox" do |v|
    v.memory = 4096
    v.cpus = 1
    v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"]
    v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
   end
 end

有人知道如何解決此問題嗎?

謝謝 !

問題出在x86仿真上,顯然不支持

而是使用armeabi-v7a用於android模擬器,它應該可以工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM