If you are running this command on a virtualized instance (e.g. Model name: Intel(R) Core(TM) i7-2630QM CPU 2.00GHzįrom the output above, it is easy to see if the processor supports virtualization or not (refer to the “Virtualization” row). The command output can be optimized for parsing or for easy readability by humans.”Ī sample output when executed on bare-metal is as follows: ~]$ lscpu To quote its man page, “lscpu gathers CPU architecture information from sysfs and /proc/cpuinfo. Pass the output to the word count (wc) command to count and display the number of lines that has the pattern. What the command means: find the pattern “vmx” or “svm” in the file /proc/cpuinfo, this will return all the lines that contain the pattern. Every logical core on my laptop had the flag enabled, giving the output of 8. If the output is more than 0, it means that virtualization is supported by the CPU. One simple and intuitive way to check for it is to run the following command $ grep "\(vmx\|svm\)" /proc/cpuinfo | wc -l “svm” refers to “Secure Virtual Machine”, and is used by AMD’s virtualization technology (called AMD-V). “vmx” refers to “Virtual Machine Extensions”, and is used by Intel’s virtualization technology (called VT-X). To know if a CPU supports virtualization on the x86 platform, we will check for the “vmx” or “svm” flags. model, cache size) of the CPU, it also displays a set of flags that identify the different qualities of the processor. The /proc/cpuinfo virtual file identifies the type of processor(s) used by the system. Installation Steps Step 1: Verify that the CPU supports Virtualization
0 Comments
Leave a Reply. |