Linux技巧:如何判断处理器是否支持VT

Virtualization Technology (VT) is a set of enhancements to newer processors that improve performance for running a virtual machine by offloading some of the work to the new cpu extensions. Both AMD and Intel have processors that support this technology, but how do you tell if your system can handle it?

虚拟化技术(VT)是对较新处理器的一组增强功能,这些功能通过将一些工作分担给新的cpu扩展来提高运行虚拟机的性能。 AMD和Intel都具有支持该技术的处理器,但是如何判断系统是否可以处理该技术?

It’s quite simple: We’ll need to take a peek inside the /proc/cpuinfo file and look at the flags section for one of two values, vmx or svm.

这很简单:我们需要在/ proc / cpuinfo文件中进行窥视,并查看flags部分中的两个值vmx或svm。

  • vmx – (intel)

    vmx –(英特尔)

  • svm – (amd)

    svm –(amd)

You can use grep to quickly see if either value exists in the file by running the following command:

您可以使用grep通过运行以下命令快速查看文件中是否存在任何值:

egrep ‘(vmx|svm)’ /proc/cpuinfo

egrep'(vmx | svm)'/ proc / cpuinfo

If your system supports VT, then you’ll see vmx or svm in the list of flags. My system has two processors, so there are two separate sections:

如果您的系统支持VT,那么您将在标志列表中看到vmx或svm。 我的系统有两个处理器,因此有两个单独的部分:

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lmflags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm

标志:fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est xm tf2 las tf2 csm PAE MCE CX8 APIC月MTRR PGE MCA CMOV轻拍PSE36 CLFLUSH DTS ACPI MMX FXSR SSE SSE2 SS HT TM系统调用的nx流明constant_tsc PNI监视ds_cpl VMX EST TM2 SSSE3 CX16 xtpr lahf_lm

VT technology can still be disabled in your computer’s BIOS, however, so you’ll want to check there to make sure that it hasn’t been disabled. The flags in cpuinfo simply mean that your processor supports it.

但是,仍可以在计算机的BIOS中禁用VT技术,因此,您需要在此进行检查以确保尚未禁用它。 cpuinfo中的标志仅表示您的处理器支持它。

From my research, VT is required in order to run 64-bit guests under the free VMware server for linux… so it would logically follow that if you can do so, VT is enabled.

根据我的研究,需要VT才能在Linux的免费VMware服务器下运行64位guest虚拟机……因此,从逻辑上讲,如果可以,则启用VT。

32-bit VT is not enabled by default under VMware server. If you want to enable it, you need to add the following line to your *.vmx file for your virtual machine:

默认情况下,VMware服务器下未启用32位VT。 如果要启用它,则需要在虚拟机的* .vmx文件中添加以下行:

monitor_control.vt32 = TRUE

monitor_control.vt32 = TRUE

VMware does not recommend that you use VT for 32-bit guests, because they say it will actually hurt performance.

VMware不建议您对32位来宾使用VT,因为他们说VT实际上会影响性能。

翻译自: https://www.howtogeek.com/howto/linux/linux-tip-how-to-tell-if-your-processor-supports-vt/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值