我有包含英特尔酷睿 i5 6200U 处理器的戴尔 Inspiron 灵越 15 5000 系列笔记本电脑。我正在使用 Windows 10 家庭版。它有虚拟化设备,我已经在 BIOS 中检查了启用的虚拟化。 但在 android studio 中运行 AVD 管理器时出现此错误。
Enable VT-x in your BIOS security settings, ensure that you Linux distro has working KVM modules.
最佳答案
据我了解,您已经在 BIOS 中启用了 VT-x 选项。那挺好的。因为你有 Linux 作为你的操作系统,现在你需要安装和配置 KVM。
KVM Installation
I referred the instructions from Ubuntu community documentation page. to get KVM installed.To see if your processor supports hardware virtualization, you can review the output from this command:
$ egrep -c '(vmx|svm)' /proc/cpuinfo
If the output is 0 it means that your CPU doesn't support hardware virtualization.
Next is to install CPU checker:
$ sudo apt-get install cpu-checker
Now you can check if your cpu supports kvm:
$ sudo kvm-ok
and insert root password
If you see:
"INFO: Your CPU supports KVM extensions KVM acceleration can be used"
这意味着您可以使用 KVM 更快地运行虚拟机 扩展。
如果你看到:
"INFO: KVM is disabled by your BIOS HINT: Enter your BIOS setup and enable Virtualization Technology (VT), and then hard poweroff/poweron your system KVM acceleration can NOT be used"
您需要进入 BIOS 设置并启用 VT。
使用 64 位内核
建议在主机操作系统上运行 64 位内核 因为谷歌不再提供对 32 位内核的支持。这允许 为您的虚拟机提供超过 2GB 的 RAM。此外,一个 64 位 系统可以同时托管 32 位和 64 位 guest 。 32位系统可以 只接待 32 位客人。要查看您的处理器是否为 64 位,您可以 运行这个命令:
$ egrep -c 'lm'/proc/cpuinfo
如果打印的是 0,则表示你的 CPU 不是 64 位的。如果为 1 或更高, 这是。注意:lm 代表长模式,相当于 64 位 CPU。 现在看看你正在运行的内核是否是 64 位的,只需发出以下命令 命令:
$
uname -m
x86_64 表示正在运行的 64 位内核。如果你看到 i386、i486、i586 或 i686,您运行的是 32 位内核。
安装 KVM
对于 Ubuntu Lucid(12.04 LTS Precise)或更高版本:
$ sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
如果显示,您可以通过以下方式忽略下面的 Postfix 配置 选择“无配置”
接下来是把你的账号添加到组 kvm 和 libvirtd
$ sudo adduser your_user_name kvm
$ sudo adduser your_user_name libvirtd
安装后,需要重新登录,以便您的用户帐户 成为 kvm 和 libvirtd 用户组的有效成员。这 该组的成员可以运行虚拟机。
验证安装您可以测试您的安装是否成功 使用以下命令:
$ sudo virsh -c qemu:///系统列表
希望对您有所帮助。
编辑:由于您可能运行的是 Windows 而不是 Linux,请按照本文中的说明进行操作:https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
关于android - 如何在 Linux 的 BIOS 和 KVM 模块中启用 VT-x?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37087365/