2
我試圖運行一個無業遊民機內的Android模擬器,但我不斷收到此錯誤內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.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
有沒有人有一個想法如何解決這個問題?
謝謝!
你是什麼CPU?你在BIOS中啓用虛擬化?也許你的處理器沒有它,如果它更老。 – Vucko
我想在BIOS中啓用可視化,但因爲它是Jenkins中使用的流浪機器,所以我找不到這樣做的方法 – Tar
爲什麼您需要爲android使用vagrant?據我所知,android模擬器通常使用HAXM,而不是KVM ... – Vucko