在流浪汉机器内运行android模拟器

时间:2016-08-18 10:29:25

标签: android android-emulator vagrant virtualbox

我正在尝试在流浪汉机器内运行一个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

有人知道如何解决这个问题吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

问题在于x86仿真,显然它不受支持

而是使用armeabi-v7a for android模拟器,它应该可以工作