Difference between revisions of "HowTo Determine If Hardware Virtualization Is Enabled"

From NST Wiki
Jump to navigationJump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
* On an '''AMD''' (AMD-V) system check "'''/pro/cpuinfo'''" for the existence of the '''svm''' flag:
+
* On a system with one or more '''Intel''' ('''Intel VT-x''') CPUs, check "'''/proc/cpuinfo'''" for the existence of the flag: "'''vmx'''"
 
<div class="screen">
 
<div class="screen">
<div class="userInput"><span class="prompt">[root@probe ~]# </span>cat /proc/cpuinfo | grep 'svm'</div>
+
<div class="userInput"><span class="prompt">[root@vortex ~]# </span>cat /proc/cpuinfo | grep 'vmx'</div>
 +
<pre class="computerOutput">
 +
[root@vortex ~]# cat /proc/cpuinfo |grep -m 1 vmx
 +
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse
 +
sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc
 +
pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi
 +
flexpriority ept vpid
 +
[root@vortex ~]#
 +
</pre>
 +
</div>
 +
 
 +
 
 +
* On a system with one or more '''AMD''' ('''AMD-V''') CPUs, check "'''/proc/cpuinfo'''" for the existence of the flag: "'''svm'''"
 +
<div class="screen">
 +
<div class="userInput"><span class="prompt">[root@cirrus ~]# </span>cat /proc/cpuinfo | grep 'svm'</div>
 
  <pre class="computerOutput">
 
  <pre class="computerOutput">
 
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht
 
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht
 
syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor
 
syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor
 
cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
 
cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
[root@probe ~]#
+
[root@cirrus ~]#
 
</pre>
 
</pre>
 
</div>
 
</div>

Latest revision as of 17:04, 4 December 2009

  • On a system with one or more Intel (Intel VT-x) CPUs, check "/proc/cpuinfo" for the existence of the flag: "vmx"
[root@vortex ~]# cat /proc/cpuinfo | grep 'vmx'
[root@vortex ~]# cat /proc/cpuinfo |grep -m 1 vmx
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse
sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc
pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi
flexpriority ept vpid
[root@vortex ~]#


  • On a system with one or more AMD (AMD-V) CPUs, check "/proc/cpuinfo" for the existence of the flag: "svm"
[root@cirrus ~]# cat /proc/cpuinfo | grep 'svm'
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht
syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor
cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
[root@cirrus ~]#