如何在Linux的BIOS和KVM模块中启用VT-x? [英] How to enable VT-x in BIOS and KVM modules on Linux?

查看:1053
本文介绍了如何在Linux的BIOS和KVM模块中启用VT-x?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Dell Inspiron 15 5000系列笔记本电脑,其中装有Intel Core i5 6200U处理器.我正在使用Windows 10家庭版.它具有虚拟化设备,我已经在BIOS中检查了已启用的虚拟化. 但是在android studio中,运行AVD管理器时出现此错误.

I have Dell Inspiron 15 5000 Series laptop containing intel core i5 6200U processor. I am using Windows 10 Home edition. It has the virtualization device and I already checked in BIOS for the virtualization, which is enabled. But in android studio I am getting this error when I run AVD manager.

在您的BIOS安全设置中启用VT-x,确保您使用Linux 发行版中有可用的KVM模块.

Enable VT-x in your BIOS security settings, ensure that you Linux distro has working KVM modules.

推荐答案

据我了解,您已经在BIOS中启用了VT-x选项.那挺好的.由于您具有Linux作为操作系统,因此现在需要安装和配置KVM.

As I understand, you've already enabled the VT-x option in BIOS. That's good. Because you have Linux as your operating system, now you need to install and configure KVM.

说明:

KVM安装

我参考了Ubuntu社区文档页面中的说明. 安装KVM.查看您的处理器是否支持硬件 虚拟化,您可以查看以下命令的输出:

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

如果输出为0,则表示您的CPU不支持硬件 虚拟化.

If the output is 0 it means that your CPU doesn't support hardware virtualization.

下一步是安装CPU检查器:

Next is to install CPU checker:

$ sudo apt-get install cpu-checker

现在,您可以检查您的CPU是否支持kvm:

Now you can check if your cpu supports kvm:

$ sudo kvm-ok

并输入root密码

如果看到:

信息:您的CPU支持KVM扩展,可以使用KVM加速"

"INFO: Your CPU supports KVM extensions KVM acceleration can be used"

这意味着您可以使用KVM更快地运行虚拟机 扩展程序.

It means you can run your virtual machine faster with the KVM extensions.

如果看到:

信息:您的BIOS禁用了KVM提示:输入您的BIOS 设置并启用虚拟化技术(VT),然后进行硬 关闭/打开系统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.

You need to go to BIOS setup and enable the VT.

使用64位内核

建议在主机操作系统上运行64位内核 因为Google不再提供对32位内核的支持. 为您的VM提供2GB以上的RAM.还有一个64位 系统可以同时托管32位和64位来宾.一个32位系统可以 仅托管32位来宾.要查看您的处理器是否为64位,您可以 运行以下命令:

Running a 64bit kernel on the host operating system is recommended since Google no longer offers support for 32bit kernel.. This allows the serving of more than 2GB of RAM for your VMs. Also, a 64-bit system can host both 32-bit and 64-bit guests. A 32-bit system can only host 32-bit guests. To see if your processor is 64-bit, you can run this command:

$ egrep -c ' lm ' /proc/cpuinfo

如果打印0,则表示您的CPU不是64位.如果为1或更高, 它是.注意:lm代表长模式",它等同于64位CPU. 现在查看您正在运行的内核是否为64位,只需发出以下命令 命令:

If 0 is printed, it means that your CPU is not 64-bit. If 1 or higher, it is. Note: lm stands for Long Mode which equates to a 64-bit CPU. Now see if your running kernel is 64-bit, just issue the following command:

$ uname -m

x86_64表示正在运行的64位内核.如果看到i386,i486,i586 或i686,您正在运行32位内核.

x86_64 indicates a running 64-bit kernel. If you see i386, i486, i586 or i686, you're running a 32-bit kernel.

安装KVM

对于Ubuntu Lucid(精确度为12.04 LTS)或更高版本:

For Ubuntu Lucid (12.04 LTS Precise) or later:

$ sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

如果显示,则可以通过以下方式忽略下面的Postfix配置 选择无配置"

If it is displayed, you may ignore the Postfix Configuration below by selecting "No Configuration"

下一步是将您的帐户添加到kvm和libvirtd组

Next is to add your account to the group kvm and libvirtd

$ sudo adduser your_user_name kvm

$ sudo adduser your_user_name libvirtd

安装后,您需要重新登录,以便您的用户帐户 成为kvm和libvirtd用户组的有效成员.这 该组的成员可以运行虚拟机.

After the installation, you need to relogin so that your user account becomes an effective member of kvm and libvirtd user groups. The members of this group can run virtual machines.

验证安装您可以测试安装是否成功 使用以下命令:

Verify Installation You can test if your install has been successful with the following command:

$ sudo virsh -c qemu:///system list

希望有帮助.

由于您可能正在运行Windows,而不是Linux,因此请按照本文中的说明进行操作:

As you may be running Windows instead of Linux, please follow the instructions in this post instead: https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows

这篇关于如何在Linux的BIOS和KVM模块中启用VT-x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆